luci: go.chromium.org/luci/milo/api/config Index | Files

package config

import "go.chromium.org/luci/milo/api/config"

Index

Package Files

generate.go project.pb.go proto_gae.gen.go settings.pb.go util.go

Variables

var File_go_chromium_org_luci_milo_api_config_project_proto protoreflect.FileDescriptor
var File_go_chromium_org_luci_milo_api_config_settings_proto protoreflect.FileDescriptor

type BugTemplate Uses

type BugTemplate struct {
    Summary         string `protobuf:"bytes,1,opt,name=summary,proto3" json:"summary,omitempty"`
    Description     string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
    MonorailProject string `protobuf:"bytes,3,opt,name=monorail_project,json=monorailProject,proto3" json:"monorail_project,omitempty"`
    // Components identifies the monorail component(s) that the bug should
    // exist under in the hierarchical ">" separated format. For example:
    // "Infra>Client>ChromeOS>CI"
    Components []string `protobuf:"bytes,4,rep,name=components,proto3" json:"components,omitempty"`
    // contains filtered or unexported fields
}

BugTemplate defines how to make custom bug links to file Monorail bugs. The intention is for this to be used to insert a bug into a triage queue. The "summary" and "description" fields are templates for generating summary and description text, respectively. The template fields are interpolated with values specific to the context. See https://golang.org/pkg/text/template for the full template specification.

func (*BugTemplate) Descriptor Uses

func (*BugTemplate) Descriptor() ([]byte, []int)

Deprecated: Use BugTemplate.ProtoReflect.Descriptor instead.

func (*BugTemplate) FromProperty Uses

func (p *BugTemplate) FromProperty(prop datastore.Property) error

FromProperty implements datastore.PropertyConverter. It parses a '[]byte' into an embedded 'BugTemplate' when used with the "go.chromium.org/gae" library.

func (*BugTemplate) GetComponents Uses

func (x *BugTemplate) GetComponents() []string

func (*BugTemplate) GetDescription Uses

func (x *BugTemplate) GetDescription() string

func (*BugTemplate) GetMonorailProject Uses

func (x *BugTemplate) GetMonorailProject() string

func (*BugTemplate) GetSummary Uses

func (x *BugTemplate) GetSummary() string

func (*BugTemplate) ProtoMessage Uses

func (*BugTemplate) ProtoMessage()

func (*BugTemplate) ProtoReflect Uses

func (x *BugTemplate) ProtoReflect() protoreflect.Message

func (*BugTemplate) Reset Uses

func (x *BugTemplate) Reset()

func (*BugTemplate) String Uses

func (x *BugTemplate) String() string

func (*BugTemplate) ToProperty Uses

func (p *BugTemplate) ToProperty() (prop datastore.Property, err error)

ToProperty implements datastore.PropertyConverter. It causes an embedded 'BugTemplate' to serialize to an unindexed '[]byte' when used with the "go.chromium.org/gae" library.

type Builder Uses

