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: 14 Imported by: 0

Documentation

Overview

Package configpb contains the proto definitions for the Config Service.

Index

Constants

View Source
const (
	Configs_GetConfig_FullMethodName         = "/config.service.v2.Configs/GetConfig"
	Configs_GetProjectConfigs_FullMethodName = "/config.service.v2.Configs/GetProjectConfigs"
	Configs_ListConfigSets_FullMethodName    = "/config.service.v2.Configs/ListConfigSets"
	Configs_GetConfigSet_FullMethodName      = "/config.service.v2.Configs/GetConfigSet"
	Configs_ValidateConfigs_FullMethodName   = "/config.service.v2.Configs/ValidateConfigs"
)

Variables

View Source
var (
	ListConfigSetsRequest_ConfigSetDomain_name = map[int32]string{
		0: "ALL",
		1: "SERVICE",
		2: "PROJECT",
	}
	ListConfigSetsRequest_ConfigSetDomain_value = map[string]int32{
		"ALL":     0,
		"SERVICE": 1,
		"PROJECT": 2,
	}
)

Enum value maps for ListConfigSetsRequest_ConfigSetDomain.

View Source
var Configs_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "config.service.v2.Configs",
	HandlerType: (*ConfigsServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetConfig",
			Handler:    _Configs_GetConfig_Handler,
		},
		{
			MethodName: "GetProjectConfigs",
			Handler:    _Configs_GetProjectConfigs_Handler,
		},
		{
			MethodName: "ListConfigSets",
			Handler:    _Configs_ListConfigSets_Handler,
		},
		{
			MethodName: "GetConfigSet",
			Handler:    _Configs_GetConfigSet_Handler,
		},
		{
			MethodName: "ValidateConfigs",
			Handler:    _Configs_ValidateConfigs_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "go.chromium.org/luci/config_service/proto/config_service.proto",
}

Configs_ServiceDesc is the grpc.ServiceDesc for Configs service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_go_chromium_org_luci_config_service_proto_config_service_proto protoreflect.FileDescriptor

Functions

func FileDescriptorSet

func FileDescriptorSet() *descriptorpb.FileDescriptorSet

FileDescriptorSet returns a descriptor set for this proto package, which includes all defined services, and all transitive dependencies.

Will not return nil.

Do NOT modify the returned descriptor.

func RegisterConfigsServer

func RegisterConfigsServer(s grpc.ServiceRegistrar, srv ConfigsServer)

Types

type BadValidationRequestFixInfo

type BadValidationRequestFixInfo struct {

	// The files that have NOT been seen by LUCI Config and need to be uploaded.
	UploadFiles []*BadValidationRequestFixInfo_UploadFile `protobuf:"bytes,1,rep,name=upload_files,json=uploadFiles,proto3" json:"upload_files,omitempty"`
	// Files that none of the services can validate and SHOULD NOT be included
	// in the ValidateConfigsRequest.
	UnvalidatableFiles []string `protobuf:"bytes,2,rep,name=unvalidatable_files,json=unvalidatableFiles,proto3" json:"unvalidatable_files,omitempty"`
	// contains filtered or unexported fields
}

BadValidationRequestFixInfo describes the problem in `ValidateConfigsRequest` and provide the fix instruction. The server will include this message in grpc error status details1 and return InvalidArgument error code.

func (*BadValidationRequestFixInfo) Descriptor deprecated

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

Deprecated: Use BadValidationRequestFixInfo.ProtoReflect.Descriptor instead.

func (*BadValidationRequestFixInfo) GetUnvalidatableFiles

func (x *BadValidationRequestFixInfo) GetUnvalidatableFiles() []string

func (*BadValidationRequestFixInfo) GetUploadFiles

func (*BadValidationRequestFixInfo) ProtoMessage

func (*BadValidationRequestFixInfo) ProtoMessage()

func (*BadValidationRequestFixInfo) ProtoReflect

func (*BadValidationRequestFixInfo) Reset

func (x *BadValidationRequestFixInfo) Reset()

func (*BadValidationRequestFixInfo) String

func (x *BadValidationRequestFixInfo) String() string

type BadValidationRequestFixInfo_UploadFile

type BadValidationRequestFixInfo_UploadFile struct {

	// Relative path to the config file in POSIX style.
	Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	// The url to upload the config.
	//
	// The caller SHOULD send compressed config and include following headers
	//   - Content-Encoding: gzip
	//   - x-goog-content-length-range: 0,$max_config_size
	SignedUrl string `protobuf:"bytes,2,opt,name=signed_url,json=signedUrl,proto3" json:"signed_url,omitempty"`
	// Maximum config size in bytes that client can upload.
	MaxConfigSize int64 `protobuf:"varint,3,opt,name=max_config_size,json=maxConfigSize,proto3" json:"max_config_size,omitempty"`
	// contains filtered or unexported fields
}

