1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2
3package tangled
4
5// schema: sh.tangled.pipeline
6
7//import (
8// "github.com/bluesky-social/indigo/lex/util"
9//)
10
11const (
12 PipelineNSID = "sh.tangled.pipeline"
13)
14
15//func 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 Name string `json:"name" cborgen:"name"`
66}
67
68// Pipeline_TriggerMetadata is a "triggerMetadata" in the sh.tangled.pipeline schema.
69type Pipeline_TriggerMetadata struct {
70 Kind string `json:"kind" cborgen:"kind"`
71 Manual *Pipeline_ManualTriggerData `json:"manual,omitempty" cborgen:"manual,omitempty"`
72 PullRequest *Pipeline_PullRequestTriggerData `json:"pullRequest,omitempty" cborgen:"pullRequest,omitempty"`
73 Push *Pipeline_PushTriggerData `json:"push,omitempty" cborgen:"push,omitempty"`
74 Repo *Pipeline_TriggerRepo `json:"repo" cborgen:"repo"`
75}
76
77// Pipeline_TriggerRepo is a "triggerRepo" in the sh.tangled.pipeline schema.
78type Pipeline_TriggerRepo struct {
79 DefaultBranch string `json:"defaultBranch" cborgen:"defaultBranch"`
80 Did string `json:"did" cborgen:"did"`
81 Knot string `json:"knot" cborgen:"knot"`
82 Repo string `json:"repo" cborgen:"repo"`
83}
84
85// Pipeline_Workflow is a "workflow" in the sh.tangled.pipeline schema.
86type Pipeline_Workflow struct {
87 Clone *Pipeline_CloneOpts `json:"clone" cborgen:"clone"`
88 Dependencies []Pipeline_Dependencies_Elem `json:"dependencies" cborgen:"dependencies"`
89 Environment []*Pipeline_Workflow_Environment_Elem `json:"environment" cborgen:"environment"`
90 Name string `json:"name" cborgen:"name"`
91 Steps []*Pipeline_Step `json:"steps" cborgen:"steps"`
92}
93
94type Pipeline_Workflow_Environment_Elem struct {
95 Key string `json:"key" cborgen:"key"`
96 Value string `json:"value" cborgen:"value"`
97}