type Builder struct {

    // Name is the BuilderID of the builders you wish to display for this column
    // in the console. e.g.
    //   * "buildbot/chromium.linux/Linux Tests"
    //   * "buildbucket/luci.chromium.try/linux_chromium_rel_ng"
    Name string `protobuf:"bytes,1,opt,name=name,proto3" 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.
    // In expanded view, each leaf category OR builder under a non-leaf category
    // will have it's own column.  The recommendation for maximum densification
    // is not to mix subcategories and builders for children of each category.
    Category string `protobuf:"bytes,2,opt,name=category,proto3" json:"category,omitempty"`
    // ShortName is shorter name of the builder.
    // The recommendation is to keep this name as short as reasonable,
    // as longer names take up more horizontal space.
    ShortName string `protobuf:"bytes,3,opt,name=short_name,json=shortName,proto3" json:"short_name,omitempty"`
    // contains filtered or unexported fields
}

Builder is a reference to a Milo builder.

func (*Builder) Descriptor Uses

func (*Builder) Descriptor() ([]byte, []int)

Deprecated: Use Builder.ProtoReflect.Descriptor instead.

func (*Builder) GetCategory Uses

func (x *Builder) GetCategory() string

func (*Builder) GetName Uses

func (x *Builder) GetName() string

func (*Builder) GetShortName Uses

func (x *Builder) GetShortName() string

func (*Builder) ParseCategory Uses

func (b *Builder) ParseCategory() []string

ParseCategory takes a Builder's Category and parses it into a list of subcategories. The top-level category is listed first.

func (*Builder) ProtoMessage Uses

func (*Builder) ProtoMessage()

func (*Builder) ProtoReflect Uses

func (x *Builder) ProtoReflect() protoreflect.Message

func (*Builder) Reset Uses

func (x *Builder) Reset()

func (*Builder) String Uses

func (x *Builder) String() string

type Console Uses

type Console struct {

    // Id is the reference to the console. The console will be visible at the
    // following URL: /p/<Project>/g/<ID>/console.
    Id  string `protobuf:"bytes,1,opt,name=id,proto3" 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,proto3" 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=repo_url,json=repoUrl,proto3" json:"repo_url,omitempty"`
    // Refs are the refs to pull commits from when displaying the console.
    //
    // Users can specify a regular expression to match several refs using
    // "regexp:" prefix, but the regular expression must have:
    //   * a literal prefix with at least two slashes present, e.g.
    //     "refs/release-\d+/foobar" is not allowed, because the literal prefix
    //     "refs/release-" only contains one slash, and
    //   * must not start with ^ or end with $ as they are added automatically.
    //
    // For best results, ensure each ref's has commit's **committer** timestamp
    // monotonically non-decreasing. Gerrit will take care of this if you require
    // each commmit to go through Gerrit by prohibiting "git push" on these refs.
    //
    // Eg. refs/heads/master, regexp:refs/branch-heads/\d+\.\d+
    Refs []string `protobuf:"bytes,14,rep,name=refs,proto3" json:"refs,omitempty"`
    // ExcludeRef is a ref, commits from which are ignored even when they are
    // reachable from the ref specified above. This must be specified as a single
    // fully-qualified ref, i.e. regexp syntax from above is not supported.
    //
    // Note: force pushes to this ref are not supported. Milo uses caching
    // assuming set of commits reachable from this ref may only grow, never lose
    // some commits.
    //
    // E.g. the config below allows to track commits from all release branches,
    // but ignore the commits from the master branch, from which these release
    // branches are branched off:
    //   ref: "regexp:refs/branch-heads/\d+\.\d+"
    //   exlude_ref: "refs/heads/master"
    ExcludeRef string `protobuf:"bytes,13,opt,name=exclude_ref,json=excludeRef,proto3" json:"exclude_ref,omitempty"`
    // ManifestName the name of the manifest the waterfall looks at.
    // This should always be "REVISION".
    // In the future, other manifest names can be supported.
    // TODO(hinoka,iannucci): crbug/832893 - Support custom manifest names, such as "UNPATCHED" / "PATCHED".
    ManifestName string `protobuf:"bytes,5,opt,name=manifest_name,json=manifestName,proto3" json:"manifest_name,omitempty"`
    // Builders is a list of builder configurations to display as the columns of the console.
    Builders []*Builder `protobuf:"bytes,6,rep,name=builders,proto3" json:"builders,omitempty"`
    // FaviconUrl is the URL to the favicon for this console page.
    // This field is optional. The favicon URL must have a host of
    // storage.googleapis.com.
    FaviconUrl string `protobuf:"bytes,7,opt,name=favicon_url,json=faviconUrl,proto3" json:"favicon_url,omitempty"`
    // Header is a collection of links, rotation information, and console summaries
    // displayed under the tree status but above the main console content.
    Header *Header `protobuf:"bytes,9,opt,name=header,proto3" json:"header,omitempty"`
    // HeaderId is a reference to a header.  Only one of Header or HeaderId should
    // be specified.
    HeaderId string `protobuf:"bytes,10,opt,name=header_id,json=headerId,proto3" json:"header_id,omitempty"`
    // If true, this console will not filter out builds marked as Experimental.
    // This field is optional. By default Consoles only show production builds.
    IncludeExperimentalBuilds bool `protobuf:"varint,11,opt,name=include_experimental_builds,json=includeExperimentalBuilds,proto3" json:"include_experimental_builds,omitempty"`
    // If true, only builders view will be available. Console view (i.e. git log
    // based view) will be disabled and users redirected to builder view.
    // Defaults to false.
    BuilderViewOnly bool `protobuf:"varint,12,opt,name=builder_view_only,json=builderViewOnly,proto3" json:"builder_view_only,omitempty"`
    // If set, will change the default number of commits to query on a single page.
    // If not set, will default to 50.
    DefaultCommitLimit int32 `protobuf:"varint,15,opt,name=default_commit_limit,json=defaultCommitLimit,proto3" json:"default_commit_limit,omitempty"`
    // If set, will default the console page to expanded view.
    // If not set, will default to collapsed view.
    DefaultExpand bool `protobuf:"varint,16,opt,name=default_expand,json=defaultExpand,proto3" json:"default_expand,omitempty"`
    // ExternalProject indicates that this is not a new console, but an external
    // one that should be included from the specified project.
    // If this is set, ExternalId must also be set, and no other fields must be
    // set except for Id and Name.
    ExternalProject string `protobuf:"bytes,17,opt,name=external_project,json=externalProject,proto3" json:"external_project,omitempty"`
    // ExternalId indicates that this is not a new console, but an external one
    // with the specified ID that should be included from ExternalProject.
    // If this is set, ExternalProject must also be set, and no other fields must
    // be set except for Id and Name.
    ExternalId string `protobuf:"bytes,18,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"`
    // Realm that the console exists under.
    // See https://chromium.googlesource.com/infra/luci/luci-py/+/refs/heads/master/appengine/auth_service/proto/realms_config.proto
    Realm string `protobuf:"bytes,19,opt,name=realm,proto3" json:"realm,omitempty"`
    // contains filtered or unexported fields
}

Console is a waterfall definition consisting of one or more builders.

func (*Console) AllBuilderIDs Uses

func (c *Console) AllBuilderIDs() []string

AllBuilderIDs returns all BuilderIDs mentioned by this Console.

func (*Console) Descriptor Uses

func (*Console) Descriptor() ([]byte, []int)

Deprecated: Use Console.ProtoReflect.Descriptor instead.

func (*Console) FromProperty Uses

func (p *Console) FromProperty(prop datastore.Property) error

FromProperty implements datastore.PropertyConverter. It parses a '[]byte' into an embedded 'Console' when used with the "go.chromium.org/gae" library.

func (*Console) GetBuilderViewOnly Uses

func (x *Console) GetBuilderViewOnly() bool

func (*Console) GetBuilders Uses

func (x *Console) GetBuilders() []*Builder

func (*Console) GetDefaultCommitLimit Uses

func (x *Console) GetDefaultCommitLimit() int32

func (*Console) GetDefaultExpand Uses

func (x *Console) GetDefaultExpand() bool

func (*Console) GetExcludeRef Uses

func (x *Console) GetExcludeRef() string

func (*Console) GetExternalId Uses

func (x *Console) GetExternalId() string

func (*Console) GetExternalProject Uses

func (x *Console) GetExternalProject() string

func (*Console) GetFaviconUrl Uses

func (x *Console) GetFaviconUrl() string

func (*Console) GetHeader Uses

func (x *Console) GetHeader() *Header

func (*Console) GetHeaderId Uses

func (x *Console) GetHeaderId() string

func (*Console) GetId Uses

func (x *Console) GetId() string

func (*Console) GetIncludeExperimentalBuilds Uses

func (x *Console) GetIncludeExperimentalBuilds() bool

func (*Console) GetManifestName Uses

func (x *Console) GetManifestName() string

func (*Console) GetName Uses

func (x *Console) GetName() string

func (*Console) GetRealm Uses

func (x *Console) GetRealm() string

func (*Console) GetRefs Uses

func (x *Console) GetRefs() []string

func (*Console) GetRepoUrl Uses

func (x *Console) GetRepoUrl() string

func (*Console) ProtoMessage Uses

func (*Console) ProtoMessage()

func (*Console) ProtoReflect Uses

func (x *Console) ProtoReflect() protoreflect.Message

func (*Console) Reset Uses

func (x *Console) Reset()

func (*Console) String Uses

func (x *Console) String() string

func (*Console) ToProperty Uses

func (p *Console) ToProperty() (prop datastore.Property, err error)

ToProperty implements datastore.PropertyConverter. It causes an embedded 'Console' to serialize to an unindexed '[]byte' when used with the "go.chromium.org/gae" library.

type ConsoleSummaryGroup Uses

type ConsoleSummaryGroup struct {

    // Title is a name or label for this group of consoles.  This is optional.
    Title *Link `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
    // ConsoleIds is a list of console ids to display in this console group.
    // Each console id must be prepended with its related project (e.g.
    // chromium/main) because console ids are project-local.
    // Only consoles from the same project are supported.
    // TODO(hinoka): Allow cross-project consoles.
    ConsoleIds []string `protobuf:"bytes,2,rep,name=console_ids,json=consoleIds,proto3" json:"console_ids,omitempty"`
    // contains filtered or unexported fields
}

ConsoleSummaryGroup is a list of consoles to be displayed as console summaries (aka the little bubbles at the top of the console). This can optionally have a group name if specified in the group_link. (e.g. "Tree closers", "Experimental", etc)

func (*ConsoleSummaryGroup) Descriptor Uses

func (*ConsoleSummaryGroup) Descriptor() ([]byte, []int)

Deprecated: Use ConsoleSummaryGroup.ProtoReflect.Descriptor instead.

func (*ConsoleSummaryGroup) GetConsoleIds Uses

func (x *ConsoleSummaryGroup) GetConsoleIds() []string

func (*ConsoleSummaryGroup) GetTitle Uses

func (x *ConsoleSummaryGroup) GetTitle() *Link

func (*ConsoleSummaryGroup) ProtoMessage Uses

func (*ConsoleSummaryGroup) ProtoMessage()

func (*ConsoleSummaryGroup) ProtoReflect Uses

func (x *ConsoleSummaryGroup) ProtoReflect() protoreflect.Message

func (*ConsoleSummaryGroup) Reset Uses

func (x *ConsoleSummaryGroup) Reset()

func (*ConsoleSummaryGroup) String Uses

func (x *ConsoleSummaryGroup) String() string
type Header struct {

    // Oncalls are a reference to oncall rotations, which is a URL to a json
    // endpoint with the following format:
    // {
    //   "updated_unix_timestamp": <int>,
    //   "emails": [
    //     "email@somewhere.com",
    //     "email@nowhere.com
    //   ]
    // }
    Oncalls []*Oncall `protobuf:"bytes,1,rep,name=oncalls,proto3" json:"oncalls,omitempty"`
    // Links is a list of named groups of web links.
    Links []*LinkGroup `protobuf:"bytes,2,rep,name=links,proto3" json:"links,omitempty"`
    // ConsoleGroups are groups of console summaries, each optionally named.
    ConsoleGroups []*ConsoleSummaryGroup `protobuf:"bytes,3,rep,name=console_groups,json=consoleGroups,proto3" json:"console_groups,omitempty"`
    // TreeStatusHost is the hostname of the chromium-status instance where
    // the tree status of this console is hosted.  If provided, this will appear
    // as the bar at the very top of the page.
    TreeStatusHost string `protobuf:"bytes,4,opt,name=tree_status_host,json=treeStatusHost,proto3" json:"tree_status_host,omitempty"`
    // Id is a reference to the header.
    Id  string `protobuf:"bytes,5,opt,name=id,proto3" json:"id,omitempty"`
    // contains filtered or unexported fields
}