func (*BadValidationRequestFixInfo_UploadFile) Descriptor deprecated

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

Deprecated: Use BadValidationRequestFixInfo_UploadFile.ProtoReflect.Descriptor instead.

func (*BadValidationRequestFixInfo_UploadFile) GetMaxConfigSize

func (x *BadValidationRequestFixInfo_UploadFile) GetMaxConfigSize() int64

func (*BadValidationRequestFixInfo_UploadFile) GetPath

func (*BadValidationRequestFixInfo_UploadFile) GetSignedUrl

func (*BadValidationRequestFixInfo_UploadFile) ProtoMessage

func (*BadValidationRequestFixInfo_UploadFile) ProtoReflect

func (*BadValidationRequestFixInfo_UploadFile) Reset

func (*BadValidationRequestFixInfo_UploadFile) String

type Config

type Config struct {

	// Name of the config set.
	// For a service config set, "services/<service_id>".
	// For a project config set, "projects/<project_id>".
	ConfigSet string `protobuf:"bytes,1,opt,name=config_set,json=configSet,proto3" json:"config_set,omitempty"`
	// Path of the config file relative to the config directory.
	Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
	// Content of the config.
	//
	// Types that are assignable to Content:
	//
	//	*Config_RawContent
	//	*Config_SignedUrl
	Content isConfig_Content `protobuf_oneof:"content"`
	// SHA256 value of the raw content.
	ContentSha256 string `protobuf:"bytes,5,opt,name=content_sha256,json=contentSha256,proto3" json:"content_sha256,omitempty"`
	// Size of the raw config in bytes.
	Size int64 `protobuf:"varint,8,opt,name=size,proto3" json:"size,omitempty"`
	// Git revision
	Revision string `protobuf:"bytes,6,opt,name=revision,proto3" json:"revision,omitempty"`
	// Original config file url on Git repo.
	Url string `protobuf:"bytes,7,opt,name=url,proto3" json:"url,omitempty"`
	// contains filtered or unexported fields
}

A single config.

func (*Config) Descriptor deprecated

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

Deprecated: Use Config.ProtoReflect.Descriptor instead.

func (*Config) GetConfigSet

func (x *Config) GetConfigSet() string

func (*Config) GetContent

func (m *Config) GetContent() isConfig_Content

func (*Config) GetContentSha256

func (x *Config) GetContentSha256() string

func (*Config) GetPath

func (x *Config) GetPath() string

func (*Config) GetRawContent

func (x *Config) GetRawContent() []byte

func (*Config) GetRevision

func (x *Config) GetRevision() string

func (*Config) GetSignedUrl

func (x *Config) GetSignedUrl() string

func (*Config) GetSize

func (x *Config) GetSize() int64

func (*Config) GetUrl

func (x *Config) GetUrl() string

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 ConfigSet

type ConfigSet struct {

	// Name of the config set.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Git Repo url which holds configs of this config set.
	Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
	// Latest imported Git revision.
	Revision *ConfigSet_Revision `protobuf:"bytes,3,opt,name=revision,proto3" json:"revision,omitempty"`
	// All file paths related to the corresponding config set location.
	//
	// Use `configs` instead.
	//
	// Deprecated: Marked as deprecated in go.chromium.org/luci/config_service/proto/config_service.proto.
	FilePaths []string `protobuf:"bytes,4,rep,name=file_paths,json=filePaths,proto3" json:"file_paths,omitempty"`
	// Last import attempt information.
	LastImportAttempt *ConfigSet_Attempt `protobuf:"bytes,5,opt,name=last_import_attempt,json=lastImportAttempt,proto3" json:"last_import_attempt,omitempty"`
	// Metadata of all config files in the set.
	//
	// Messages here exclude `raw_content` and `signed_url`. Use separate
	// GetConfig call to fetch the full config file body.
	Configs []*Config `protobuf:"bytes,6,rep,name=configs,proto3" json:"configs,omitempty"`
	// contains filtered or unexported fields
}

A single ConfigSet.

func (*ConfigSet) Descriptor deprecated

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

Deprecated: Use ConfigSet.ProtoReflect.Descriptor instead.

func (*ConfigSet) GetConfigs

func (x *ConfigSet) GetConfigs() []*Config

func (*ConfigSet) GetFilePaths deprecated

func (x *ConfigSet) GetFilePaths() []string

Deprecated: Marked as deprecated in go.chromium.org/luci/config_service/proto/config_service.proto.

