luci: go.chromium.org/luci/common/proto/config Index | Files

package config

import "go.chromium.org/luci/common/proto/config"

Package config contains luci-config protobuf definitions.

Copied from:

Repo: https://chromium.googlesource.com/infra/luci/luci-py/ Revision: 02d3bf84b066902b5ee6a83c4bf260c91298d1b9 Path: appengine/components/components/config/proto/*.proto

Modification: none.

Index

Package Files

generate.go project_config.pb.go service_config.pb.go

Variables

var ConfigSetLocation_StorageType_name = map[int32]string{
    0:  "UNSET",
    1:  "GITILES",
}
var ConfigSetLocation_StorageType_value = map[string]int32{
    "UNSET":   0,
    "GITILES": 1,
}
var ValidationResponseMessage_Severity_name = map[int32]string{
    0:  "UNKNOWN",
    10: "DEBUG",
    20: "INFO",
    30: "WARNING",
    40: "ERROR",
    50: "CRITICAL",
}
var ValidationResponseMessage_Severity_value = map[string]int32{
    "UNKNOWN":  0,
    "DEBUG":    10,
    "INFO":     20,
    "WARNING":  30,
    "ERROR":    40,
    "CRITICAL": 50,
}

type AclCfg Uses

type AclCfg struct {
    // Name of the group that has access to all projects/* config sets.
    // Only trusted services should be in this group.
    ProjectAccessGroup string `protobuf:"bytes,2,opt,name=project_access_group,json=projectAccessGroup,proto3" json:"project_access_group,omitempty"`
    // Name of the group that has access to all services/* config sets.
    // Only trusted services should be in this group.
    ServiceAccessGroup string `protobuf:"bytes,7,opt,name=service_access_group,json=serviceAccessGroup,proto3" json:"service_access_group,omitempty"`
    // Name of the group that has admin access to the app.
    AdminGroup string `protobuf:"bytes,3,opt,name=admin_group,json=adminGroup,proto3" json:"admin_group,omitempty"`
    // Name of the group that can access configs by hash.
    ConfigGetByHashGroup string `protobuf:"bytes,4,opt,name=config_get_by_hash_group,json=configGetByHashGroup,proto3" json:"config_get_by_hash_group,omitempty"`
    // Name of the group that may call validation API.
    ValidationGroup string `protobuf:"bytes,5,opt,name=validation_group,json=validationGroup,proto3" json:"validation_group,omitempty"`
    // Name of the group that may call reimport API.
    ReimportGroup        string   `protobuf:"bytes,6,opt,name=reimport_group,json=reimportGroup,proto3" json:"reimport_group,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

Schema of acl.cfg file. Next tag: 8.

func (*AclCfg) Descriptor Uses

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

func (*AclCfg) GetAdminGroup Uses

func (m *AclCfg) GetAdminGroup() string

func (*AclCfg) GetConfigGetByHashGroup Uses

func (m *AclCfg) GetConfigGetByHashGroup() string

func (*AclCfg) GetProjectAccessGroup Uses

func (m *AclCfg) GetProjectAccessGroup() string

func (*AclCfg) GetReimportGroup Uses

func (m *AclCfg) GetReimportGroup() string

func (*AclCfg) GetServiceAccessGroup Uses

func (m *AclCfg) GetServiceAccessGroup() string

func (*AclCfg) GetValidationGroup Uses

func (m *AclCfg) GetValidationGroup() string

func (*AclCfg) ProtoMessage Uses

func (*AclCfg) ProtoMessage()

func (*AclCfg) Reset Uses

func (m *AclCfg) Reset()

func (*AclCfg) String Uses

func (m *AclCfg) String() string

func (*AclCfg) XXX_DiscardUnknown Uses

func (m *AclCfg) XXX_DiscardUnknown()

func (*AclCfg) XXX_Marshal Uses

func (m *AclCfg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AclCfg) XXX_Merge Uses

func (m *AclCfg) XXX_Merge(src proto.Message)

func (*AclCfg) XXX_Size Uses

func (m *AclCfg) XXX_Size() int

func (*AclCfg) XXX_Unmarshal Uses

func (m *AclCfg) XXX_Unmarshal(b []byte) error

type ConfigPattern Uses

type ConfigPattern struct {
    // A string pattern for config_set.
    ConfigSet string `protobuf:"bytes,1,opt,name=config_set,json=configSet,proto3" json:"config_set,omitempty"`
    // A string pattern for config file path.
    Path                 string   `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

Defines a pattern of a config identity. Both config_set and path must match.

func (*ConfigPattern) Descriptor Uses

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

func (*ConfigPattern) GetConfigSet Uses

func (m *ConfigPattern) GetConfigSet() string

func (*ConfigPattern) GetPath Uses

func (m *ConfigPattern) GetPath() string

func (*ConfigPattern) ProtoMessage Uses

func (*ConfigPattern) ProtoMessage()

func (*ConfigPattern) Reset Uses

func (m *ConfigPattern) Reset()

func (*ConfigPattern) String Uses

func (m *ConfigPattern) String() string

func (*ConfigPattern) XXX_DiscardUnknown Uses

func (m *ConfigPattern) XXX_DiscardUnknown()

func (*ConfigPattern) XXX_Marshal Uses

func (m *ConfigPattern) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ConfigPattern) XXX_Merge Uses