Header is a collection of links, rotation information, and console summaries that are displayed at the top of a console, below the tree status information. Links and oncall information is always laid out to the left, while console groups are laid out on the right. Each oncall and links group take up a row.

func (*Header) Descriptor Uses

func (*Header) Descriptor() ([]byte, []int)

Deprecated: Use Header.ProtoReflect.Descriptor instead.

func (*Header) GetConsoleGroups Uses

func (x *Header) GetConsoleGroups() []*ConsoleSummaryGroup

func (*Header) GetId Uses

func (x *Header) GetId() string
func (x *Header) GetLinks() []*LinkGroup

func (*Header) GetOncalls Uses

func (x *Header) GetOncalls() []*Oncall

func (*Header) GetTreeStatusHost Uses

func (x *Header) GetTreeStatusHost() string

func (*Header) ProtoMessage Uses

func (*Header) ProtoMessage()

func (*Header) ProtoReflect Uses

func (x *Header) ProtoReflect() protoreflect.Message

func (*Header) Reset Uses

func (x *Header) Reset()

func (*Header) String Uses

func (x *Header) String() string
type Link struct {

    // Text is displayed as the text between the anchor tags.
    Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
    // Url is the URL to link to.
    Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
    // Alt is the alt text displayed when hovering over the text.
    Alt string `protobuf:"bytes,3,opt,name=alt,proto3" json:"alt,omitempty"`
    // contains filtered or unexported fields
}