func (*ConfigSet) GetLastImportAttempt

func (x *ConfigSet) GetLastImportAttempt() *ConfigSet_Attempt

func (*ConfigSet) GetName

func (x *ConfigSet) GetName() string

func (*ConfigSet) GetRevision

func (x *ConfigSet) GetRevision() *ConfigSet_Revision

func (*ConfigSet) GetUrl

func (x *ConfigSet) GetUrl() string

func (*ConfigSet) ProtoMessage

func (*ConfigSet) ProtoMessage()

func (*ConfigSet) ProtoReflect

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

func (*ConfigSet) Reset

func (x *ConfigSet) Reset()

func (*ConfigSet) String

func (x *ConfigSet) String() string

type ConfigSet_Attempt

type ConfigSet_Attempt struct {

	// Human-readable message of the attempt.
	Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	// Whether this attempt is successful or not.
	Success bool `protobuf:"varint,2,opt,name=success,proto3" json:"success,omitempty"`
	// Git revision attempt to import
	Revision *ConfigSet_Revision `protobuf:"bytes,3,opt,name=revision,proto3" json:"revision,omitempty"`
	// Time of this attempt.
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// The validation result in this import attempt.
	ValidationResult *config.ValidationResult `protobuf:"bytes,5,opt,name=validationResult,proto3" json:"validationResult,omitempty"`
	// contains filtered or unexported fields
}

Attempt information about importing this config set.

func (*ConfigSet_Attempt) Descriptor deprecated

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

Deprecated: Use ConfigSet_Attempt.ProtoReflect.Descriptor instead.

func (*ConfigSet_Attempt) GetMessage

func (x *ConfigSet_Attempt) GetMessage() string

func (*ConfigSet_Attempt) GetRevision

func (x *ConfigSet_Attempt) GetRevision() *ConfigSet_Revision

func (*ConfigSet_Attempt) GetSuccess

func (x *ConfigSet_Attempt) GetSuccess() bool

func (*ConfigSet_Attempt) GetTimestamp

func (x *ConfigSet_Attempt) GetTimestamp() *timestamppb.Timestamp

func (*ConfigSet_Attempt) GetValidationResult

func (x *ConfigSet_Attempt) GetValidationResult() *config.ValidationResult

func (*ConfigSet_Attempt) ProtoMessage

func (*ConfigSet_Attempt) ProtoMessage()

func (*ConfigSet_Attempt) ProtoReflect

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

func (*ConfigSet_Attempt) Reset

func (x *ConfigSet_Attempt) Reset()

func (*ConfigSet_Attempt) String

func (x *ConfigSet_Attempt) String() string

type ConfigSet_Revision

type ConfigSet_Revision struct {

	// Revision id.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Repo url points to this revision of config set.
	Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
	// Committer email who commit this revision
	CommitterEmail string `protobuf:"bytes,3,opt,name=committer_email,json=committerEmail,proto3" json:"committer_email,omitempty"`
	// The commit author email.
	AuthorEmail string `protobuf:"bytes,5,opt,name=author_email,json=authorEmail,proto3" json:"author_email,omitempty"`
	// Time of this committed revision.
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// contains filtered or unexported fields
}

func (*ConfigSet_Revision) Descriptor deprecated

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

Deprecated: Use ConfigSet_Revision.ProtoReflect.Descriptor instead.

func (*ConfigSet_Revision) GetAuthorEmail

func (x *ConfigSet_Revision) GetAuthorEmail() string

func (*ConfigSet_Revision) GetCommitterEmail

func (x *ConfigSet_Revision) GetCommitterEmail() string

func (*ConfigSet_Revision) GetId

func (x *ConfigSet_Revision) GetId() string

func (*ConfigSet_Revision) GetTimestamp

func (x *ConfigSet_Revision) GetTimestamp() *timestamppb.Timestamp

func (*ConfigSet_Revision) GetUrl

func (x *ConfigSet_Revision) GetUrl() string

func (*ConfigSet_Revision) ProtoMessage

func (*ConfigSet_Revision) ProtoMessage()

func (*ConfigSet_Revision) ProtoReflect

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

func (*ConfigSet_Revision) Reset

func (x *ConfigSet_Revision) Reset()

func (*ConfigSet_Revision) String

func (x *ConfigSet_Revision) String() string

type Config_RawContent

type Config_RawContent struct {
	// For small content where its raw content is less than 30MB and gzipped
	// size is less than 800KB, the raw and uncompressed content will be
	// included directly.
	RawContent []byte `protobuf:"bytes,3,opt,name=raw_content,json=rawContent,proto3,oneof"`
}

