1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2
3package tangled
4
5// schema: sh.tangled.pipeline
6
7import (
8 "github.com/bluesky-social/indigo/lex/util"
9)
10
11const (
12 PipelineNSID = "sh.tangled.pipeline"
13)
14
15func init() {
16 util.RegisterType("sh.tangled.pipeline", &Pipeline{})
17} //
18// RECORDTYPE: Pipeline
19type Pipeline struct {
20 LexiconTypeID string `json:"$type,const=sh.tangled.pipeline" cborgen:"$type,const=sh.tangled.pipeline"`
21 TriggerMetadata *Pipeline_TriggerMetadata `json:"triggerMetadata" cborgen:"triggerMetadata"`
22 Workflows []*Pipeline_Workflow `json:"workflows" cborgen:"workflows"`
23}
24
25// Pipeline_CloneOpts is a "cloneOpts" in the sh.tangled.pipeline schema.
26type Pipeline_CloneOpts struct {
27 Depth int64 `json:"depth" cborgen:"depth"`
28 Skip bool `json:"skip" cborgen:"skip"`
29 Submodules bool `json:"submodules" cborgen:"submodules"`
30}
31
32type Pipeline_Dependencies_Elem struct {
33 Packages []string `json:"packages" cborgen:"packages"`
34 Registry string `json:"registry" cborgen:"registry"`
35}
36
37// Pipeline_ManualTriggerData is a "manualTriggerData" in the sh.tangled.pipeline schema.
38type Pipeline_ManualTriggerData struct {
39 Inputs []*Pipeline_ManualTriggerData_Inputs_Elem `json:"inputs,omitempty" cborgen:"inputs,omitempty"`
40}
41
42type Pipeline_ManualTriggerData_Inputs_Elem struct {
43 Key string `json:"key" cborgen:"key"`
44 Value string `json:"value" cborgen:"value"`
45}
46
47// Pipeline_PullRequestTriggerData is a "pullRequestTriggerData" in the sh.tangled.pipeline schema.
48type Pipeline_PullRequestTriggerData struct {
49 Action string `json:"action" cborgen:"action"`
50 SourceBranch string `json:"sourceBranch" cborgen:"sourceBranch"`
51 SourceSha string `json:"sourceSha" cborgen:"sourceSha"`
52 TargetBranch string `json:"targetBranch" cborgen:"targetBranch"`
53}
54
55// Pipeline_PushTriggerData is a "pushTriggerData" in the sh.tangled.pipeline schema.
56type Pipeline_PushTriggerData struct {
57 NewSha string `json:"newSha" cborgen:"newSha"`
58 OldSha string `json:"oldSha" cborgen:"oldSha"`
59 Ref string `json:"ref" cborgen:"ref"`
60}
61
62// Pipeline_Step is a "step" in the sh.tangled.pipeline schema.
63type Pipeline_Step struct {
64 Command string `json:"command" cborgen:"command"`
65 Environment []*Pipeline_Step_Environment_Elem `json:"environment,omitempty" cborgen:"environment,omitempty"`
66 Name string `json:"name" cborgen:"name"`
67}
68
69type Pipeline_Step_Environment_Elem struct {
70 Key string `json:"key" cborgen:"key"`
71 Value string `json:"value" cborgen:"value"`
72}
73
74// Pipeline_TriggerMetadata is a "triggerMetadata" in the sh.tangled.pipeline schema.
75type Pipeline_TriggerMetadata struct {
76 Kind string `json:"kind" cborgen:"kind"`
77 Manual *Pipeline_ManualTriggerData `json:"manual,omitempty" cborgen:"manual,omitempty"`
78 PullRequest *Pipeline_PullRequestTriggerData `json:"pullRequest,omitempty" cborgen:"pullRequest,omitempty"`
79 Push *Pipeline_PushTriggerData `json:"push,omitempty" cborgen:"push,omitempty"`
80 Repo *Pipeline_TriggerRepo `json:"repo" cborgen:"repo"`
81}
82
83// Pipeline_TriggerRepo is a "triggerRepo" in the sh.tangled.pipeline schema.
84type Pipeline_TriggerRepo struct {
85 DefaultBranch string `json:"defaultBranch" cborgen:"defaultBranch"`
86 Did string `json:"did" cborgen:"did"`
87 Knot string `json:"knot" cborgen:"knot"`
88 Repo string `json:"repo" cborgen:"repo"`
89}
90
91// Pipeline_Workflow is a "workflow" in the sh.tangled.pipeline schema.
92type Pipeline_Workflow struct {
93 Clone *Pipeline_CloneOpts `json:"clone" cborgen:"clone"`
94 Dependencies []Pipeline_Dependencies_Elem `json:"dependencies" cborgen:"dependencies"`
95 Environment []*Pipeline_Workflow_Environment_Elem `json:"environment" cborgen:"environment"`
96 Name string `json:"name" cborgen:"name"`
97 Steps []*Pipeline_Step `json:"steps" cborgen:"steps"`
98}
99
100type Pipeline_Workflow_Environment_Elem struct {
101 Key string `json:"key" cborgen:"key"`
102 Value string `json:"value" cborgen:"value"`
103}