Link is a link to an internet resource, which will be rendered out as an anchor tag <a href="url" alt="alt">text</a>.

func (*Link) Descriptor Uses

func (*Link) Descriptor() ([]byte, []int)

Deprecated: Use Link.ProtoReflect.Descriptor instead.

func (*Link) GetAlt Uses

func (x *Link) GetAlt() string

func (*Link) GetText Uses

func (x *Link) GetText() string

func (*Link) GetUrl Uses

func (x *Link) GetUrl() string

func (*Link) ProtoMessage Uses

func (*Link) ProtoMessage()

func (*Link) ProtoReflect Uses

func (x *Link) ProtoReflect() protoreflect.Message

func (*Link) Reset Uses

func (x *Link) Reset()

func (*Link) String Uses

func (x *Link) String() string

type LinkGroup Uses

type LinkGroup struct {

    // Name is the name of this list of links. This is optional.
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // Links is a list of links to display.
    Links []*Link `protobuf:"bytes,2,rep,name=links,proto3" json:"links,omitempty"`
    // contains filtered or unexported fields
}

LinkGroup is a list of links, optionally given a name.

func (*LinkGroup) Descriptor Uses

func (*LinkGroup) Descriptor() ([]byte, []int)

Deprecated: Use LinkGroup.ProtoReflect.Descriptor instead.

func (x *LinkGroup) GetLinks() []*Link

func (*LinkGroup) GetName Uses

func (x *LinkGroup) GetName() string

func (*LinkGroup) ProtoMessage Uses

func (*LinkGroup) ProtoMessage()

func (*LinkGroup) ProtoReflect Uses

func (x *LinkGroup) ProtoReflect() protoreflect.Message

func (*LinkGroup) Reset Uses

func (x *LinkGroup) Reset()

func (*LinkGroup) String Uses

func (x *LinkGroup) String() string

type Oncall Uses

type Oncall struct {

    // Name is the name of the oncall rotation being displayed.
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // Url is an URL to a json endpoint with the following format:
    // {
    //   "updated_unix_timestamp": <int>,
    //   "emails": [
    //     "email@somewhere.com",
    //     "email@nowhere.com
    //   ]
    // }
    Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
    // ShowPrimarySecondaryLabels specifies whether the oncaller names
    // should have "(primary)" and "(secondary)" appended to them if there
    // are more than one.
    ShowPrimarySecondaryLabels bool `protobuf:"varint,3,opt,name=show_primary_secondary_labels,json=showPrimarySecondaryLabels,proto3" json:"show_primary_secondary_labels,omitempty"`
    // contains filtered or unexported fields
}

Oncall contains information about who is currently scheduled as the oncall (Sheriff, trooper, etc) for certain rotations.

func (*Oncall) Descriptor Uses

func (*Oncall) Descriptor() ([]byte, []int)

Deprecated: Use Oncall.ProtoReflect.Descriptor instead.

func (*Oncall) GetName Uses

func (x *Oncall) GetName() string

func (*Oncall) GetShowPrimarySecondaryLabels Uses

func (x *Oncall) GetShowPrimarySecondaryLabels() bool

func (*Oncall) GetUrl Uses

func (x *Oncall) GetUrl() string

func (*Oncall) ProtoMessage Uses

func (*Oncall) ProtoMessage()

func (*Oncall) ProtoReflect Uses

func (x *Oncall) ProtoReflect() protoreflect.Message

func (*Oncall) Reset Uses

func (x *Oncall) Reset()

func (*Oncall) String Uses

func (x *Oncall) String() string

type Project Uses

type Project struct {

    // Consoles is a list of consoles to define under /console/
    Consoles []*Console `protobuf:"bytes,2,rep,name=consoles,proto3" json:"consoles,omitempty"`
    // Headers is a list of defined headers that may be referenced by a console.
    Headers []*Header `protobuf:"bytes,3,rep,name=headers,proto3" json:"headers,omitempty"`
    // LogoUrl is the URL to the logo for this project.
    // This field is optional. The logo URL must have a host of
    // storage.googleapis.com.
    LogoUrl string `protobuf:"bytes,4,opt,name=logo_url,json=logoUrl,proto3" json:"logo_url,omitempty"`
    // BuildBugTemplate is the template for making a custom bug link for
    // filing a bug against a build that displays on the build page. This
    // is a separate link from the general Milo feedback link that is
    // displayed in the lower right hand corner. This field is optional.
    // Supported interpolations for the "summary" and "description" fields
    // in this context are the fields of the standard build proto such as:
    //
    // {{.Build.Builder.Project}}
    // {{.Build.Builder.Bucket}}
    // {{.Build.Builder.Builder}}
    //
    // Others available fields include:
    //
    // {{.MiloBuildUrl}}
    // {{.MiloBuilderUrl}}
    //
    // If any specified placeholder cannot be satisfied then the link is
    // not displayed.
    BuildBugTemplate *BugTemplate `protobuf:"bytes,5,opt,name=build_bug_template,json=buildBugTemplate,proto3" json:"build_bug_template,omitempty"`
    // IgnoredBuilderIds is a list of builder IDs to be ignored by pubsub handler.
    // Build update events from the builders in this list will be ignored to
    // improve performance.
    // This means that updates to these builders will not be reflected in
    // consoles, the builders page, or the builder groups page.
    // Builders that post updates frequently (> 1/s) should be added to this list.
    // ID format: <bucket>/<builder>
    //
    // TODO(crbug.com/1099036): deprecate this once a long term solution is
    // implemented.
    IgnoredBuilderIds []string `protobuf:"bytes,7,rep,name=ignored_builder_ids,json=ignoredBuilderIds,proto3" json:"ignored_builder_ids,omitempty"`
    // contains filtered or unexported fields
}

Project is a project definition for Milo.

func (*Project) Descriptor Uses

func (*Project) Descriptor() ([]byte, []int)

Deprecated: Use Project.ProtoReflect.Descriptor instead.

func (*Project) GetBuildBugTemplate Uses

func (x *Project) GetBuildBugTemplate() *BugTemplate

func (*Project) GetConsoles Uses

func (x *Project) GetConsoles() []*Console

func (*Project) GetHeaders Uses

func (x *Project) GetHeaders() []*Header

func (*Project) GetIgnoredBuilderIds Uses

func (x *Project) GetIgnoredBuilderIds() []string

func (*Project) GetLogoUrl Uses

func (x *Project) GetLogoUrl() string

func (*Project) ProtoMessage Uses

func (*Project) ProtoMessage()

func (*Project) ProtoReflect Uses

func (x *Project) ProtoReflect() protoreflect.Message

func (*Project) Reset Uses

func (x *Project) Reset()

func (*Project) String Uses

func (x *Project) String() string

type Settings Uses

type Settings struct {
    Buildbot    *Settings_Buildbot    `protobuf:"bytes,1,opt,name=buildbot,proto3" json:"buildbot,omitempty"`
    Buildbucket *Settings_Buildbucket `protobuf:"bytes,2,opt,name=buildbucket,proto3" json:"buildbucket,omitempty"`
    Swarming    *Settings_Swarming    `protobuf:"bytes,3,opt,name=swarming,proto3" json:"swarming,omitempty"`
    // source_acls instructs Milo to provide Git/Gerrit data
    // (e.g., blamelist) to some of its users on entire subdomains or individual
    // repositories (Gerrit "projects").
    //
    // Multiple records are allowed, but each host and project must appear only in
    // one record.
    SourceAcls []*Settings_SourceAcls `protobuf:"bytes,4,rep,name=source_acls,json=sourceAcls,proto3" json:"source_acls,omitempty"`
    Resultdb   *Settings_ResultDB     `protobuf:"bytes,5,opt,name=resultdb,proto3" json:"resultdb,omitempty"`
    // contains filtered or unexported fields
}