type Config_SignedUrl

type Config_SignedUrl struct {
	// For large content, a sign_url which points the actual config content
	// will be provided.
	// Note: The signed url is set to expire in 10 minutes. And it's encouraged
	// to use "Accept-Encoding: gzip" header in the request to minimize the size
	// in data transfer, and decompress it by yourself.
	SignedUrl string `protobuf:"bytes,4,opt,name=signed_url,json=signedUrl,proto3,oneof"`
}

type ConfigsClient

type ConfigsClient interface {
	// Get one configuration.
	GetConfig(ctx context.Context, in *GetConfigRequest, opts ...grpc.CallOption) (*Config, error)
	// Get the specified project configs from all projects.
	GetProjectConfigs(ctx context.Context, in *GetProjectConfigsRequest, opts ...grpc.CallOption) (*GetProjectConfigsResponse, error)
	// List config sets.
	ListConfigSets(ctx context.Context, in *ListConfigSetsRequest, opts ...grpc.CallOption) (*ListConfigSetsResponse, error)
	// Get a single config set.
	GetConfigSet(ctx context.Context, in *GetConfigSetRequest, opts ...grpc.CallOption) (*ConfigSet, error)
	// Validates configs for a config set.
	//
	// The validation workflow works as follows (assuming first time validation):
	//  1. Client sends the manifest of the config directory for validation. The
	//     manifest consists of the relative posix style path to each config file
	//     and the SHA256 hash of the content of each config file.
	//  2. Server returns grpc error status with InvalidArgument code and
	//     a `BadValidationRequestFixInfo` message in status_detail.
	//     `BadValidationRequestFixInfo` should contain a signed url for each
	//     config file and Client is responsible to upload the *gzip compressed*
	//     config to the url. Client should also fix any remaining error mentioned
	//     in `BadValidationRequestFixInfo`. Note that, if the request contains
	//     any invalid argument like malformed config set or absolute file path,
	//     LUCI Config will only return the grpc error status with InvalidArgument
	//     code but without anything in status_details because those type of errors
	//     are not fixable.
	//  3. Call the server again with the same validation request as in step 1. The
	//     Server should be able to perform the validation and return the
	//     result.
	//  4. Repeat step 1-3 for any subsequent validation request. Note that for
	//     step 2, the Server would only ask client to upload files that it has
	//     not seen their hashes in any previous validation session (for up to 1
	//     day).
	ValidateConfigs(ctx context.Context, in *ValidateConfigsRequest, opts ...grpc.CallOption) (*config.ValidationResult, error)
}

ConfigsClient is the client API for Configs service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

Configs Service.

func NewConfigsClient

func NewConfigsClient(cc grpc.ClientConnInterface) ConfigsClient

type ConfigsServer

type ConfigsServer interface {
	// Get one configuration.
	GetConfig(context.Context, *GetConfigRequest) (*Config, error)
	// Get the specified project configs from all projects.
	GetProjectConfigs(context.Context, *GetProjectConfigsRequest) (*GetProjectConfigsResponse, error)
	// List config sets.
	ListConfigSets(context.Context, *ListConfigSetsRequest) (*ListConfigSetsResponse, error)
	// Get a single config set.
	GetConfigSet(context.Context, *GetConfigSetRequest) (*ConfigSet, error)
	// Validates configs for a config set.
	//
	// The validation workflow works as follows (assuming first time validation):
	//  1. Client sends the manifest of the config directory for validation. The
	//     manifest consists of the relative posix style path to each config file
	//     and the SHA256 hash of the content of each config file.
	//  2. Server returns grpc error status with InvalidArgument code and
	//     a `BadValidationRequestFixInfo` message in status_detail.
	//     `BadValidationRequestFixInfo` should contain a signed url for each
	//     config file and Client is responsible to upload the *gzip compressed*
	//     config to the url. Client should also fix any remaining error mentioned
	//     in `BadValidationRequestFixInfo`. Note that, if the request contains
	//     any invalid argument like malformed config set or absolute file path,
	//     LUCI Config will only return the grpc error status with InvalidArgument
	//     code but without anything in status_details because those type of errors
	//     are not fixable.
	//  3. Call the server again with the same validation request as in step 1. The
	//     Server should be able to perform the validation and return the
	//     result.
	//  4. Repeat step 1-3 for any subsequent validation request. Note that for
	//     step 2, the Server would only ask client to upload files that it has
	//     not seen their hashes in any previous validation session (for up to 1
	//     day).
	ValidateConfigs(context.Context, *ValidateConfigsRequest) (*config.ValidationResult, error)
	// contains filtered or unexported methods
}