func (m *ConfigPattern) XXX_Merge(src proto.Message)

func (*ConfigPattern) XXX_Size Uses

func (m *ConfigPattern) XXX_Size() int

func (*ConfigPattern) XXX_Unmarshal Uses

func (m *ConfigPattern) XXX_Unmarshal(b []byte) error

type ConfigSetLocation Uses

type ConfigSetLocation struct {
    // URL of the repository where project-wide configurations are stored.
    Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
    // Type of the configuration repository, e.g. GITILES.
    StorageType          ConfigSetLocation_StorageType `protobuf:"varint,2,opt,name=storage_type,json=storageType,proto3,enum=config.ConfigSetLocation_StorageType" json:"storage_type,omitempty"`
    XXX_NoUnkeyedLiteral struct{}                      `json:"-"`
    XXX_unrecognized     []byte                        `json:"-"`
    XXX_sizecache        int32                         `json:"-"`
}

Used to specify project/service configuration location.

func (*ConfigSetLocation) Descriptor Uses

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

func (*ConfigSetLocation) GetStorageType Uses

func (m *ConfigSetLocation) GetStorageType() ConfigSetLocation_StorageType

func (*ConfigSetLocation) GetUrl Uses

func (m *ConfigSetLocation) GetUrl() string

func (*ConfigSetLocation) ProtoMessage Uses

func (*ConfigSetLocation) ProtoMessage()

func (*ConfigSetLocation) Reset Uses

func (m *ConfigSetLocation) Reset()

func (*ConfigSetLocation) String Uses

func (m *ConfigSetLocation) String() string

func (*ConfigSetLocation) XXX_DiscardUnknown Uses

func (m *ConfigSetLocation) XXX_DiscardUnknown()

func (*ConfigSetLocation) XXX_Marshal Uses

func (m *ConfigSetLocation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ConfigSetLocation) XXX_Merge Uses

func (m *ConfigSetLocation) XXX_Merge(src proto.Message)

func (*ConfigSetLocation) XXX_Size Uses

func (m *ConfigSetLocation) XXX_Size() int

func (*ConfigSetLocation) XXX_Unmarshal Uses

func (m *ConfigSetLocation) XXX_Unmarshal(b []byte) error

type ConfigSetLocation_StorageType Uses

type ConfigSetLocation_StorageType int32

Depending on repository type, config service imports configuration files differently.

const (
    // Will be used if storage_type is not set.
    ConfigSetLocation_UNSET ConfigSetLocation_StorageType = 0
    // Gitiles REST API is used to fetch config files.
    ConfigSetLocation_GITILES ConfigSetLocation_StorageType = 1
)

func (ConfigSetLocation_StorageType) EnumDescriptor Uses

func (ConfigSetLocation_StorageType) EnumDescriptor() ([]byte, []int)

func (ConfigSetLocation_StorageType) String Uses

func (x ConfigSetLocation_StorageType) String() string

type IdentityConfig Uses