Settings represents the format for the global (service) config for Milo.

func (*Settings) Descriptor Uses

func (*Settings) Descriptor() ([]byte, []int)

Deprecated: Use Settings.ProtoReflect.Descriptor instead.

func (*Settings) GetBuildbot Uses

func (x *Settings) GetBuildbot() *Settings_Buildbot

func (*Settings) GetBuildbucket Uses

func (x *Settings) GetBuildbucket() *Settings_Buildbucket

func (*Settings) GetResultdb Uses

func (x *Settings) GetResultdb() *Settings_ResultDB

func (*Settings) GetSourceAcls Uses

func (x *Settings) GetSourceAcls() []*Settings_SourceAcls

func (*Settings) GetSwarming Uses

func (x *Settings) GetSwarming() *Settings_Swarming

func (*Settings) ProtoMessage Uses

func (*Settings) ProtoMessage()

func (*Settings) ProtoReflect Uses

func (x *Settings) ProtoReflect() protoreflect.Message

func (*Settings) Reset Uses

func (x *Settings) Reset()

func (*Settings) String Uses

func (x *Settings) String() string

type Settings_Buildbot Uses

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,proto3" 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,proto3" 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,proto3" json:"internal_subscription,omitempty"`
    // contains filtered or unexported fields
}

func (*Settings_Buildbot) Descriptor Uses

func (*Settings_Buildbot) Descriptor() ([]byte, []int)

Deprecated: Use Settings_Buildbot.ProtoReflect.Descriptor instead.

func (*Settings_Buildbot) GetInternalReader Uses

func (x *Settings_Buildbot) GetInternalReader() string

func (*Settings_Buildbot) GetInternalSubscription Uses

func (x *Settings_Buildbot) GetInternalSubscription() string

func (*Settings_Buildbot) GetPublicSubscription Uses

func (x *Settings_Buildbot) GetPublicSubscription() string

func (*Settings_Buildbot) ProtoMessage Uses

func (*Settings_Buildbot) ProtoMessage()

func (*Settings_Buildbot) ProtoReflect Uses

func (x *Settings_Buildbot) ProtoReflect() protoreflect.Message

func (*Settings_Buildbot) Reset Uses

func (x *Settings_Buildbot) Reset()

func (*Settings_Buildbot) String Uses

func (x *Settings_Buildbot) String() string

type Settings_Buildbucket Uses

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,proto3" json:"name,omitempty"`
    // host is the hostname of the buildbucket instance we're pointing to (sans scheme).
    Host string `protobuf:"bytes,2,opt,name=host,proto3" 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,proto3" json:"project,omitempty"`
    // contains filtered or unexported fields
}

func (*Settings_Buildbucket) Descriptor Uses

func (*Settings_Buildbucket) Descriptor() ([]byte, []int)

Deprecated: Use Settings_Buildbucket.ProtoReflect.Descriptor instead.

func (*Settings_Buildbucket) GetHost Uses

func (x *Settings_Buildbucket) GetHost() string

func (*Settings_Buildbucket) GetName Uses

func (x *Settings_Buildbucket) GetName() string

func (*Settings_Buildbucket) GetProject Uses

func (x *Settings_Buildbucket) GetProject() string

func (*Settings_Buildbucket) ProtoMessage Uses

func (*Settings_Buildbucket) ProtoMessage()

func (*Settings_Buildbucket) ProtoReflect Uses

func (x *Settings_Buildbucket) ProtoReflect() protoreflect.Message

func (*Settings_Buildbucket) Reset Uses

func (x *Settings_Buildbucket) Reset()

func (*Settings_Buildbucket) String Uses

func (x *Settings_Buildbucket) String() string

type Settings_ResultDB Uses

type Settings_ResultDB struct {

    // host is the hostname of the ResultDB instance we're pointing to (sans scheme).
    Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
    // contains filtered or unexported fields
}

func (*Settings_ResultDB) Descriptor Uses

func (*Settings_ResultDB) Descriptor() ([]byte, []int)

Deprecated: Use Settings_ResultDB.ProtoReflect.Descriptor instead.