ConfigsServer is the server API for Configs service. All implementations must embed UnimplementedConfigsServer for forward compatibility.

Configs Service.

type GetConfigRequest

type GetConfigRequest struct {

	// ConfigSet where the requested config belongs to.
	//
	// Required.
	ConfigSet string `protobuf:"bytes,1,opt,name=config_set,json=configSet,proto3" json:"config_set,omitempty"`
	// Path of the config. Mutually exclusive with content_sha256.
	Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
	// Content SHA256 value of the config. Mutually exclusive with path.
	ContentSha256 string `protobuf:"bytes,3,opt,name=content_sha256,json=contentSha256,proto3" json:"content_sha256,omitempty"`
	// Fields of the Config proto to include.
	//
	// By default, all fields are included.
	//
	// Note: For content field, the client should always pass "content" to get
	// the content. Populating "raw_content" or "signed_url" is a pure server
	// side decision based on the size of the config. Therefore, explicitly
	// passing one of "raw_content" or "signed_url" may cause unexpected
	// behavior. For example, "raw_content" is passed and the content is large
	// and supposed to return by signed_url field, the client would get an
	// empty "raw_content".
	Fields *fieldmaskpb.FieldMask `protobuf:"bytes,4,opt,name=fields,proto3" json:"fields,omitempty"`
	// contains filtered or unexported fields
}

A request message for GetConfig rpc.

func (*GetConfigRequest) Descriptor deprecated

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

Deprecated: Use GetConfigRequest.ProtoReflect.Descriptor instead.

func (*GetConfigRequest) GetConfigSet

func (x *GetConfigRequest) GetConfigSet() string

func (*GetConfigRequest) GetContentSha256

func (x *GetConfigRequest) GetContentSha256() string

func (*GetConfigRequest) GetFields

func (x *GetConfigRequest) GetFields() *fieldmaskpb.FieldMask

func (*GetConfigRequest) GetPath

func (x *GetConfigRequest) GetPath() string

func (*GetConfigRequest) ProtoMessage

func (*GetConfigRequest) ProtoMessage()

func (*GetConfigRequest) ProtoReflect

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

func (*GetConfigRequest) Reset

func (x *GetConfigRequest) Reset()

func (*GetConfigRequest) String

func (x *GetConfigRequest) String() string

type GetConfigSetRequest

type GetConfigSetRequest struct {

	// Config set to fetch.
	ConfigSet string `protobuf:"bytes,1,opt,name=config_set,json=configSet,proto3" json:"config_set,omitempty"`
	// Fields of ConfigSet proto to include.
	// By default, only return config_set, url and revision fields.
	Fields *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=fields,proto3" json:"fields,omitempty"`
	// contains filtered or unexported fields
}

GetConfigSetRequest is the request of GetConfigSet rpc.

func (*GetConfigSetRequest) Descriptor deprecated

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

Deprecated: Use GetConfigSetRequest.ProtoReflect.Descriptor instead.

func (*GetConfigSetRequest) GetConfigSet

func (x *GetConfigSetRequest) GetConfigSet() string

func (*GetConfigSetRequest) GetFields

func (x *GetConfigSetRequest) GetFields() *fieldmaskpb.FieldMask

func (*GetConfigSetRequest) ProtoMessage

func (*GetConfigSetRequest) ProtoMessage()

func (*GetConfigSetRequest) ProtoReflect

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

func (*GetConfigSetRequest) Reset

func (x *GetConfigSetRequest) Reset()

func (*GetConfigSetRequest) String

func (x *GetConfigSetRequest) String() string

type GetProjectConfigsRequest

type GetProjectConfigsRequest struct {

	// Required
	// Path to the desired config in each project config set.
	//
	// TODO: In future, it can expand to support regex match in some ways, since
	// in v2, Luci-config is supposed to support multi-file configuration.
	// For example, `cr-buildbucket.cfg` can be split into smaller configs,
	// e.g. `bucket-a.cfg`, `bucket-b.cfg`, etc. But file names might be dynamic
	// and how these files are organized with other project configs are undecided.
	// It's better to implement the regex check logic when there is a concrete
	// use case.
	Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	// Fields of Config proto to include.
	//
	// By default, all fields are included.
	Fields *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=fields,proto3" json:"fields,omitempty"`
	// contains filtered or unexported fields
}

Get project-level configs matched with the provided path in all `projects/xxx` config_sets.

func (*GetProjectConfigsRequest) Descriptor deprecated

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

Deprecated: Use GetProjectConfigsRequest.ProtoReflect.Descriptor instead.

func (*GetProjectConfigsRequest) GetFields

func (*GetProjectConfigsRequest) GetPath