type IdentityConfig struct {
    // ServiceAccountEmail is the full service account email to use when
    // LUCI acts on behalf of the project.
    ServiceAccountEmail  string   `protobuf:"bytes,1,opt,name=service_account_email,json=serviceAccountEmail,proto3" json:"service_account_email,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

Used to define project specific identities for LUCI to act on behalf when interacting with external systems. This allows projects to use exclusive and isolated identities to not be accidentally affected by other projects.

func (*IdentityConfig) Descriptor Uses

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

func (*IdentityConfig) GetServiceAccountEmail Uses

func (m *IdentityConfig) GetServiceAccountEmail() string

func (*IdentityConfig) ProtoMessage Uses

func (*IdentityConfig) ProtoMessage()

func (*IdentityConfig) Reset Uses

func (m *IdentityConfig) Reset()

func (*IdentityConfig) String Uses

func (m *IdentityConfig) String() string

func (*IdentityConfig) XXX_DiscardUnknown Uses

func (m *IdentityConfig) XXX_DiscardUnknown()

func (*IdentityConfig) XXX_Marshal Uses

func (m *IdentityConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*IdentityConfig) XXX_Merge Uses

func (m *IdentityConfig) XXX_Merge(src proto.Message)

func (*IdentityConfig) XXX_Size Uses

func (m *IdentityConfig) XXX_Size() int

func (*IdentityConfig) XXX_Unmarshal Uses

func (m *IdentityConfig) XXX_Unmarshal(b []byte) error

type ImportCfg Uses

type ImportCfg struct {
    // Configuration of import from Gitiles repositories.
    Gitiles              *ImportCfg_Gitiles `protobuf:"bytes,1,opt,name=gitiles,proto3" json:"gitiles,omitempty"`
    XXX_NoUnkeyedLiteral struct{}           `json:"-"`
    XXX_unrecognized     []byte             `json:"-"`
    XXX_sizecache        int32              `json:"-"`
}

Schema for import.cfg. It specified how to import configuration files from external sources.

func (*ImportCfg) Descriptor Uses

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

func (*ImportCfg) GetGitiles Uses

func (m *ImportCfg) GetGitiles() *ImportCfg_Gitiles

func (*ImportCfg) ProtoMessage Uses

func (*ImportCfg) ProtoMessage()

func (*ImportCfg) Reset Uses

func (m *ImportCfg) Reset()

func (*ImportCfg) String Uses

func (m *ImportCfg) String() string

func (*ImportCfg) XXX_DiscardUnknown Uses

func (m *ImportCfg) XXX_DiscardUnknown()

func (*ImportCfg) XXX_Marshal Uses

func (m *ImportCfg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ImportCfg) XXX_Merge Uses

func (m *ImportCfg) XXX_Merge(src proto.Message)

func (*ImportCfg) XXX_Size Uses

func (m *ImportCfg) XXX_Size() int

func (*ImportCfg) XXX_Unmarshal Uses

func (m *ImportCfg) XXX_Unmarshal(b []byte) error

type ImportCfg_Gitiles Uses

type ImportCfg_Gitiles struct {
    // Request timeout in seconds when requesting commit log.
    FetchLogDeadline int32 `protobuf:"varint,1,opt,name=fetch_log_deadline,json=fetchLogDeadline,proto3" json:"fetch_log_deadline,omitempty"`
    // Request timeout in seconds when requesting directory archive.
    FetchArchiveDeadline int32 `protobuf:"varint,2,opt,name=fetch_archive_deadline,json=fetchArchiveDeadline,proto3" json:"fetch_archive_deadline,omitempty"`
    // DEPRECATED, ignored. TODO(nodir): remove.
    // Default ref for project configs.
    ProjectConfigDefaultRef string `protobuf:"bytes,3,opt,name=project_config_default_ref,json=projectConfigDefaultRef,proto3" json:"project_config_default_ref,omitempty"`
    // DEPRECATED, ignored. TODO(nodir): remove.
    // Default directory for project configs.
    ProjectConfigDefaultPath string `protobuf:"bytes,4,opt,name=project_config_default_path,json=projectConfigDefaultPath,proto3" json:"project_config_default_path,omitempty"`
    // Default directory for ref configs.
    RefConfigDefaultPath string   `protobuf:"bytes,5,opt,name=ref_config_default_path,json=refConfigDefaultPath,proto3" json:"ref_config_default_path,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*ImportCfg_Gitiles) Descriptor Uses

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

func (*ImportCfg_Gitiles) GetFetchArchiveDeadline Uses

func (m *ImportCfg_Gitiles) GetFetchArchiveDeadline() int32

func (*ImportCfg_Gitiles) GetFetchLogDeadline Uses

func (m *ImportCfg_Gitiles) GetFetchLogDeadline() int32

func (*ImportCfg_Gitiles) GetProjectConfigDefaultPath Uses

func (m *ImportCfg_Gitiles) GetProjectConfigDefaultPath() string

func (*ImportCfg_Gitiles) GetProjectConfigDefaultRef Uses

func (m *ImportCfg_Gitiles) GetProjectConfigDefaultRef() string

func (*ImportCfg_Gitiles) GetRefConfigDefaultPath Uses

func (m *ImportCfg_Gitiles) GetRefConfigDefaultPath() string

func (*ImportCfg_Gitiles) ProtoMessage Uses

func (*ImportCfg_Gitiles) ProtoMessage()

func (*ImportCfg_Gitiles) Reset Uses

func (m *ImportCfg_Gitiles) Reset()

func (*ImportCfg_Gitiles) String Uses

func (m *ImportCfg_Gitiles) String() string

func (*ImportCfg_Gitiles) XXX_DiscardUnknown Uses

func (m *ImportCfg_Gitiles) XXX_DiscardUnknown()

func (*ImportCfg_Gitiles) XXX_Marshal Uses

func (m *ImportCfg_Gitiles) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ImportCfg_Gitiles) XXX_Merge Uses

func (m *ImportCfg_Gitiles) XXX_Merge(src proto.Message)

func (*ImportCfg_Gitiles) XXX_Size Uses

func (m *ImportCfg_Gitiles) XXX_Size() int

func (*ImportCfg_Gitiles) XXX_Unmarshal Uses

func (m *ImportCfg_Gitiles) XXX_Unmarshal(b []byte) error

type Project Uses

type Project struct {
    // Globally unique id of the project.
    Id  string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
    // Where to import "projects/<id>" config set from.
    ConfigLocation *ConfigSetLocation `protobuf:"bytes,2,opt,name=config_location,json=configLocation,proto3" json:"config_location,omitempty"`
    // IdentityConfig determines what identities are used when LUCI acts on
    // behalf of the project towards external services.
    IdentityConfig       *IdentityConfig `protobuf:"bytes,3,opt,name=identity_config,json=identityConfig,proto3" json:"identity_config,omitempty"`
    XXX_NoUnkeyedLiteral struct{}        `json:"-"`
    XXX_unrecognized     []byte          `json:"-"`
    XXX_sizecache        int32           `json:"-"`
}

