| OLD | NEW |
| 1 // Code generated by protoc-gen-go. | 1 // Code generated by protoc-gen-go. |
| 2 // source: github.com/luci/luci-go/deploytool/api/deploy/config.proto | 2 // source: github.com/luci/luci-go/deploytool/api/deploy/config.proto |
| 3 // DO NOT EDIT! | 3 // DO NOT EDIT! |
| 4 | 4 |
| 5 package deploy | 5 package deploy |
| 6 | 6 |
| 7 import proto "github.com/golang/protobuf/proto" | 7 import proto "github.com/golang/protobuf/proto" |
| 8 import fmt "fmt" | 8 import fmt "fmt" |
| 9 import math "math" | 9 import math "math" |
| 10 | 10 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 } | 29 } |
| 30 | 30 |
| 31 func (x Deployment_CloudProject_VersionScheme) String() string { | 31 func (x Deployment_CloudProject_VersionScheme) String() string { |
| 32 return proto.EnumName(Deployment_CloudProject_VersionScheme_name, int32(
x)) | 32 return proto.EnumName(Deployment_CloudProject_VersionScheme_name, int32(
x)) |
| 33 } | 33 } |
| 34 func (Deployment_CloudProject_VersionScheme) EnumDescriptor() ([]byte, []int) { | 34 func (Deployment_CloudProject_VersionScheme) EnumDescriptor() ([]byte, []int) { |
| 35 return fileDescriptor2, []int{3, 0, 0} | 35 return fileDescriptor2, []int{3, 0, 0} |
| 36 } | 36 } |
| 37 | 37 |
| 38 // * | 38 // * |
| 39 // The deployment configuration is a set of parameters composed from local and | 39 // Layout defines the root directory of a deployment configuration. |
| 40 // source configuration files. Each configuration file is read as a text | |
| 41 // protobuf in two stages: | |
| 42 // | 40 // |
| 43 // Local Stage | 41 // Each layout field has a default value, so an empty layout protobuf file is |
| 44 // ============ | 42 // a valid layout. Each field may be overridden to suit your repository's |
| 45 // First, the source and project layout configurations are loaded. These detail | 43 // structure, if needed. |
| 46 // the projects that are to be deployed and the source definitions for those | |
| 47 // projects. | |
| 48 // | |
| 49 // Local configurations are located in subdirectories relative to a root | |
| 50 // "layout.cfg" file: | |
| 51 // | |
| 52 // /layout.cfg | |
| 53 // /sources/ | |
| 54 // <source-group-name>/ (Defines a source group). | |
| 55 // <source-name>.cfg (Defines a source within the source group). | |
| 56 // | |
| 57 // /applications/ | |
| 58 // <application-name>.cfg (Defines a application). | |
| 59 // | |
| 60 // /deployments/ | |
| 61 // <deployment-name>.cfg (Defines a deployment). | |
| 62 // | |
| 63 // Each "source" defines host repositories to check out with that source's name. | |
| 64 // Sources can be pulled from a variety of places, and will be checked out into | |
| 65 // uniquely-named staging directories. | |
| 66 // | |
| 67 // Each "application" defines a set of source-relative components that the | |
| 68 // application is composed of. The components' definitions are located in the | |
| 69 // deployment configuration area within their source. | |
| 70 // | |
| 71 // A "deployment" binds an "application" to a set of "sources" and | |
| 72 // deployment-specific parameters (e.g., cloud project). A deployment's | |
| 73 // configuration is composed of its application's components loaded from their | |
| 74 // sources. Deployment operations are executed against deployments. | |
| 75 // | |
| 76 // Source Stage | |
| 77 // ============ | |
| 78 // Each source referenced by the named application(s) will be checked out in a | |
| 79 // staging area. Configurations referenced by the applications will then be | |
| 80 // loaded from those sources to complete the deployment configuration. | |
| 81 type Layout struct { | 44 type Layout struct { |
| 82 // * | 45 // * |
| 83 // If specified, the relative path to the sources configuration director
y. If | 46 // If specified, the relative path to the sources configuration director
y. If |
| 84 // empty, this will default to "sources". | 47 // empty, this will default to "sources". |
| 85 SourcesPath string `protobuf:"bytes,1,opt,name=sources_path,json=sources
Path" json:"sources_path,omitempty"` | 48 SourcesPath string `protobuf:"bytes,1,opt,name=sources_path,json=sources
Path" json:"sources_path,omitempty"` |
| 86 // * | 49 // * |
| 87 // If specified, the relative path to the applications configuration | 50 // If specified, the relative path to the applications configuration |
| 88 // directory. If empty, this will default to "applications". | 51 // directory. If empty, this will default to "applications". |
| 89 ApplicationsPath string `protobuf:"bytes,2,opt,name=applications_path,js
on=applicationsPath" json:"applications_path,omitempty"` | 52 ApplicationsPath string `protobuf:"bytes,2,opt,name=applications_path,js
on=applicationsPath" json:"applications_path,omitempty"` |
| 90 // * | 53 // * |
| (...skipping 13 matching lines...) Expand all Loading... |
| 104 // * | 67 // * |
| 105 // Source represents a single source configuration file. | 68 // Source represents a single source configuration file. |
| 106 // | 69 // |
| 107 // It contains definitions for the set of source repositories that make up this | 70 // It contains definitions for the set of source repositories that make up this |
| 108 // Source. | 71 // Source. |
| 109 // | 72 // |
| 110 // Each source is defined within a source group directory, and is named | 73 // Each source is defined within a source group directory, and is named |
| 111 // "<source-name>.cfg". The source can be referenced internally by its full | 74 // "<source-name>.cfg". The source can be referenced internally by its full |
| 112 // source path, "<source-group-name>/<source-name>". | 75 // source path, "<source-group-name>/<source-name>". |
| 113 // | 76 // |
| 114 // If the source root contains a ".luci-deploytool.cfg" file, it will be read | 77 // If the source root contains a "luci-deploy.cfg" file, it will be read |
| 115 // and interepreted as a "SourceLayout" message. | 78 // and interepreted as a "SourceLayout" message. |
| 116 type Source struct { | 79 type Source struct { |
| 117 // Types that are valid to be assigned to Source: | 80 // Types that are valid to be assigned to Source: |
| 118 // *Source_Git | 81 // *Source_Git |
| 119 Source isSource_Source `protobuf_oneof:"source"` | 82 Source isSource_Source `protobuf_oneof:"source"` |
| 120 // * | 83 // * |
| 121 // Go Paths to add to this repository. | 84 // Go Paths to add to this repository. |
| 122 // | 85 // |
| 123 // This will be prepended to the GOPATH that the repository exports duri
ng its | 86 // This will be prepended to the GOPATH that the repository exports duri
ng its |
| 124 // configuration/initialization. | 87 // configuration/initialization. |
| 125 GoPath []*GoPath `protobuf:"bytes,10,rep,name=go_path,json=goPath" json:
"go_path,omitempty"` | 88 GoPath []*GoPath `protobuf:"bytes,10,rep,name=go_path,json=goPath" json:
"go_path,omitempty"` |
| 126 // * | 89 // * |
| 127 // If true, this repository is allowed to run scripts: | 90 // If true, this repository is allowed to run scripts: |
| 128 // - At source initialization time, the initialization scripts defined i
n | 91 // - At source initialization time, the initialization scripts defined i
n |
| 129 » // ".luci-deploytool.cfg" will be executed. | 92 » // "/luci-deploy.cfg" will be executed. |
| 130 // - At build time, build scripts associated with a Component will | 93 // - At build time, build scripts associated with a Component will |
| 131 // be executed. Note that if the a Component declares a build script a
nd `run_scripts` is not true, | 94 // be executed. Note that if the a Component declares a build script a
nd `run_scripts` is not true, |
| 132 // the build will fail. | 95 // the build will fail. |
| 133 // | 96 // |
| 134 // It is important that this repository is trusted if this is set to tru
e, | 97 // It is important that this repository is trusted if this is set to tru
e, |
| 135 // since this script will be run on the deployment system under the | 98 // since this script will be run on the deployment system under the |
| 136 // deployment user account. | 99 // deployment user account. |
| 137 RunScripts bool `protobuf:"varint,11,opt,name=run_scripts,json=runScript
s" json:"run_scripts,omitempty"` | 100 RunScripts bool `protobuf:"varint,11,opt,name=run_scripts,json=runScript
s" json:"run_scripts,omitempty"` |
| 138 // * If true, mark this as a tained source. | 101 // * If true, mark this as a tained source. |
| 139 Tainted bool `protobuf:"varint,12,opt,name=tainted" json:"tainted,omitem
pty"` | 102 Tainted bool `protobuf:"varint,12,opt,name=tainted" json:"tainted,omitem
pty"` |
| (...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 508 0xc2, 0x24, 0xf9, 0x11, 0x24, 0x36, 0x13, 0xd0, 0x64, 0x2e, 0xd3, 0xb8,
0xf2, 0xfc, 0x45, 0x94, | 471 0xc2, 0x24, 0xf9, 0x11, 0x24, 0x36, 0x13, 0xd0, 0x64, 0x2e, 0xd3, 0xb8,
0xf2, 0xfc, 0x45, 0x94, |
| 509 0x10, 0x97, 0xaf, 0x53, 0x52, 0x3c, 0x28, 0x06, 0xbb, 0x13, 0x10, 0x9a,
0x40, 0x23, 0xa5, 0x81, | 472 0x10, 0x97, 0xaf, 0x53, 0x52, 0x3c, 0x28, 0x06, 0xbb, 0x13, 0x10, 0x9a,
0x40, 0x23, 0xa5, 0x81, |
| 510 0x79, 0x15, 0xfe, 0xfc, 0x76, 0x47, 0x9c, 0x29, 0x0d, 0x2e, 0xa2, 0x24,
0x10, 0x0f, 0x13, 0x96, | 473 0x79, 0x15, 0xfe, 0xfc, 0x76, 0x47, 0x9c, 0x29, 0x0d, 0x2e, 0xa2, 0x24,
0x10, 0x0f, 0x13, 0x96, |
| 511 0x0a, 0xf6, 0x19, 0x40, 0x09, 0x6d, 0x3c, 0x99, 0x0d, 0x3b, 0x8c, 0xa8,
0x94, 0x67, 0xea, 0x74, | 474 0x0a, 0xf6, 0x19, 0x40, 0x09, 0x6d, 0x3c, 0x99, 0x0d, 0x3b, 0x8c, 0xa8,
0x94, 0x67, 0xea, 0x74, |
| 512 0x4d, 0xfc, 0x54, 0x0f, 0x7f, 0x86, 0xdd, 0x67, 0x81, 0x40, 0x16, 0xb4,
0xaf, 0xae, 0xff, 0x3b, | 475 0x4d, 0xfc, 0x54, 0x0f, 0x7f, 0x86, 0xdd, 0x67, 0x81, 0x40, 0x16, 0xb4,
0xaf, 0xae, 0xff, 0x3b, |
| 513 0x7f, 0x7d, 0x7b, 0xd7, 0xdf, 0x12, 0xda, 0xbd, 0xe7, 0x31, 0x95, 0xef,
0xc9, 0x92, 0xac, 0x8b, | 476 0x7f, 0x7d, 0x7b, 0xd7, 0xdf, 0x12, 0xda, 0xbd, 0xe7, 0x31, 0x95, 0xef,
0xc9, 0x92, 0xac, 0x8b, |
| 514 0x17, 0x46, 0x2c, 0xa5, 0x47, 0x0f, 0x5e, 0x9c, 0x17, 0xc6, 0xe9, 0xe2,
0xb4, 0xfe, 0x57, 0x6d, | 477 0x17, 0x46, 0x2c, 0xa5, 0x47, 0x0f, 0x5e, 0x9c, 0x17, 0xc6, 0xe9, 0xe2,
0xb4, 0xfe, 0x57, 0x6d, |
| 515 0xde, 0x52, 0x6f, 0xfc, 0x1f, 0x5f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x57,
0xc3, 0x08, 0xf0, 0x67, | 478 0xde, 0x52, 0x6f, 0xfc, 0x1f, 0x5f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x57,
0xc3, 0x08, 0xf0, 0x67, |
| 516 0x06, 0x00, 0x00, | 479 0x06, 0x00, 0x00, |
| 517 } | 480 } |
| OLD | NEW |