func (x *GetProjectConfigsRequest) GetPath() string

func (*GetProjectConfigsRequest) ProtoMessage

func (*GetProjectConfigsRequest) ProtoMessage()

func (*GetProjectConfigsRequest) ProtoReflect

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

func (*GetProjectConfigsRequest) Reset

func (x *GetProjectConfigsRequest) Reset()

func (*GetProjectConfigsRequest) String

func (x *GetProjectConfigsRequest) String() string

type GetProjectConfigsResponse

type GetProjectConfigsResponse struct {

	// The requested configs in each project.
	Configs []*Config `protobuf:"bytes,1,rep,name=configs,proto3" json:"configs,omitempty"`
	// contains filtered or unexported fields
}

GetProjectConfigsResponse is the response of GetProjectConfigs rpc.

Note: When the sum of the first ith config.Content size larger than 200MB, the rest of config.Content will be always a signed url.

func (*GetProjectConfigsResponse) Descriptor deprecated

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

Deprecated: Use GetProjectConfigsResponse.ProtoReflect.Descriptor instead.

func (*GetProjectConfigsResponse) GetConfigs

func (x *GetProjectConfigsResponse) GetConfigs() []*Config

func (*GetProjectConfigsResponse) ProtoMessage

func (*GetProjectConfigsResponse) ProtoMessage()

func (*GetProjectConfigsResponse) ProtoReflect

func (*GetProjectConfigsResponse) Reset

func (x *GetProjectConfigsResponse) Reset()

func (*GetProjectConfigsResponse) String

func (x *GetProjectConfigsResponse) String() string

type ListConfigSetsRequest

type ListConfigSetsRequest struct {

	// List config sets in the specified domain.
	Domain ListConfigSetsRequest_ConfigSetDomain `` /* 127-byte string literal not displayed */
	// Fields of ConfigSet proto to include.
	// By default, only return config_set, url and revision fields.
	// Note: "file_paths" and "configs" is not supported in this rpc and only be
	// supported in GetConfigSet rpc.
	Fields *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=fields,proto3" json:"fields,omitempty"`
	// contains filtered or unexported fields
}

ListConfigSetsRequest is the request of ListConfigSets rpc.

func (*ListConfigSetsRequest) Descriptor deprecated

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

Deprecated: Use ListConfigSetsRequest.ProtoReflect.Descriptor instead.

func (*ListConfigSetsRequest) GetDomain

func (*ListConfigSetsRequest) GetFields

func (*ListConfigSetsRequest) ProtoMessage

func (*ListConfigSetsRequest) ProtoMessage()

func (*ListConfigSetsRequest) ProtoReflect

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

func (*ListConfigSetsRequest) Reset

func (x *ListConfigSetsRequest) Reset()

func (*ListConfigSetsRequest) String

func (x *ListConfigSetsRequest) String() string

type ListConfigSetsRequest_ConfigSetDomain

type ListConfigSetsRequest_ConfigSetDomain int32
const (
	// The default value when domain is omitted. Used to retrieve config sets
	// in all domains.
	ListConfigSetsRequest_ALL ListConfigSetsRequest_ConfigSetDomain = 0
	// Service domain.
	ListConfigSetsRequest_SERVICE ListConfigSetsRequest_ConfigSetDomain = 1
	// Project domain.
	ListConfigSetsRequest_PROJECT ListConfigSetsRequest_ConfigSetDomain = 2
)

func (ListConfigSetsRequest_ConfigSetDomain) Descriptor

func (ListConfigSetsRequest_ConfigSetDomain) Enum

func (ListConfigSetsRequest_ConfigSetDomain) EnumDescriptor deprecated

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

Deprecated: Use ListConfigSetsRequest_ConfigSetDomain.Descriptor instead.

func (ListConfigSetsRequest_ConfigSetDomain) Number

func (ListConfigSetsRequest_ConfigSetDomain) String

func (ListConfigSetsRequest_ConfigSetDomain) Type

type ListConfigSetsResponse

type ListConfigSetsResponse struct {

	// A list of config sets.
	ConfigSets []*ConfigSet `protobuf:"bytes,1,rep,name=config_sets,json=configSets,proto3" json:"config_sets,omitempty"`
	// contains filtered or unexported fields
}

ListConfigSetsResponse is the response of ListConfigSets rpc.

func (*ListConfigSetsResponse) Descriptor deprecated

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

Deprecated: Use ListConfigSetsResponse.ProtoReflect.Descriptor instead.

func (*ListConfigSetsResponse) GetConfigSets

func (x *ListConfigSetsResponse) GetConfigSets() []*ConfigSet