A tenant of a service. Defined in projects.cfg.

func (*Project) Descriptor Uses

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

func (*Project) GetConfigLocation Uses

func (m *Project) GetConfigLocation() *ConfigSetLocation

func (*Project) GetId Uses

func (m *Project) GetId() string

func (*Project) GetIdentityConfig Uses

func (m *Project) GetIdentityConfig() *IdentityConfig

func (*Project) ProtoMessage Uses

func (*Project) ProtoMessage()

func (*Project) Reset Uses

func (m *Project) Reset()

func (*Project) String Uses

func (m *Project) String() string

func (*Project) XXX_DiscardUnknown Uses

func (m *Project) XXX_DiscardUnknown()

func (*Project) XXX_Marshal Uses

func (m *Project) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Project) XXX_Merge Uses

func (m *Project) XXX_Merge(src proto.Message)

func (*Project) XXX_Size Uses

func (m *Project) XXX_Size() int

func (*Project) XXX_Unmarshal Uses

func (m *Project) XXX_Unmarshal(b []byte) error

type ProjectCfg Uses

type ProjectCfg struct {
    // Full name of the project.
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // A list of identities that have read-only access to the project.
    //
    // An element is one of:
    // * "group:<group>", where group is defined on auth server.
    // * "<email>"
    // * "<kind>:<value>" (for non-email identities)
    //
    // If not specified, only admins and trusted services have access.
    // Talk to admins to determine the group name appropriate for your project.
    Access               []string `protobuf:"bytes,2,rep,name=access,proto3" json:"access,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

Schema for project.cfg

func (*ProjectCfg) Descriptor Uses

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

func (*ProjectCfg) GetAccess Uses

func (m *ProjectCfg) GetAccess() []string

func (*ProjectCfg) GetName Uses

func (m *ProjectCfg) GetName() string

func (*ProjectCfg) ProtoMessage Uses

func (*ProjectCfg) ProtoMessage()

func (*ProjectCfg) Reset Uses

func (m *ProjectCfg) Reset()

func (*ProjectCfg) String Uses

func (m *ProjectCfg) String() string

func (*ProjectCfg) XXX_DiscardUnknown Uses

func (m *ProjectCfg) XXX_DiscardUnknown()

func (*ProjectCfg) XXX_Marshal Uses

func (m *ProjectCfg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ProjectCfg) XXX_Merge Uses

func (m *ProjectCfg) XXX_Merge(src proto.Message)

func (*ProjectCfg) XXX_Size Uses

func (m *ProjectCfg) XXX_Size() int

func (*ProjectCfg) XXX_Unmarshal Uses

func (m *ProjectCfg) XXX_Unmarshal(b []byte) error

type ProjectsCfg Uses

type ProjectsCfg struct {
    // All projects served by this instance of Luci.
    Projects             []*Project `protobuf:"bytes,1,rep,name=projects,proto3" json:"projects,omitempty"`
    XXX_NoUnkeyedLiteral struct{}   `json:"-"`
    XXX_unrecognized     []byte     `json:"-"`
    XXX_sizecache        int32      `json:"-"`
}

Schema of projects.cfg file. Represents luci tenants registry.

func (*ProjectsCfg) Descriptor Uses

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

func (*ProjectsCfg) GetProjects Uses

func (m *ProjectsCfg) GetProjects() []*Project

func (*ProjectsCfg) ProtoMessage Uses

func (*ProjectsCfg) ProtoMessage()

func (*ProjectsCfg) Reset Uses

func (m *ProjectsCfg) Reset()

func (*ProjectsCfg) String Uses

func (m *ProjectsCfg) String() string

func (*ProjectsCfg) XXX_DiscardUnknown Uses

func (m *ProjectsCfg) XXX_DiscardUnknown()

func (*ProjectsCfg) XXX_Marshal Uses

func (m *ProjectsCfg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ProjectsCfg) XXX_Merge Uses

func (m *ProjectsCfg) XXX_Merge(src proto.Message)

func (*ProjectsCfg) XXX_Size Uses

func (m *ProjectsCfg) XXX_Size() int

func (*ProjectsCfg) XXX_Unmarshal Uses

func (m *ProjectsCfg) XXX_Unmarshal(b []byte) error

type RefsCfg Uses

type RefsCfg struct {
    // List of refs that have configuration files and need to be fetched into
    // luci-config. Refs are accessible through get_refs() API endpoint.
    // A CI service can read all refs of all projects and build them.
    Refs                 []*RefsCfg_Ref `protobuf:"bytes,1,rep,name=refs,proto3" json:"refs,omitempty"`
    XXX_NoUnkeyedLiteral struct{}       `json:"-"`
    XXX_unrecognized     []byte         `json:"-"`
    XXX_sizecache        int32          `json:"-"`
}

Schema of refs.cfg.

func (*RefsCfg) Descriptor Uses

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

func (*RefsCfg) GetRefs Uses

func (m *RefsCfg) GetRefs() []*RefsCfg_Ref

func (*RefsCfg) ProtoMessage Uses

func (*RefsCfg) ProtoMessage()

func (*RefsCfg) Reset Uses

func (m *RefsCfg) Reset()

func (*RefsCfg) String Uses

func (m *RefsCfg) String() string

func (*RefsCfg) XXX_DiscardUnknown Uses

func (m *RefsCfg) XXX_DiscardUnknown()

func (*RefsCfg) XXX_Marshal Uses

func (m *RefsCfg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RefsCfg) XXX_Merge Uses

func (m *RefsCfg) XXX_Merge(src proto.Message)

func (*RefsCfg) XXX_Size Uses

func (m *RefsCfg) XXX_Size() int

func (*RefsCfg) XXX_Unmarshal Uses

func (m *RefsCfg) XXX_Unmarshal(b []byte) error

type RefsCfg_Ref Uses

type RefsCfg_Ref struct {
    // Name of the ref. Must start with "refs/".
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // Path to config directory for the ref. Defaults to "infra/config".
    ConfigPath           string   `protobuf:"bytes,3,opt,name=config_path,json=configPath,proto3" json:"config_path,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*RefsCfg_Ref) Descriptor Uses

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

func (*RefsCfg_Ref) GetConfigPath Uses

func (m *RefsCfg_Ref) GetConfigPath() string

func (*RefsCfg_Ref) GetName Uses

func (m *RefsCfg_Ref) GetName() string

func (*RefsCfg_Ref) ProtoMessage Uses

func (*RefsCfg_Ref) ProtoMessage()

func (*RefsCfg_Ref) Reset Uses

func (m *RefsCfg_Ref) Reset()

func (*RefsCfg_Ref) String Uses

func (m *RefsCfg_Ref) String() string

func (*RefsCfg_Ref) XXX_DiscardUnknown Uses

func (m *RefsCfg_Ref) XXX_DiscardUnknown()

func (*RefsCfg_Ref) XXX_Marshal Uses

func (m *RefsCfg_Ref) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RefsCfg_Ref) XXX_Merge Uses

func (m *RefsCfg_Ref) XXX_Merge(src proto.Message)

func (*RefsCfg_Ref) XXX_Size Uses

func (m *RefsCfg_Ref) XXX_Size() int

func (*RefsCfg_Ref) XXX_Unmarshal Uses

func (m *RefsCfg_Ref) XXX_Unmarshal(b []byte) error

type SchemasCfg Uses

type SchemasCfg struct {
    // List of known schemas. They are available at /schemas/<name> as a short
    // mutable link.
    Schemas              []*SchemasCfg_Schema `protobuf:"bytes,1,rep,name=schemas,proto3" json:"schemas,omitempty"`
    XXX_NoUnkeyedLiteral struct{}             `json:"-"`
    XXX_unrecognized     []byte               `json:"-"`
    XXX_sizecache        int32                `json:"-"`
}

Schema of schemas.cfg

func (*SchemasCfg) Descriptor Uses

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

func (*SchemasCfg) GetSchemas Uses

func (m *SchemasCfg) GetSchemas() []*SchemasCfg_Schema

func (*SchemasCfg) ProtoMessage Uses

func (*SchemasCfg) ProtoMessage()

func (*SchemasCfg) Reset Uses

func (m *SchemasCfg) Reset()

func (*SchemasCfg) String Uses

func (m *SchemasCfg) String() string

func (*SchemasCfg) XXX_DiscardUnknown Uses

func (m *SchemasCfg) XXX_DiscardUnknown()

func (*SchemasCfg) XXX_Marshal Uses

func (m *SchemasCfg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SchemasCfg) XXX_Merge Uses

func (m *SchemasCfg) XXX_Merge(src proto.Message)

func (*SchemasCfg) XXX_Size Uses

func (m *SchemasCfg) XXX_Size() int

func (*SchemasCfg) XXX_Unmarshal Uses

func (m *SchemasCfg) XXX_Unmarshal(b []byte) error

type SchemasCfg_Schema Uses

type SchemasCfg_Schema struct {
    // Name of schema.
    // For service configs, "<config_set>:<path>"
    // For project configs, "projects:<path>"
    // For ref configs, "projects/refs:<path>"
    Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    // URL to the schema definition, e.g. to a .proto file in a repository.
    Url                  string   `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*SchemasCfg_Schema) Descriptor Uses

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

func (*SchemasCfg_Schema) GetName Uses

func (m *SchemasCfg_Schema) GetName() string

func (*SchemasCfg_Schema) GetUrl Uses

func (m *SchemasCfg_Schema) GetUrl() string

func (*SchemasCfg_Schema) ProtoMessage Uses

func (*SchemasCfg_Schema) ProtoMessage()

func (*SchemasCfg_Schema) Reset Uses

func (m *SchemasCfg_Schema) Reset()

func (*SchemasCfg_Schema) String Uses

func (m *SchemasCfg_Schema) String() string

func (*SchemasCfg_Schema) XXX_DiscardUnknown Uses

func (m *SchemasCfg_Schema) XXX_DiscardUnknown()

func (*SchemasCfg_Schema) XXX_Marshal Uses

func (m *SchemasCfg_Schema) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SchemasCfg_Schema) XXX_Merge Uses

func (m *SchemasCfg_Schema) XXX_Merge(src proto.Message)

func (*SchemasCfg_Schema) XXX_Size Uses

func (m *SchemasCfg_Schema) XXX_Size() int

func (*SchemasCfg_Schema) XXX_Unmarshal Uses

func (m *SchemasCfg_Schema) XXX_Unmarshal(b []byte) error

type Service Uses

type Service struct {
    // Globally unique id of the service. Required.
    // Used in "services/<service_id>" config set name.
    Id  string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
    // Email addresses of responsible and point-of-contacts for the service.
    Owners []string `protobuf:"bytes,2,rep,name=owners,proto3" json:"owners,omitempty"`
    // Where to import "services/<id>" config set from. If config_location.url is
    // relative, it is relative to the current configuration file.
    // If not specified, defaults to "../<id>/".
    // Not yet implemented.
    ConfigLocation *ConfigSetLocation `protobuf:"bytes,3,opt,name=config_location,json=configLocation,proto3" json:"config_location,omitempty"`
    // An HTTPS endpoint that returns JSON-encoded ServiceDynamicMetadata in body.
    MetadataUrl string `protobuf:"bytes,4,opt,name=metadata_url,json=metadataUrl,proto3" json:"metadata_url,omitempty"`
    // A list of identities that have access to this service's configs.
    // of:
    // * "group:<group>", where group is defined on auth server.
    // * "<email>"
    // * "<kind>:<value>" (for non-email identities)
    //
    // If not specified, only admins and trusted services have access.
    Access               []string `protobuf:"bytes,5,rep,name=access,proto3" json:"access,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

Describes one luci service.

func (*Service) Descriptor Uses

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

func (*Service) GetAccess Uses

func (m *Service) GetAccess() []string

func (*Service) GetConfigLocation Uses

func (m *Service) GetConfigLocation() *ConfigSetLocation

func (*Service) GetId Uses

func (m *Service) GetId() string

func (*Service) GetMetadataUrl Uses

func (m *Service) GetMetadataUrl() string

func (*Service) GetOwners Uses

func (m *Service) GetOwners() []string

func (*Service) ProtoMessage Uses

func (*Service) ProtoMessage()

func (*Service) Reset Uses

func (m *Service) Reset()

func (*Service) String Uses

func (m *Service) String() string

func (*Service) XXX_DiscardUnknown Uses

func (m *Service) XXX_DiscardUnknown()

func (*Service) XXX_Marshal Uses

func (m *Service) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Service) XXX_Merge Uses

func (m *Service) XXX_Merge(src proto.Message)

func (*Service) XXX_Size Uses

func (m *Service) XXX_Size() int

func (*Service) XXX_Unmarshal Uses

func (m *Service) XXX_Unmarshal(b []byte) error

type ServiceDynamicMetadata Uses

type ServiceDynamicMetadata struct {
    // Format version. Supported versions: 1.0.
    Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
    // What configs this service can validate and how to validate them.
    Validation           *Validator `protobuf:"bytes,2,opt,name=validation,proto3" json:"validation,omitempty"`
    XXX_NoUnkeyedLiteral struct{}   `json:"-"`
    XXX_unrecognized     []byte     `json:"-"`
    XXX_sizecache        int32      `json:"-"`
}

Machine-generated service metadata, exposed by a service endpoint. Typically implemented by config component, embedded in an app: see appengine/components/components/config/endpoint.py

If you add a field here, also add it to ServiceDynamicMetadata in endpoint.py

func (*ServiceDynamicMetadata) Descriptor Uses

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

func (*ServiceDynamicMetadata) GetValidation Uses

func (m *ServiceDynamicMetadata) GetValidation() *Validator

func (*ServiceDynamicMetadata) GetVersion Uses

func (m *ServiceDynamicMetadata) GetVersion() string

func (*ServiceDynamicMetadata) ProtoMessage Uses

func (*ServiceDynamicMetadata) ProtoMessage()

func (*ServiceDynamicMetadata) Reset Uses

func (m *ServiceDynamicMetadata) Reset()

func (*ServiceDynamicMetadata) String Uses

func (m *ServiceDynamicMetadata) String() string

func (*ServiceDynamicMetadata) XXX_DiscardUnknown Uses

func (m *ServiceDynamicMetadata) XXX_DiscardUnknown()

func (*ServiceDynamicMetadata) XXX_Marshal Uses

func (m *ServiceDynamicMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ServiceDynamicMetadata) XXX_Merge Uses

