Documentation ¶
Overview ¶
Package config is a generated protocol buffer package.
It is generated from these files:
github.com/luci/luci-go/milo/api/config/project.proto github.com/luci/luci-go/milo/api/config/settings.proto
It has these top-level messages:
Project Console Builder Settings
Index ¶
- type Builder
- type Console
- func (*Console) Descriptor() ([]byte, []int)
- func (m *Console) GetBuilders() []*Builder
- func (m *Console) GetID() string
- func (m *Console) GetManifestName() string
- func (m *Console) GetName() string
- func (m *Console) GetRef() string
- func (m *Console) GetRepoURL() string
- func (*Console) ProtoMessage()
- func (m *Console) Reset()
- func (m *Console) String() string
- type Project
- type Settings
- func (*Settings) Descriptor() ([]byte, []int)
- func (m *Settings) GetBuildbot() *Settings_Buildbot
- func (m *Settings) GetBuildbucket() *Settings_Buildbucket
- func (m *Settings) GetSwarming() *Settings_Swarming
- func (*Settings) ProtoMessage()
- func (m *Settings) Reset()
- func (m *Settings) String() string
- type Settings_Buildbot
- func (*Settings_Buildbot) Descriptor() ([]byte, []int)
- func (m *Settings_Buildbot) GetInternalReader() string
- func (m *Settings_Buildbot) GetInternalSubscription() string
- func (m *Settings_Buildbot) GetPublicSubscription() string
- func (*Settings_Buildbot) ProtoMessage()
- func (m *Settings_Buildbot) Reset()
- func (m *Settings_Buildbot) String() string
- type Settings_Buildbucket
- func (*Settings_Buildbucket) Descriptor() ([]byte, []int)
- func (m *Settings_Buildbucket) GetHost() string
- func (m *Settings_Buildbucket) GetName() string
- func (m *Settings_Buildbucket) GetProject() string
- func (*Settings_Buildbucket) ProtoMessage()
- func (m *Settings_Buildbucket) Reset()
- func (m *Settings_Buildbucket) String() string
- type Settings_Swarming
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct { // Name is the identifier to find the builder, which includes the module. // Buildbot builds would be like "buildbot/chromium.linux/Linux Tests" // Buildbucket builds would be like "buildbucket/luci.chromium.try/linux_chromium_rel_ng" Name string `protobuf:"bytes,1,opt,name=Name" json:"Name,omitempty"` // Category describes the hierarchy of the builder on the header of the // console as a "|" delimited list. Neighboring builders with common ancestors // will be have their headers merged. Category string `protobuf:"bytes,2,opt,name=Category" json:"Category,omitempty"` // ShortName is the 1-3 character abbreviation of the builder. ShortName string `protobuf:"bytes,3,opt,name=ShortName" json:"ShortName,omitempty"` }
A builder is a reference to a Milo builder.
type Console ¶
type Console struct { // ID is the reference to the console, and will be the address to make the // console reachable from /console/<Project>/<ID>. ID string `protobuf:"bytes,1,opt,name=ID" json:"ID,omitempty"` // Name is the longform name of the waterfall, and will be used to be // displayed in the title. Name string `protobuf:"bytes,2,opt,name=Name" json:"Name,omitempty"` // RepoURL is the URL of the git repository to display as the rows of the console. RepoURL string `protobuf:"bytes,3,opt,name=RepoURL" json:"RepoURL,omitempty"` // Ref is the ref to pull commits from when displaying the console. // Eg. refs/heads/master Ref string `protobuf:"bytes,4,opt,name=Ref" json:"Ref,omitempty"` // ManifestName is the name of the manifest the waterfall looks at. // By convention, Manifest Names can be: // * UNPATCHED - For non patched builds, such as continuous builds // * PATCHED - For patched builds, such as those on try jobs ManifestName string `protobuf:"bytes,5,opt,name=ManifestName" json:"ManifestName,omitempty"` // Builders is a list of builder configurations to display as the columns of the console. Builders []*Builder `protobuf:"bytes,6,rep,name=Builders" json:"Builders,omitempty"` }
Console is a waterfall definition consisting of one or more builders.
type Project ¶
type Project struct { // ID is the identifier for the project, if different from its repository name. ID string `protobuf:"bytes,1,opt,name=ID" json:"ID,omitempty"` // Consoles is a list of consoles to define under /console/ Consoles []*Console `protobuf:"bytes,2,rep,name=Consoles" json:"Consoles,omitempty"` }
Project is a project definition for Milo.
type Settings ¶
type Settings struct { Buildbot *Settings_Buildbot `protobuf:"bytes,1,opt,name=buildbot" json:"buildbot,omitempty"` Buildbucket *Settings_Buildbucket `protobuf:"bytes,2,opt,name=buildbucket" json:"buildbucket,omitempty"` Swarming *Settings_Swarming `protobuf:"bytes,3,opt,name=swarming" json:"swarming,omitempty"` }
Settings represents the format for the global (service) config for Milo.
func (*Settings) GetBuildbot ¶
func (m *Settings) GetBuildbot() *Settings_Buildbot
func (*Settings) GetBuildbucket ¶
func (m *Settings) GetBuildbucket() *Settings_Buildbucket
func (*Settings) GetSwarming ¶
func (m *Settings) GetSwarming() *Settings_Swarming
type Settings_Buildbot ¶
type Settings_Buildbot struct { // internal_reader is the infra-auth group that is allowed to read internal // buildbot data. InternalReader string `protobuf:"bytes,1,opt,name=internal_reader,json=internalReader" json:"internal_reader,omitempty"` // public_subscription is the name of the pubsub topic where public builds come in // from PublicSubscription string `protobuf:"bytes,2,opt,name=public_subscription,json=publicSubscription" json:"public_subscription,omitempty"` // internal_subscription is the name of the pubsub topic where internal builds // come in from InternalSubscription string `protobuf:"bytes,3,opt,name=internal_subscription,json=internalSubscription" json:"internal_subscription,omitempty"` }
func (*Settings_Buildbot) Descriptor ¶
func (*Settings_Buildbot) Descriptor() ([]byte, []int)
func (*Settings_Buildbot) GetInternalReader ¶
func (m *Settings_Buildbot) GetInternalReader() string
func (*Settings_Buildbot) GetInternalSubscription ¶
func (m *Settings_Buildbot) GetInternalSubscription() string
func (*Settings_Buildbot) GetPublicSubscription ¶
func (m *Settings_Buildbot) GetPublicSubscription() string
func (*Settings_Buildbot) ProtoMessage ¶
func (*Settings_Buildbot) ProtoMessage()
func (*Settings_Buildbot) Reset ¶
func (m *Settings_Buildbot) Reset()
func (*Settings_Buildbot) String ¶
func (m *Settings_Buildbot) String() string
type Settings_Buildbucket ¶
type Settings_Buildbucket struct { // name is the user friendly name of the Buildbucket instance we're pointing to. Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` // host is the hostname of the buildbucket instance we're pointing to (sans schema). Host string `protobuf:"bytes,2,opt,name=host" json:"host,omitempty"` // project is the name of the Google Cloud project that the pubsub topic // belongs to. Project string `protobuf:"bytes,3,opt,name=project" json:"project,omitempty"` }
func (*Settings_Buildbucket) Descriptor ¶
func (*Settings_Buildbucket) Descriptor() ([]byte, []int)
func (*Settings_Buildbucket) GetHost ¶
func (m *Settings_Buildbucket) GetHost() string
func (*Settings_Buildbucket) GetName ¶
func (m *Settings_Buildbucket) GetName() string
func (*Settings_Buildbucket) GetProject ¶
func (m *Settings_Buildbucket) GetProject() string
func (*Settings_Buildbucket) ProtoMessage ¶
func (*Settings_Buildbucket) ProtoMessage()
func (*Settings_Buildbucket) Reset ¶
func (m *Settings_Buildbucket) Reset()
func (*Settings_Buildbucket) String ¶
func (m *Settings_Buildbucket) String() string
type Settings_Swarming ¶
type Settings_Swarming struct { // default_host is the hostname of the swarming host Milo defaults to, if // none is specified. Default host is implicitly an allowed host. DefaultHost string `protobuf:"bytes,1,opt,name=default_host,json=defaultHost" json:"default_host,omitempty"` // allowed_hosts is a whitelist of hostnames of swarming instances // that Milo is allowed to talk to. This is specified here for security // reasons, because Milo will hand out its oauth2 token to a swarming host. AllowedHosts []string `protobuf:"bytes,2,rep,name=allowed_hosts,json=allowedHosts" json:"allowed_hosts,omitempty"` }
func (*Settings_Swarming) Descriptor ¶
func (*Settings_Swarming) Descriptor() ([]byte, []int)
func (*Settings_Swarming) GetAllowedHosts ¶
func (m *Settings_Swarming) GetAllowedHosts() []string
func (*Settings_Swarming) GetDefaultHost ¶
func (m *Settings_Swarming) GetDefaultHost() string
func (*Settings_Swarming) ProtoMessage ¶
func (*Settings_Swarming) ProtoMessage()
func (*Settings_Swarming) Reset ¶
func (m *Settings_Swarming) Reset()
func (*Settings_Swarming) String ¶
func (m *Settings_Swarming) String() string
Click to show internal directories.
Click to hide internal directories.