func (*ListConfigSetsResponse) ProtoMessage

func (*ListConfigSetsResponse) ProtoMessage()

func (*ListConfigSetsResponse) ProtoReflect

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

func (*ListConfigSetsResponse) Reset

func (x *ListConfigSetsResponse) Reset()

func (*ListConfigSetsResponse) String

func (x *ListConfigSetsResponse) String() string

type MockConfigsClient

type MockConfigsClient struct {
	// contains filtered or unexported fields
}

MockConfigsClient is a mock of ConfigsClient interface.

func NewMockConfigsClient

func NewMockConfigsClient(ctrl *gomock.Controller) *MockConfigsClient

NewMockConfigsClient creates a new mock instance.

func (*MockConfigsClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockConfigsClient) GetConfig

func (m *MockConfigsClient) GetConfig(ctx context.Context, in *GetConfigRequest, opts ...grpc.CallOption) (*Config, error)

GetConfig mocks base method.

func (*MockConfigsClient) GetConfigSet

func (m *MockConfigsClient) GetConfigSet(ctx context.Context, in *GetConfigSetRequest, opts ...grpc.CallOption) (*ConfigSet, error)

GetConfigSet mocks base method.

func (*MockConfigsClient) GetProjectConfigs

GetProjectConfigs mocks base method.

func (*MockConfigsClient) ListConfigSets

ListConfigSets mocks base method.

func (*MockConfigsClient) ValidateConfigs

ValidateConfigs mocks base method.

type MockConfigsClientMockRecorder

type MockConfigsClientMockRecorder struct {
	// contains filtered or unexported fields
}

MockConfigsClientMockRecorder is the mock recorder for MockConfigsClient.

func (*MockConfigsClientMockRecorder) GetConfig

func (mr *MockConfigsClientMockRecorder) GetConfig(ctx, in interface{}, opts ...interface{}) *gomock.Call

GetConfig indicates an expected call of GetConfig.

func (*MockConfigsClientMockRecorder) GetConfigSet

func (mr *MockConfigsClientMockRecorder) GetConfigSet(ctx, in interface{}, opts ...interface{}) *gomock.Call

GetConfigSet indicates an expected call of GetConfigSet.

func (*MockConfigsClientMockRecorder) GetProjectConfigs

func (mr *MockConfigsClientMockRecorder) GetProjectConfigs(ctx, in interface{}, opts ...interface{}) *gomock.Call

GetProjectConfigs indicates an expected call of GetProjectConfigs.

func (*MockConfigsClientMockRecorder) ListConfigSets

func (mr *MockConfigsClientMockRecorder) ListConfigSets(ctx, in interface{}, opts ...interface{}) *gomock.Call

ListConfigSets indicates an expected call of ListConfigSets.

func (*MockConfigsClientMockRecorder) ValidateConfigs

func (mr *MockConfigsClientMockRecorder) ValidateConfigs(ctx, in interface{}, opts ...interface{}) *gomock.Call

ValidateConfigs indicates an expected call of ValidateConfigs.

type MockConfigsServer

type MockConfigsServer struct {
	// contains filtered or unexported fields
}

MockConfigsServer is a mock of ConfigsServer interface.

func NewMockConfigsServer

func NewMockConfigsServer(ctrl *gomock.Controller) *MockConfigsServer

NewMockConfigsServer creates a new mock instance.

func (*MockConfigsServer) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockConfigsServer) GetConfig

func (m *MockConfigsServer) GetConfig(arg0 context.Context, arg1 *GetConfigRequest) (*Config, error)

GetConfig mocks base method.

func (*MockConfigsServer) GetConfigSet

func (m *MockConfigsServer) GetConfigSet(arg0 context.Context, arg1 *GetConfigSetRequest) (*ConfigSet, error)

GetConfigSet mocks base method.

func (*MockConfigsServer) GetProjectConfigs

GetProjectConfigs mocks base method.

func (*MockConfigsServer) ListConfigSets

ListConfigSets mocks base method.

func (*MockConfigsServer) ValidateConfigs

ValidateConfigs mocks base method.

type MockConfigsServerMockRecorder

type MockConfigsServerMockRecorder struct {
	// contains filtered or unexported fields
}

MockConfigsServerMockRecorder is the mock recorder for MockConfigsServer.

func (*MockConfigsServerMockRecorder) GetConfig

func (mr *MockConfigsServerMockRecorder) GetConfig(arg0, arg1 interface{}) *gomock.Call

GetConfig indicates an expected call of GetConfig.

func (*MockConfigsServerMockRecorder) GetConfigSet

func (mr *MockConfigsServerMockRecorder) GetConfigSet(arg0, arg1 interface{}) *gomock.Call