func (m *ServiceDynamicMetadata) XXX_Merge(src proto.Message)

func (*ServiceDynamicMetadata) XXX_Size Uses

func (m *ServiceDynamicMetadata) XXX_Size() int

func (*ServiceDynamicMetadata) XXX_Unmarshal Uses

func (m *ServiceDynamicMetadata) XXX_Unmarshal(b []byte) error

type ServicesCfg Uses

type ServicesCfg struct {
    // A list of all luci services. Should be sorted by id.
    Services             []*Service `protobuf:"bytes,1,rep,name=services,proto3" json:"services,omitempty"`
    XXX_NoUnkeyedLiteral struct{}   `json:"-"`
    XXX_unrecognized     []byte     `json:"-"`
    XXX_sizecache        int32      `json:"-"`
}

Schema of services.cfg

func (*ServicesCfg) Descriptor Uses

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

func (*ServicesCfg) GetServices Uses

func (m *ServicesCfg) GetServices() []*Service

func (*ServicesCfg) ProtoMessage Uses

func (*ServicesCfg) ProtoMessage()

func (*ServicesCfg) Reset Uses

func (m *ServicesCfg) Reset()

func (*ServicesCfg) String Uses

func (m *ServicesCfg) String() string

func (*ServicesCfg) XXX_DiscardUnknown Uses

func (m *ServicesCfg) XXX_DiscardUnknown()

func (*ServicesCfg) XXX_Marshal Uses

func (m *ServicesCfg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ServicesCfg) XXX_Merge Uses

func (m *ServicesCfg) XXX_Merge(src proto.Message)

func (*ServicesCfg) XXX_Size Uses

func (m *ServicesCfg) XXX_Size() int

func (*ServicesCfg) XXX_Unmarshal Uses

func (m *ServicesCfg) XXX_Unmarshal(b []byte) error

type ValidationRequestMessage Uses

type ValidationRequestMessage struct {
    // Config set of the config file to validate.
    ConfigSet string `protobuf:"bytes,1,opt,name=config_set,json=configSet,proto3" json:"config_set,omitempty"`
    // Path of the config file to validate.
    Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
    // Contents of the file.
    Content              []byte   `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

This message is used only in JSON form. It is sent as request body to an external validation endpoint in order to validate a config.

func (*ValidationRequestMessage) Descriptor Uses

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

func (*ValidationRequestMessage) GetConfigSet Uses

func (m *ValidationRequestMessage) GetConfigSet() string

func (*ValidationRequestMessage) GetContent Uses

func (m *ValidationRequestMessage) GetContent() []byte

func (*ValidationRequestMessage) GetPath Uses

func (m *ValidationRequestMessage) GetPath() string

func (*ValidationRequestMessage) ProtoMessage Uses

func (*ValidationRequestMessage) ProtoMessage()

func (*ValidationRequestMessage) Reset Uses

func (m *ValidationRequestMessage) Reset()

func (*ValidationRequestMessage) String Uses

func (m *ValidationRequestMessage) String() string

func (*ValidationRequestMessage) XXX_DiscardUnknown Uses

func (m *ValidationRequestMessage) XXX_DiscardUnknown()

func (*ValidationRequestMessage) XXX_Marshal Uses

func (m *ValidationRequestMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ValidationRequestMessage) XXX_Merge Uses

func (m *ValidationRequestMessage) XXX_Merge(src proto.Message)

func (*ValidationRequestMessage) XXX_Size Uses

func (m *ValidationRequestMessage) XXX_Size() int

func (*ValidationRequestMessage) XXX_Unmarshal Uses

func (m *ValidationRequestMessage) XXX_Unmarshal(b []byte) error

type ValidationResponseMessage Uses

type ValidationResponseMessage struct {
    // Errors, warnings and other information found during validation.
    // If at least one error is found, the config is considered invalid.
    Messages             []*ValidationResponseMessage_Message `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"`
    XXX_NoUnkeyedLiteral struct{}                             `json:"-"`
    XXX_unrecognized     []byte                               `json:"-"`
    XXX_sizecache        int32                                `json:"-"`
}

This message is used only in JSON form. It is expected from an external validation endpoint that validates a config.

func (*ValidationResponseMessage) Descriptor Uses

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

func (*ValidationResponseMessage) GetMessages Uses

func (m *ValidationResponseMessage) GetMessages() []*ValidationResponseMessage_Message

func (*ValidationResponseMessage) ProtoMessage Uses

func (*ValidationResponseMessage) ProtoMessage()

func (*ValidationResponseMessage) Reset Uses

func (m *ValidationResponseMessage) Reset()

func (*ValidationResponseMessage) String Uses

func (m *ValidationResponseMessage) String() string

func (*ValidationResponseMessage) XXX_DiscardUnknown Uses

func (m *ValidationResponseMessage) XXX_DiscardUnknown()

func (*ValidationResponseMessage) XXX_Marshal Uses

func (m *ValidationResponseMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ValidationResponseMessage) XXX_Merge Uses

func (m *ValidationResponseMessage) XXX_Merge(src proto.Message)

