Documentation ¶
Overview ¶
Package configpb contains the proto definitions for the Config Service.
Index ¶
- Constants
- Variables
- func FileDescriptorSet() *descriptorpb.FileDescriptorSet
- func RegisterConfigsServer(s grpc.ServiceRegistrar, srv ConfigsServer)
- type BadValidationRequestFixInfo
- func (*BadValidationRequestFixInfo) Descriptor() ([]byte, []int)deprecated
- func (x *BadValidationRequestFixInfo) GetUnvalidatableFiles() []string
- func (x *BadValidationRequestFixInfo) GetUploadFiles() []*BadValidationRequestFixInfo_UploadFile
- func (*BadValidationRequestFixInfo) ProtoMessage()
- func (x *BadValidationRequestFixInfo) ProtoReflect() protoreflect.Message
- func (x *BadValidationRequestFixInfo) Reset()
- func (x *BadValidationRequestFixInfo) String() string
- type BadValidationRequestFixInfo_UploadFile
- func (*BadValidationRequestFixInfo_UploadFile) Descriptor() ([]byte, []int)deprecated
- func (x *BadValidationRequestFixInfo_UploadFile) GetMaxConfigSize() int64
- func (x *BadValidationRequestFixInfo_UploadFile) GetPath() string
- func (x *BadValidationRequestFixInfo_UploadFile) GetSignedUrl() string
- func (*BadValidationRequestFixInfo_UploadFile) ProtoMessage()
- func (x *BadValidationRequestFixInfo_UploadFile) ProtoReflect() protoreflect.Message
- func (x *BadValidationRequestFixInfo_UploadFile) Reset()
- func (x *BadValidationRequestFixInfo_UploadFile) String() string
- type Config
- func (*Config) Descriptor() ([]byte, []int)deprecated
- func (x *Config) GetConfigSet() string
- func (m *Config) GetContent() isConfig_Content
- func (x *Config) GetContentSha256() string
- func (x *Config) GetPath() string
- func (x *Config) GetRawContent() []byte
- func (x *Config) GetRevision() string
- func (x *Config) GetSignedUrl() string
- func (x *Config) GetSize() int64
- func (x *Config) GetUrl() string
- func (*Config) ProtoMessage()
- func (x *Config) ProtoReflect() protoreflect.Message
- func (x *Config) Reset()
- func (x *Config) String() string
- type ConfigSet
- func (*ConfigSet) Descriptor() ([]byte, []int)deprecated
- func (x *ConfigSet) GetConfigs() []*Config
- func (x *ConfigSet) GetFilePaths() []stringdeprecated
- func (x *ConfigSet) GetLastImportAttempt() *ConfigSet_Attempt
- func (x *ConfigSet) GetName() string
- func (x *ConfigSet) GetRevision() *ConfigSet_Revision
- func (x *ConfigSet) GetUrl() string
- func (*ConfigSet) ProtoMessage()
- func (x *ConfigSet) ProtoReflect() protoreflect.Message
- func (x *ConfigSet) Reset()
- func (x *ConfigSet) String() string
- type ConfigSet_Attempt
- func (*ConfigSet_Attempt) Descriptor() ([]byte, []int)deprecated
- func (x *ConfigSet_Attempt) GetMessage() string
- func (x *ConfigSet_Attempt) GetRevision() *ConfigSet_Revision
- func (x *ConfigSet_Attempt) GetSuccess() bool
- func (x *ConfigSet_Attempt) GetTimestamp() *timestamppb.Timestamp
- func (x *ConfigSet_Attempt) GetValidationResult() *config.ValidationResult
- func (*ConfigSet_Attempt) ProtoMessage()
- func (x *ConfigSet_Attempt) ProtoReflect() protoreflect.Message
- func (x *ConfigSet_Attempt) Reset()
- func (x *ConfigSet_Attempt) String() string
- type ConfigSet_Revision
- func (*ConfigSet_Revision) Descriptor() ([]byte, []int)deprecated
- func (x *ConfigSet_Revision) GetAuthorEmail() string
- func (x *ConfigSet_Revision) GetCommitterEmail() string
- func (x *ConfigSet_Revision) GetId() string
- func (x *ConfigSet_Revision) GetTimestamp() *timestamppb.Timestamp
- func (x *ConfigSet_Revision) GetUrl() string
- func (*ConfigSet_Revision) ProtoMessage()
- func (x *ConfigSet_Revision) ProtoReflect() protoreflect.Message
- func (x *ConfigSet_Revision) Reset()
- func (x *ConfigSet_Revision) String() string
- type Config_RawContent
- type Config_SignedUrl
- type ConfigsClient
- type ConfigsServer
- type GetConfigRequest
- func (*GetConfigRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetConfigRequest) GetConfigSet() string
- func (x *GetConfigRequest) GetContentSha256() string
- func (x *GetConfigRequest) GetFields() *fieldmaskpb.FieldMask
- func (x *GetConfigRequest) GetPath() string
- func (*GetConfigRequest) ProtoMessage()
- func (x *GetConfigRequest) ProtoReflect() protoreflect.Message
- func (x *GetConfigRequest) Reset()
- func (x *GetConfigRequest) String() string
- type GetConfigSetRequest
- func (*GetConfigSetRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetConfigSetRequest) GetConfigSet() string
- func (x *GetConfigSetRequest) GetFields() *fieldmaskpb.FieldMask
- func (*GetConfigSetRequest) ProtoMessage()
- func (x *GetConfigSetRequest) ProtoReflect() protoreflect.Message
- func (x *GetConfigSetRequest) Reset()
- func (x *GetConfigSetRequest) String() string
- type GetProjectConfigsRequest
- func (*GetProjectConfigsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetProjectConfigsRequest) GetFields() *fieldmaskpb.FieldMask
- func (x *GetProjectConfigsRequest) GetPath() string
- func (*GetProjectConfigsRequest) ProtoMessage()
- func (x *GetProjectConfigsRequest) ProtoReflect() protoreflect.Message
- func (x *GetProjectConfigsRequest) Reset()
- func (x *GetProjectConfigsRequest) String() string
- type GetProjectConfigsResponse
- func (*GetProjectConfigsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetProjectConfigsResponse) GetConfigs() []*Config
- func (*GetProjectConfigsResponse) ProtoMessage()
- func (x *GetProjectConfigsResponse) ProtoReflect() protoreflect.Message
- func (x *GetProjectConfigsResponse) Reset()
- func (x *GetProjectConfigsResponse) String() string
- type ListConfigSetsRequest
- func (*ListConfigSetsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListConfigSetsRequest) GetDomain() ListConfigSetsRequest_ConfigSetDomain
- func (x *ListConfigSetsRequest) GetFields() *fieldmaskpb.FieldMask
- func (*ListConfigSetsRequest) ProtoMessage()
- func (x *ListConfigSetsRequest) ProtoReflect() protoreflect.Message
- func (x *ListConfigSetsRequest) Reset()
- func (x *ListConfigSetsRequest) String() string
- type ListConfigSetsRequest_ConfigSetDomain
- func (ListConfigSetsRequest_ConfigSetDomain) Descriptor() protoreflect.EnumDescriptor
- func (x ListConfigSetsRequest_ConfigSetDomain) Enum() *ListConfigSetsRequest_ConfigSetDomain
- func (ListConfigSetsRequest_ConfigSetDomain) EnumDescriptor() ([]byte, []int)deprecated
- func (x ListConfigSetsRequest_ConfigSetDomain) Number() protoreflect.EnumNumber
- func (x ListConfigSetsRequest_ConfigSetDomain) String() string
- func (ListConfigSetsRequest_ConfigSetDomain) Type() protoreflect.EnumType
- type ListConfigSetsResponse
- func (*ListConfigSetsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListConfigSetsResponse) GetConfigSets() []*ConfigSet
- func (*ListConfigSetsResponse) ProtoMessage()
- func (x *ListConfigSetsResponse) ProtoReflect() protoreflect.Message
- func (x *ListConfigSetsResponse) Reset()
- func (x *ListConfigSetsResponse) String() string
- type MockConfigsClient
- func (m *MockConfigsClient) EXPECT() *MockConfigsClientMockRecorder
- func (m *MockConfigsClient) GetConfig(ctx context.Context, in *GetConfigRequest, opts ...grpc.CallOption) (*Config, error)
- func (m *MockConfigsClient) GetConfigSet(ctx context.Context, in *GetConfigSetRequest, opts ...grpc.CallOption) (*ConfigSet, error)
- func (m *MockConfigsClient) GetProjectConfigs(ctx context.Context, in *GetProjectConfigsRequest, opts ...grpc.CallOption) (*GetProjectConfigsResponse, error)
- func (m *MockConfigsClient) ListConfigSets(ctx context.Context, in *ListConfigSetsRequest, opts ...grpc.CallOption) (*ListConfigSetsResponse, error)
- func (m *MockConfigsClient) ValidateConfigs(ctx context.Context, in *ValidateConfigsRequest, opts ...grpc.CallOption) (*config.ValidationResult, error)
- type MockConfigsClientMockRecorder
- func (mr *MockConfigsClientMockRecorder) GetConfig(ctx, in interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockConfigsClientMockRecorder) GetConfigSet(ctx, in interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockConfigsClientMockRecorder) GetProjectConfigs(ctx, in interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockConfigsClientMockRecorder) ListConfigSets(ctx, in interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockConfigsClientMockRecorder) ValidateConfigs(ctx, in interface{}, opts ...interface{}) *gomock.Call
- type MockConfigsServer
- func (m *MockConfigsServer) EXPECT() *MockConfigsServerMockRecorder
- func (m *MockConfigsServer) GetConfig(arg0 context.Context, arg1 *GetConfigRequest) (*Config, error)
- func (m *MockConfigsServer) GetConfigSet(arg0 context.Context, arg1 *GetConfigSetRequest) (*ConfigSet, error)
- func (m *MockConfigsServer) GetProjectConfigs(arg0 context.Context, arg1 *GetProjectConfigsRequest) (*GetProjectConfigsResponse, error)
- func (m *MockConfigsServer) ListConfigSets(arg0 context.Context, arg1 *ListConfigSetsRequest) (*ListConfigSetsResponse, error)
- func (m *MockConfigsServer) ValidateConfigs(arg0 context.Context, arg1 *ValidateConfigsRequest) (*config.ValidationResult, error)
- type MockConfigsServerMockRecorder
- func (mr *MockConfigsServerMockRecorder) GetConfig(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockConfigsServerMockRecorder) GetConfigSet(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockConfigsServerMockRecorder) GetProjectConfigs(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockConfigsServerMockRecorder) ListConfigSets(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockConfigsServerMockRecorder) ValidateConfigs(arg0, arg1 interface{}) *gomock.Call
- type MockUnsafeConfigsServer
- type MockUnsafeConfigsServerMockRecorder
- type UnimplementedConfigsServer
- func (UnimplementedConfigsServer) GetConfig(context.Context, *GetConfigRequest) (*Config, error)
- func (UnimplementedConfigsServer) GetConfigSet(context.Context, *GetConfigSetRequest) (*ConfigSet, error)
- func (UnimplementedConfigsServer) GetProjectConfigs(context.Context, *GetProjectConfigsRequest) (*GetProjectConfigsResponse, error)
- func (UnimplementedConfigsServer) ListConfigSets(context.Context, *ListConfigSetsRequest) (*ListConfigSetsResponse, error)
- func (UnimplementedConfigsServer) ValidateConfigs(context.Context, *ValidateConfigsRequest) (*config.ValidationResult, error)
- type UnsafeConfigsServer
- type ValidateConfigsRequest
- func (*ValidateConfigsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ValidateConfigsRequest) GetConfigSet() string
- func (x *ValidateConfigsRequest) GetFileHashes() []*ValidateConfigsRequest_FileHash
- func (*ValidateConfigsRequest) ProtoMessage()
- func (x *ValidateConfigsRequest) ProtoReflect() protoreflect.Message
- func (x *ValidateConfigsRequest) Reset()
- func (x *ValidateConfigsRequest) String() string
- type ValidateConfigsRequest_FileHash
- func (*ValidateConfigsRequest_FileHash) Descriptor() ([]byte, []int)deprecated
- func (x *ValidateConfigsRequest_FileHash) GetPath() string
- func (x *ValidateConfigsRequest_FileHash) GetSha256() string
- func (*ValidateConfigsRequest_FileHash) ProtoMessage()
- func (x *ValidateConfigsRequest_FileHash) ProtoReflect() protoreflect.Message
- func (x *ValidateConfigsRequest_FileHash) Reset()
- func (x *ValidateConfigsRequest_FileHash) String() string
Constants ¶
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 ¶
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.
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)
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 (x *BadValidationRequestFixInfo) GetUploadFiles() []*BadValidationRequestFixInfo_UploadFile
func (*BadValidationRequestFixInfo) ProtoMessage ¶
func (*BadValidationRequestFixInfo) ProtoMessage()
func (*BadValidationRequestFixInfo) ProtoReflect ¶
func (x *BadValidationRequestFixInfo) ProtoReflect() protoreflect.Message
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 (x *BadValidationRequestFixInfo_UploadFile) GetPath() string
func (*BadValidationRequestFixInfo_UploadFile) GetSignedUrl ¶
func (x *BadValidationRequestFixInfo_UploadFile) GetSignedUrl() string
func (*BadValidationRequestFixInfo_UploadFile) ProtoMessage ¶
func (*BadValidationRequestFixInfo_UploadFile) ProtoMessage()
func (*BadValidationRequestFixInfo_UploadFile) ProtoReflect ¶
func (x *BadValidationRequestFixInfo_UploadFile) ProtoReflect() protoreflect.Message
func (*BadValidationRequestFixInfo_UploadFile) Reset ¶
func (x *BadValidationRequestFixInfo_UploadFile) Reset()
func (*BadValidationRequestFixInfo_UploadFile) String ¶
func (x *BadValidationRequestFixInfo_UploadFile) String() 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) GetConfigSet ¶
func (*Config) GetContent ¶
func (m *Config) GetContent() isConfig_Content
func (*Config) GetContentSha256 ¶
func (*Config) GetRawContent ¶
func (*Config) GetRevision ¶
func (*Config) GetSignedUrl ¶
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) ProtoReflect ¶
func (x *Config) ProtoReflect() protoreflect.Message
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) GetConfigs ¶
func (*ConfigSet) GetFilePaths
deprecated
func (*ConfigSet) GetLastImportAttempt ¶
func (x *ConfigSet) GetLastImportAttempt() *ConfigSet_Attempt
func (*ConfigSet) GetRevision ¶
func (x *ConfigSet) GetRevision() *ConfigSet_Revision
func (*ConfigSet) ProtoMessage ¶
func (*ConfigSet) ProtoMessage()
func (*ConfigSet) ProtoReflect ¶
func (x *ConfigSet) ProtoReflect() protoreflect.Message
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 (x *GetProjectConfigsRequest) GetFields() *fieldmaskpb.FieldMask
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 (x *GetProjectConfigsResponse) ProtoReflect() protoreflect.Message
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 (x *ListConfigSetsRequest) GetDomain() ListConfigSetsRequest_ConfigSetDomain
func (*ListConfigSetsRequest) GetFields ¶
func (x *ListConfigSetsRequest) GetFields() *fieldmaskpb.FieldMask
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) Descriptor() protoreflect.EnumDescriptor
func (ListConfigSetsRequest_ConfigSetDomain) EnumDescriptor
deprecated
func (ListConfigSetsRequest_ConfigSetDomain) EnumDescriptor() ([]byte, []int)
Deprecated: Use ListConfigSetsRequest_ConfigSetDomain.Descriptor instead.
func (ListConfigSetsRequest_ConfigSetDomain) Number ¶
func (x ListConfigSetsRequest_ConfigSetDomain) Number() protoreflect.EnumNumber
func (ListConfigSetsRequest_ConfigSetDomain) String ¶
func (x ListConfigSetsRequest_ConfigSetDomain) String() string
func (ListConfigSetsRequest_ConfigSetDomain) Type ¶
func (ListConfigSetsRequest_ConfigSetDomain) Type() protoreflect.EnumType
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 ¶
func (m *MockConfigsClient) EXPECT() *MockConfigsClientMockRecorder
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 ¶
func (m *MockConfigsClient) GetProjectConfigs(ctx context.Context, in *GetProjectConfigsRequest, opts ...grpc.CallOption) (*GetProjectConfigsResponse, error)
GetProjectConfigs mocks base method.
func (*MockConfigsClient) ListConfigSets ¶
func (m *MockConfigsClient) ListConfigSets(ctx context.Context, in *ListConfigSetsRequest, opts ...grpc.CallOption) (*ListConfigSetsResponse, error)
ListConfigSets mocks base method.
func (*MockConfigsClient) ValidateConfigs ¶
func (m *MockConfigsClient) ValidateConfigs(ctx context.Context, in *ValidateConfigsRequest, opts ...grpc.CallOption) (*config.ValidationResult, error)
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 ¶
func (m *MockConfigsServer) EXPECT() *MockConfigsServerMockRecorder
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 ¶
func (m *MockConfigsServer) GetProjectConfigs(arg0 context.Context, arg1 *GetProjectConfigsRequest) (*GetProjectConfigsResponse, error)
GetProjectConfigs mocks base method.
func (*MockConfigsServer) ListConfigSets ¶
func (m *MockConfigsServer) ListConfigSets(arg0 context.Context, arg1 *ListConfigSetsRequest) (*ListConfigSetsResponse, error)
ListConfigSets mocks base method.
func (*MockConfigsServer) ValidateConfigs ¶
func (m *MockConfigsServer) ValidateConfigs(arg0 context.Context, arg1 *ValidateConfigsRequest) (*config.ValidationResult, error)
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 ¶
func (m *MockUnsafeConfigsServer) EXPECT() *MockUnsafeConfigsServerMockRecorder
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) GetConfig(context.Context, *GetConfigRequest) (*Config, error)
func (UnimplementedConfigsServer) GetConfigSet ¶
func (UnimplementedConfigsServer) GetConfigSet(context.Context, *GetConfigSetRequest) (*ConfigSet, error)
func (UnimplementedConfigsServer) GetProjectConfigs ¶
func (UnimplementedConfigsServer) GetProjectConfigs(context.Context, *GetProjectConfigsRequest) (*GetProjectConfigsResponse, error)
func (UnimplementedConfigsServer) ListConfigSets ¶
func (UnimplementedConfigsServer) ListConfigSets(context.Context, *ListConfigSetsRequest) (*ListConfigSetsResponse, error)
func (UnimplementedConfigsServer) ValidateConfigs ¶
func (UnimplementedConfigsServer) ValidateConfigs(context.Context, *ValidateConfigsRequest) (*config.ValidationResult, error)
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 (x *ValidateConfigsRequest) GetFileHashes() []*ValidateConfigsRequest_FileHash
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 (x *ValidateConfigsRequest_FileHash) GetPath() string
func (*ValidateConfigsRequest_FileHash) GetSha256 ¶
func (x *ValidateConfigsRequest_FileHash) GetSha256() string
func (*ValidateConfigsRequest_FileHash) ProtoMessage ¶
func (*ValidateConfigsRequest_FileHash) ProtoMessage()
func (*ValidateConfigsRequest_FileHash) ProtoReflect ¶
func (x *ValidateConfigsRequest_FileHash) ProtoReflect() protoreflect.Message
func (*ValidateConfigsRequest_FileHash) Reset ¶
func (x *ValidateConfigsRequest_FileHash) Reset()
func (*ValidateConfigsRequest_FileHash) String ¶
func (x *ValidateConfigsRequest_FileHash) String() string