func (*Settings_ResultDB) GetHost Uses

func (x *Settings_ResultDB) GetHost() string

func (*Settings_ResultDB) ProtoMessage Uses

func (*Settings_ResultDB) ProtoMessage()

func (*Settings_ResultDB) ProtoReflect Uses

func (x *Settings_ResultDB) ProtoReflect() protoreflect.Message

func (*Settings_ResultDB) Reset Uses

func (x *Settings_ResultDB) Reset()

func (*Settings_ResultDB) String Uses

func (x *Settings_ResultDB) String() string

type Settings_SourceAcls Uses

type Settings_SourceAcls struct {

    // host grants read access on all project at this host.
    //
    // For more granularity, use the project field instead.
    //
    // For *.googlesource.com domains, host should not be a Gerrit host,
    // i.e.  it shouldn't be <subdomain>-review.googlesource.com.
    Hosts []string `protobuf:"bytes,1,rep,name=hosts,proto3" json:"hosts,omitempty"`
    // project is a URL to a Git repository.
    //
    // Read access is granted on both git data and Gerrit CLs of this project.
    //
    // For *.googlesource.com Git repositories:
    //   URL Path should not start with '/a/' (forced authentication).
    //   URL Path should not end with '.git' (redundant).
    Projects []string `protobuf:"bytes,2,rep,name=projects,proto3" json:"projects,omitempty"`
    // readers are allowed to read git/gerrit data from targets.
    //
    // Three types of identity strings are supported:
    //  * Emails.                   For example: "someuser@example.com"
    //  * Chrome-infra-auth Groups. For example: "group:committers"
    //  * Auth service identities.  For example: "kind:name"
    //
    // Required.
    Readers []string `protobuf:"bytes,3,rep,name=readers,proto3" json:"readers,omitempty"`
    // contains filtered or unexported fields
}

SourceAcls grants read access on a set of Git/Gerrit hosts or projects.

func (*Settings_SourceAcls) Descriptor Uses

func (*Settings_SourceAcls) Descriptor() ([]byte, []int)

Deprecated: Use Settings_SourceAcls.ProtoReflect.Descriptor instead.

func (*Settings_SourceAcls) GetHosts Uses

func (x *Settings_SourceAcls) GetHosts() []string

func (*Settings_SourceAcls) GetProjects Uses

func (x *Settings_SourceAcls) GetProjects() []string

func (*Settings_SourceAcls) GetReaders Uses

func (x *Settings_SourceAcls) GetReaders() []string

func (*Settings_SourceAcls) ProtoMessage Uses

func (*Settings_SourceAcls) ProtoMessage()

func (*Settings_SourceAcls) ProtoReflect Uses

func (x *Settings_SourceAcls) ProtoReflect() protoreflect.Message

func (*Settings_SourceAcls) Reset Uses

func (x *Settings_SourceAcls) Reset()

func (*Settings_SourceAcls) String Uses

func (x *Settings_SourceAcls) String() string

type Settings_Swarming Uses

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,proto3" json:"default_host,omitempty"`
    // allowed_hosts is a list 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,proto3" json:"allowed_hosts,omitempty"`
    // contains filtered or unexported fields
}

func (*Settings_Swarming) Descriptor Uses

func (*Settings_Swarming) Descriptor() ([]byte, []int)

Deprecated: Use Settings_Swarming.ProtoReflect.Descriptor instead.

func (*Settings_Swarming) GetAllowedHosts Uses

func (x *Settings_Swarming) GetAllowedHosts() []string

func (*Settings_Swarming) GetDefaultHost Uses

func (x *Settings_Swarming) GetDefaultHost() string

func (*Settings_Swarming) ProtoMessage Uses

func (*Settings_Swarming) ProtoMessage()

func (*Settings_Swarming) ProtoReflect Uses

func (x *Settings_Swarming) ProtoReflect() protoreflect.Message

func (*Settings_Swarming) Reset Uses

func (x *Settings_Swarming) Reset()

func (*Settings_Swarming) String Uses

func (x *Settings_Swarming) String() string

Package config imports 8 packages (graph) and is imported by 15 packages. Updated 2020-08-12. Refresh now. Tools for package owners.