func (*ValidationResponseMessage) XXX_Size Uses

func (m *ValidationResponseMessage) XXX_Size() int

func (*ValidationResponseMessage) XXX_Unmarshal Uses

func (m *ValidationResponseMessage) XXX_Unmarshal(b []byte) error

type ValidationResponseMessage_Message Uses

type ValidationResponseMessage_Message struct {
    // Path of the config file that has an error.
    Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
    // If an error, a config is considered invalid. Defaults to INFO.
    Severity ValidationResponseMessage_Severity `protobuf:"varint,2,opt,name=severity,proto3,enum=config.ValidationResponseMessage_Severity" json:"severity,omitempty"`
    // Textual representation of the message.
    Text                 string   `protobuf:"bytes,3,opt,name=text,proto3" json:"text,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

A message that explains why a config is valid or not.

func (*ValidationResponseMessage_Message) Descriptor Uses

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

func (*ValidationResponseMessage_Message) GetPath Uses

func (m *ValidationResponseMessage_Message) GetPath() string

func (*ValidationResponseMessage_Message) GetSeverity Uses

func (m *ValidationResponseMessage_Message) GetSeverity() ValidationResponseMessage_Severity

func (*ValidationResponseMessage_Message) GetText Uses

func (m *ValidationResponseMessage_Message) GetText() string

func (*ValidationResponseMessage_Message) ProtoMessage Uses

func (*ValidationResponseMessage_Message) ProtoMessage()

func (*ValidationResponseMessage_Message) Reset Uses

func (m *ValidationResponseMessage_Message) Reset()

func (*ValidationResponseMessage_Message) String Uses

func (m *ValidationResponseMessage_Message) String() string

func (*ValidationResponseMessage_Message) XXX_DiscardUnknown Uses

func (m *ValidationResponseMessage_Message) XXX_DiscardUnknown()

func (*ValidationResponseMessage_Message) XXX_Marshal Uses

func (m *ValidationResponseMessage_Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ValidationResponseMessage_Message) XXX_Merge Uses

func (m *ValidationResponseMessage_Message) XXX_Merge(src proto.Message)

func (*ValidationResponseMessage_Message) XXX_Size Uses

func (m *ValidationResponseMessage_Message) XXX_Size() int

func (*ValidationResponseMessage_Message) XXX_Unmarshal Uses

func (m *ValidationResponseMessage_Message) XXX_Unmarshal(b []byte) error

type ValidationResponseMessage_Severity Uses

type ValidationResponseMessage_Severity int32

Severity of a validation response message. In JSON encoded as a string.

const (
    ValidationResponseMessage_UNKNOWN  ValidationResponseMessage_Severity = 0
    ValidationResponseMessage_DEBUG    ValidationResponseMessage_Severity = 10
    ValidationResponseMessage_INFO     ValidationResponseMessage_Severity = 20
    ValidationResponseMessage_WARNING  ValidationResponseMessage_Severity = 30
    ValidationResponseMessage_ERROR    ValidationResponseMessage_Severity = 40
    ValidationResponseMessage_CRITICAL ValidationResponseMessage_Severity = 50
)

func (ValidationResponseMessage_Severity) EnumDescriptor Uses

func (ValidationResponseMessage_Severity) EnumDescriptor() ([]byte, []int)

func (ValidationResponseMessage_Severity) String Uses

func (x ValidationResponseMessage_Severity) String() string

type Validator Uses

type Validator struct {
    // A list of configuration patterns that this validator can validate.
    Patterns []*ConfigPattern `protobuf:"bytes,1,rep,name=patterns,proto3" json:"patterns,omitempty"`
    // URL of a validation endpoint. The config service will send an HTTP POST
    // request to the endpoint, where body is JSON-encoded
    // ValidationRequestMessage. The endpoint is expected to respond with
    // HTTP status 200 and JSON-encoded ValidationResponseMessage.
    Url                  string   `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

Describes what configuration can be validated and how to validate them.

func (*Validator) Descriptor Uses

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

func (*Validator) GetPatterns Uses

func (m *Validator) GetPatterns() []*ConfigPattern

func (*Validator) GetUrl Uses

func (m *Validator) GetUrl() string

func (*Validator) ProtoMessage Uses

func (*Validator) ProtoMessage()

func (*Validator) Reset Uses

func (m *Validator) Reset()

func (*Validator) String Uses

func (m *Validator) String() string

func (*Validator) XXX_DiscardUnknown Uses

func (m *Validator) XXX_DiscardUnknown()

func (*Validator) XXX_Marshal Uses

func (m *Validator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Validator) XXX_Merge Uses

func (m *Validator) XXX_Merge(src proto.Message)

func (*Validator) XXX_Size Uses

func (m *Validator) XXX_Size() int

func (*Validator) XXX_Unmarshal Uses

func (m *Validator) XXX_Unmarshal(b []byte) error

Package config imports 3 packages (graph) and is imported by 7 packages. Updated 2019-02-18. Refresh now. Tools for package owners.