configpb

package
v0.0.0-...-d3da680 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package configpb contains protos for service-wide configuration data for LUCI Bisection

Index

Constants

This section is empty.

Variables

View Source
var File_go_chromium_org_luci_tree_status_proto_config_config_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Config

type Config struct {

	// Represents mapping between tree name and its data.
	// Note: each tree name in use should have exactly 1 TreeNameConfig.
	// If a tree name have more than 1 TreeNameConfig, the validation of this
	// config will result in an error.
	// If a tree name does not have a corresponding TreeNameConfig, accessing the
	// tree will be denied.
	Trees []*Tree `protobuf:"bytes,1,rep,name=trees,proto3" json:"trees,omitempty"`
	// contains filtered or unexported fields
}

Config is the service-wide configuration data for TreeStatus.

func (*Config) Descriptor deprecated

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

Deprecated: Use Config.ProtoReflect.Descriptor instead.

func (*Config) GetTrees

func (x *Config) GetTrees() []*Tree

func (*Config) ProtoMessage

func (*Config) ProtoMessage()

func (*Config) ProtoReflect

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

func (*Config) Reset

func (x *Config) Reset()

func (*Config) String

func (x *Config) String() string

type Tree

type Tree struct {

	// LUCI Tree Status tree name, e.g. "chromium", "devtools", "fuchsia-stem"
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Names of the LUCI projects that the tree name applies to.
	// For example, "v8" tree can be applied to both "v8" and "v8-internal" projects.
	// This mapping will be used to display tree status in LUCI UI side bar.
	// The first project in this list is the primary project. This means:
	//  1. Its "<project>:<subrealm>" realm will be used to check
	//     for ACL for the tree, if the flag "use_default_acls" is unset.
	//  2. If the tree is access without a LUCI project context, the primary project
	//     will be displayed at the top left of LUCI UI.
	Projects []string `protobuf:"bytes,2,rep,name=projects,proto3" json:"projects,omitempty"`
	// Optional.
	// Determines the realm in the primary project (i.e. projects[0]) that
	// the tree is deemed to reside in for ACLing purposes.
	// If unset, defaults to `@project` (project-scoped) realm.
	// This is to support multiple trees per project.
	// Only applies if use_default_acls is not in use.
	Subrealm string `protobuf:"bytes,4,opt,name=subrealm,proto3" json:"subrealm,omitempty"`
	// If this flag is set, it will use the default ACLs:
	//   - Read permission without PII: Authenticated users.
	//   - Read permission with PII: Googlers.
	//   - Write permission: Googlers.
	//
	// If this flag is set, the ACLs will be checked against the "<primary_project>:<subrealm>" realm.
	// If this flag is unset, and the projects fields it empty, this will result in PERMISSION_DENIED
	// error when accessing the tree.
	// Please see the "projects" field for more information.
	UseDefaultAcls bool `protobuf:"varint,3,opt,name=use_default_acls,json=useDefaultAcls,proto3" json:"use_default_acls,omitempty"`
	// contains filtered or unexported fields
}

This represent a mapping between a tree name and its data. Next ID: 5.

func (*Tree) Descriptor deprecated

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

Deprecated: Use Tree.ProtoReflect.Descriptor instead.

func (*Tree) GetName

func (x *Tree) GetName() string

func (*Tree) GetProjects

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

func (*Tree) GetSubrealm

func (x *Tree) GetSubrealm() string

func (*Tree) GetUseDefaultAcls

func (x *Tree) GetUseDefaultAcls() bool

func (*Tree) ProtoMessage

func (*Tree) ProtoMessage()

func (*Tree) ProtoReflect

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

func (*Tree) Reset

func (x *Tree) Reset()

func (*Tree) String

func (x *Tree) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL