forked from
tangled.org/core
Monorepo for Tangled
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2
3package tangled
4
5// schema: sh.tangled.pipeline
6
7const (
8 PipelineNSID = "sh.tangled.pipeline"
9)
10
11func init() {
12 // util.RegisterType("sh.tangled.pipeline", &Pipeline{})
13} //
14// RECORDTYPE: Pipeline
15type Pipeline struct {
16 LexiconTypeID string `json:"$type,const=sh.tangled.pipeline" cborgen:"$type,const=sh.tangled.pipeline"`
17 TriggerMetadata *Pipeline_TriggerMetadata `json:"triggerMetadata" cborgen:"triggerMetadata"`
18 Workflows []*Pipeline_Workflow `json:"workflows" cborgen:"workflows"`
19}
20
21// Pipeline_CloneOpts is a "cloneOpts" in the sh.tangled.pipeline schema.
22type Pipeline_CloneOpts struct {
23 Depth int64 `json:"depth" cborgen:"depth"`
24 Skip bool `json:"skip" cborgen:"skip"`
25 Submodules bool `json:"submodules" cborgen:"submodules"`
26}
27
28// Pipeline_ManualTriggerData is a "manualTriggerData" in the sh.tangled.pipeline schema.
29type Pipeline_ManualTriggerData struct {
30 Inputs []*Pipeline_Pair `json:"inputs,omitempty" cborgen:"inputs,omitempty"`
31}
32
33// Pipeline_Pair is a "pair" in the sh.tangled.pipeline schema.
34type Pipeline_Pair struct {
35 Key string `json:"key" cborgen:"key"`
36 Value string `json:"value" cborgen:"value"`
37}
38
39// Pipeline_PullRequestTriggerData is a "pullRequestTriggerData" in the sh.tangled.pipeline schema.
40type Pipeline_PullRequestTriggerData struct {
41 Action string `json:"action" cborgen:"action"`
42 SourceBranch string `json:"sourceBranch" cborgen:"sourceBranch"`
43 SourceSha string `json:"sourceSha" cborgen:"sourceSha"`
44 TargetBranch string `json:"targetBranch" cborgen:"targetBranch"`
45}
46
47// Pipeline_PushTriggerData is a "pushTriggerData" in the sh.tangled.pipeline schema.
48type Pipeline_PushTriggerData struct {
49 NewSha string `json:"newSha" cborgen:"newSha"`
50 OldSha string `json:"oldSha" cborgen:"oldSha"`
51 Ref string `json:"ref" cborgen:"ref"`
52}
53
54// Pipeline_TriggerMetadata is a "triggerMetadata" in the sh.tangled.pipeline schema.
55type Pipeline_TriggerMetadata struct {
56 Kind string `json:"kind" cborgen:"kind"`
57 Manual *Pipeline_ManualTriggerData `json:"manual,omitempty" cborgen:"manual,omitempty"`
58 PullRequest *Pipeline_PullRequestTriggerData `json:"pullRequest,omitempty" cborgen:"pullRequest,omitempty"`
59 Push *Pipeline_PushTriggerData `json:"push,omitempty" cborgen:"push,omitempty"`
60 Repo *Pipeline_TriggerRepo `json:"repo" cborgen:"repo"`
61}
62
63// Pipeline_TriggerRepo is a "triggerRepo" in the sh.tangled.pipeline schema.
64type Pipeline_TriggerRepo struct {
65 DefaultBranch string `json:"defaultBranch" cborgen:"defaultBranch"`
66 Did string `json:"did" cborgen:"did"`
67 Knot string `json:"knot" cborgen:"knot"`
68 Repo string `json:"repo" cborgen:"repo"`
69 // repoDid: DID of the repo itself, if assigned
70 RepoDid *string `json:"repoDid,omitempty" cborgen:"repoDid,omitempty"`
71}
72
73// Pipeline_Workflow is a "workflow" in the sh.tangled.pipeline schema.
74type Pipeline_Workflow struct {
75 Clone *Pipeline_CloneOpts `json:"clone" cborgen:"clone"`
76 Engine string `json:"engine" cborgen:"engine"`
77 Name string `json:"name" cborgen:"name"`
78 Raw string `json:"raw" cborgen:"raw"`
79}