GetConfigSet indicates an expected call of GetConfigSet.

func (*MockConfigsServerMockRecorder) GetProjectConfigs

func (mr *MockConfigsServerMockRecorder) GetProjectConfigs(arg0, arg1 interface{}) *gomock.Call

GetProjectConfigs indicates an expected call of GetProjectConfigs.

func (*MockConfigsServerMockRecorder) ListConfigSets

func (mr *MockConfigsServerMockRecorder) ListConfigSets(arg0, arg1 interface{}) *gomock.Call

ListConfigSets indicates an expected call of ListConfigSets.

func (*MockConfigsServerMockRecorder) ValidateConfigs

func (mr *MockConfigsServerMockRecorder) ValidateConfigs(arg0, arg1 interface{}) *gomock.Call

ValidateConfigs indicates an expected call of ValidateConfigs.

type MockUnsafeConfigsServer

type MockUnsafeConfigsServer struct {
	// contains filtered or unexported fields
}

MockUnsafeConfigsServer is a mock of UnsafeConfigsServer interface.

func NewMockUnsafeConfigsServer

func NewMockUnsafeConfigsServer(ctrl *gomock.Controller) *MockUnsafeConfigsServer

NewMockUnsafeConfigsServer creates a new mock instance.

func (*MockUnsafeConfigsServer) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

type MockUnsafeConfigsServerMockRecorder

type MockUnsafeConfigsServerMockRecorder struct {
	// contains filtered or unexported fields
}

MockUnsafeConfigsServerMockRecorder is the mock recorder for MockUnsafeConfigsServer.

type UnimplementedConfigsServer

type UnimplementedConfigsServer struct{}

UnimplementedConfigsServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedConfigsServer) GetConfig

func (UnimplementedConfigsServer) GetConfigSet

func (UnimplementedConfigsServer) ListConfigSets

func (UnimplementedConfigsServer) ValidateConfigs

type UnsafeConfigsServer

type UnsafeConfigsServer interface {
	// contains filtered or unexported methods
}

UnsafeConfigsServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ConfigsServer will result in compilation errors.

type ValidateConfigsRequest

type ValidateConfigsRequest struct {

	// ConfigSet to validate against.
	//
	// See: https://pkg.go.dev/go.chromium.org/luci/config#Set
	ConfigSet string `protobuf:"bytes,1,opt,name=config_set,json=configSet,proto3" json:"config_set,omitempty"`
	// FileHashes represent the manifest of the config directory.
	FileHashes []*ValidateConfigsRequest_FileHash `protobuf:"bytes,2,rep,name=file_hashes,json=fileHashes,proto3" json:"file_hashes,omitempty"`
	// contains filtered or unexported fields
}

ValidateConfigsRequest is the request of ValidateConfigs rpc.

func (*ValidateConfigsRequest) Descriptor deprecated

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

Deprecated: Use ValidateConfigsRequest.ProtoReflect.Descriptor instead.

func (*ValidateConfigsRequest) GetConfigSet

func (x *ValidateConfigsRequest) GetConfigSet() string

func (*ValidateConfigsRequest) GetFileHashes

func (*ValidateConfigsRequest) ProtoMessage

func (*ValidateConfigsRequest) ProtoMessage()

func (*ValidateConfigsRequest) ProtoReflect

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

func (*ValidateConfigsRequest) Reset

func (x *ValidateConfigsRequest) Reset()

func (*ValidateConfigsRequest) String

func (x *ValidateConfigsRequest) String() string

type ValidateConfigsRequest_FileHash

type ValidateConfigsRequest_FileHash struct {

	// Relative path to the config file in POSIX style.
	Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	// The SHA256 hash of the config file.
	Sha256 string `protobuf:"bytes,2,opt,name=sha256,proto3" json:"sha256,omitempty"`
	// contains filtered or unexported fields
}

func (*ValidateConfigsRequest_FileHash) Descriptor deprecated

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

Deprecated: Use ValidateConfigsRequest_FileHash.ProtoReflect.Descriptor instead.

func (*ValidateConfigsRequest_FileHash) GetPath

func (*ValidateConfigsRequest_FileHash) GetSha256

func (x *ValidateConfigsRequest_FileHash) GetSha256() string

func (*ValidateConfigsRequest_FileHash) ProtoMessage

func (*ValidateConfigsRequest_FileHash) ProtoMessage()

func (*ValidateConfigsRequest_FileHash) ProtoReflect

func (*ValidateConfigsRequest_FileHash) Reset

func (*ValidateConfigsRequest_FileHash) String

Jump to

Keyboard shortcuts

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