Documentation ¶
Index ¶
- Constants
- Variables
- func GetAgentInfo(ctx context.Context, client gitlab.ClientInterface, agentToken api.AgentToken, ...) (*api.AgentInfo, error)
- func GetProjectInfo(ctx context.Context, client gitlab.ClientInterface, agentToken api.AgentToken, ...) (*api.ProjectInfo, error)
- func IsCacheableError(err error) bool
- func MakeModuleRequest(ctx context.Context, client gitlab.ClientInterface, agentToken api.AgentToken, ...) (*http.Response, error)
- func PostAgentConfiguration(ctx context.Context, client gitlab.ClientInterface, agentId int64, ...) error
- func SendUsagePing(ctx context.Context, client gitlab.ClientInterface, counters map[string]int64, ...) error
- type AllowedAgent
- func (*AllowedAgent) Descriptor() ([]byte, []int)deprecated
- func (x *AllowedAgent) GetConfigProject() *ConfigProject
- func (x *AllowedAgent) GetConfiguration() *Configuration
- func (x *AllowedAgent) GetId() int64
- func (*AllowedAgent) ProtoMessage()
- func (x *AllowedAgent) ProtoReflect() protoreflect.Message
- func (x *AllowedAgent) Reset()
- func (x *AllowedAgent) String() string
- func (m *AllowedAgent) Validate() error
- func (m *AllowedAgent) ValidateAll() error
- type AllowedAgentMultiError
- type AllowedAgentValidationError
- func (e AllowedAgentValidationError) Cause() error
- func (e AllowedAgentValidationError) Error() string
- func (e AllowedAgentValidationError) ErrorName() string
- func (e AllowedAgentValidationError) Field() string
- func (e AllowedAgentValidationError) Key() bool
- func (e AllowedAgentValidationError) Reason() string
- type AllowedAgentsForJob
- func (*AllowedAgentsForJob) Descriptor() ([]byte, []int)deprecated
- func (x *AllowedAgentsForJob) GetAllowedAgents() []*AllowedAgent
- func (x *AllowedAgentsForJob) GetEnvironment() *Environment
- func (x *AllowedAgentsForJob) GetJob() *Job
- func (x *AllowedAgentsForJob) GetPipeline() *Pipeline
- func (x *AllowedAgentsForJob) GetProject() *Project
- func (x *AllowedAgentsForJob) GetUser() *User
- func (*AllowedAgentsForJob) ProtoMessage()
- func (x *AllowedAgentsForJob) ProtoReflect() protoreflect.Message
- func (x *AllowedAgentsForJob) Reset()
- func (x *AllowedAgentsForJob) String() string
- func (m *AllowedAgentsForJob) Validate() error
- func (m *AllowedAgentsForJob) ValidateAll() error
- type AllowedAgentsForJobMultiError
- type AllowedAgentsForJobValidationError
- func (e AllowedAgentsForJobValidationError) Cause() error
- func (e AllowedAgentsForJobValidationError) Error() string
- func (e AllowedAgentsForJobValidationError) ErrorName() string
- func (e AllowedAgentsForJobValidationError) Field() string
- func (e AllowedAgentsForJobValidationError) Key() bool
- func (e AllowedAgentsForJobValidationError) Reason() string
- type ConfigProject
- func (*ConfigProject) Descriptor() ([]byte, []int)deprecated
- func (x *ConfigProject) GetId() int64
- func (*ConfigProject) ProtoMessage()
- func (x *ConfigProject) ProtoReflect() protoreflect.Message
- func (x *ConfigProject) Reset()
- func (x *ConfigProject) String() string
- func (m *ConfigProject) Validate() error
- func (m *ConfigProject) ValidateAll() error
- type ConfigProjectMultiError
- type ConfigProjectValidationError
- func (e ConfigProjectValidationError) Cause() error
- func (e ConfigProjectValidationError) Error() string
- func (e ConfigProjectValidationError) ErrorName() string
- func (e ConfigProjectValidationError) Field() string
- func (e ConfigProjectValidationError) Key() bool
- func (e ConfigProjectValidationError) Reason() string
- type Configuration
- func (*Configuration) Descriptor() ([]byte, []int)deprecated
- func (x *Configuration) GetAccessAs() *agentcfg.CiAccessAsCF
- func (x *Configuration) GetDefaultNamespace() string
- func (*Configuration) ProtoMessage()
- func (x *Configuration) ProtoReflect() protoreflect.Message
- func (x *Configuration) Reset()
- func (x *Configuration) String() string
- func (m *Configuration) Validate() error
- func (m *Configuration) ValidateAll() error
- type ConfigurationMultiError
- type ConfigurationValidationError
- func (e ConfigurationValidationError) Cause() error
- func (e ConfigurationValidationError) Error() string
- func (e ConfigurationValidationError) ErrorName() string
- func (e ConfigurationValidationError) Field() string
- func (e ConfigurationValidationError) Key() bool
- func (e ConfigurationValidationError) Reason() string
- type Environment
- func (*Environment) Descriptor() ([]byte, []int)deprecated
- func (x *Environment) GetSlug() string
- func (*Environment) ProtoMessage()
- func (x *Environment) ProtoReflect() protoreflect.Message
- func (x *Environment) Reset()
- func (x *Environment) String() string
- func (m *Environment) Validate() error
- func (m *Environment) ValidateAll() error
- type EnvironmentMultiError
- type EnvironmentValidationError
- func (e EnvironmentValidationError) Cause() error
- func (e EnvironmentValidationError) Error() string
- func (e EnvironmentValidationError) ErrorName() string
- func (e EnvironmentValidationError) Field() string
- func (e EnvironmentValidationError) Key() bool
- func (e EnvironmentValidationError) Reason() string
- type Group
- type GroupMultiError
- type GroupValidationError
- type Job
- type JobMultiError
- type JobValidationError
- type Pipeline
- func (*Pipeline) Descriptor() ([]byte, []int)deprecated
- func (x *Pipeline) GetId() int64
- func (*Pipeline) ProtoMessage()
- func (x *Pipeline) ProtoReflect() protoreflect.Message
- func (x *Pipeline) Reset()
- func (x *Pipeline) String() string
- func (m *Pipeline) Validate() error
- func (m *Pipeline) ValidateAll() error
- type PipelineMultiError
- type PipelineValidationError
- type Project
- func (*Project) Descriptor() ([]byte, []int)deprecated
- func (x *Project) GetGroups() []*Group
- func (x *Project) GetId() int64
- func (*Project) ProtoMessage()
- func (x *Project) ProtoReflect() protoreflect.Message
- func (x *Project) Reset()
- func (x *Project) String() string
- func (m *Project) Validate() error
- func (m *Project) ValidateAll() error
- type ProjectInfoResponse
- type ProjectMultiError
- type ProjectValidationError
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetId() int64
- func (x *User) GetUsername() string
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
- func (m *User) Validate() error
- func (m *User) ValidateAll() error
- type UserMultiError
- type UserValidationError
Constants ¶
const ( ProjectInfoApiPath = "/api/v4/internal/kubernetes/project_info" ProjectIdQueryParam = "id" )
const (
AgentConfigurationApiPath = "/api/v4/internal/kubernetes/agent_configuration"
)
const (
AgentInfoApiPath = "/api/v4/internal/kubernetes/agent_info"
)
const (
AllowedAgentsApiPath = "/api/v4/job/allowed_agents"
)
const (
ModuleRequestApiPath = "/api/v4/internal/kubernetes/modules/"
)
const (
UsagePingApiPath = "/api/v4/internal/kubernetes/usage_metrics"
)
Variables ¶
var File_internal_gitlab_api_api_proto protoreflect.FileDescriptor
Functions ¶
func GetAgentInfo ¶
func GetProjectInfo ¶ added in v14.1.1
func GetProjectInfo(ctx context.Context, client gitlab.ClientInterface, agentToken api.AgentToken, projectId string, opts ...gitlab.DoOption) (*api.ProjectInfo, error)
func IsCacheableError ¶ added in v14.4.0
IsCacheableError checks if an error is cacheable.
func MakeModuleRequest ¶ added in v14.1.1
func PostAgentConfiguration ¶ added in v14.3.0
func PostAgentConfiguration(ctx context.Context, client gitlab.ClientInterface, agentId int64, config *agentcfg.ConfigurationFile, opts ...gitlab.DoOption) error
Types ¶
type AllowedAgent ¶ added in v14.1.1
type AllowedAgent struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` ConfigProject *ConfigProject `protobuf:"bytes,2,opt,name=config_project,proto3" json:"config_project,omitempty"` Configuration *Configuration `protobuf:"bytes,3,opt,name=configuration,proto3" json:"configuration,omitempty"` // contains filtered or unexported fields }
func (*AllowedAgent) Descriptor
deprecated
added in
v14.3.0
func (*AllowedAgent) Descriptor() ([]byte, []int)
Deprecated: Use AllowedAgent.ProtoReflect.Descriptor instead.
func (*AllowedAgent) GetConfigProject ¶ added in v14.3.0
func (x *AllowedAgent) GetConfigProject() *ConfigProject
func (*AllowedAgent) GetConfiguration ¶ added in v14.3.0
func (x *AllowedAgent) GetConfiguration() *Configuration
func (*AllowedAgent) GetId ¶ added in v14.3.0
func (x *AllowedAgent) GetId() int64
func (*AllowedAgent) ProtoMessage ¶ added in v14.3.0
func (*AllowedAgent) ProtoMessage()
func (*AllowedAgent) ProtoReflect ¶ added in v14.3.0
func (x *AllowedAgent) ProtoReflect() protoreflect.Message
func (*AllowedAgent) Reset ¶ added in v14.3.0
func (x *AllowedAgent) Reset()
func (*AllowedAgent) String ¶ added in v14.3.0
func (x *AllowedAgent) String() string
func (*AllowedAgent) Validate ¶ added in v14.5.0
func (m *AllowedAgent) Validate() error
Validate checks the field values on AllowedAgent with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*AllowedAgent) ValidateAll ¶ added in v14.5.0
func (m *AllowedAgent) ValidateAll() error
ValidateAll checks the field values on AllowedAgent with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AllowedAgentMultiError, or nil if none found.
type AllowedAgentMultiError ¶ added in v14.5.0
type AllowedAgentMultiError []error
AllowedAgentMultiError is an error wrapping multiple validation errors returned by AllowedAgent.ValidateAll() if the designated constraints aren't met.
func (AllowedAgentMultiError) AllErrors ¶ added in v14.5.0
func (m AllowedAgentMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AllowedAgentMultiError) Error ¶ added in v14.5.0
func (m AllowedAgentMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AllowedAgentValidationError ¶ added in v14.5.0
type AllowedAgentValidationError struct {
// contains filtered or unexported fields
}
AllowedAgentValidationError is the validation error returned by AllowedAgent.Validate if the designated constraints aren't met.
func (AllowedAgentValidationError) Cause ¶ added in v14.5.0
func (e AllowedAgentValidationError) Cause() error
Cause function returns cause value.
func (AllowedAgentValidationError) Error ¶ added in v14.5.0
func (e AllowedAgentValidationError) Error() string
Error satisfies the builtin error interface
func (AllowedAgentValidationError) ErrorName ¶ added in v14.5.0
func (e AllowedAgentValidationError) ErrorName() string
ErrorName returns error name.
func (AllowedAgentValidationError) Field ¶ added in v14.5.0
func (e AllowedAgentValidationError) Field() string
Field function returns field value.
func (AllowedAgentValidationError) Key ¶ added in v14.5.0
func (e AllowedAgentValidationError) Key() bool
Key function returns key value.
func (AllowedAgentValidationError) Reason ¶ added in v14.5.0
func (e AllowedAgentValidationError) Reason() string
Reason function returns reason value.
type AllowedAgentsForJob ¶ added in v14.1.1
type AllowedAgentsForJob struct { AllowedAgents []*AllowedAgent `protobuf:"bytes,1,rep,name=allowed_agents,proto3" json:"allowed_agents,omitempty"` Job *Job `protobuf:"bytes,2,opt,name=job,proto3" json:"job,omitempty"` Pipeline *Pipeline `protobuf:"bytes,3,opt,name=pipeline,proto3" json:"pipeline,omitempty"` Project *Project `protobuf:"bytes,4,opt,name=project,proto3" json:"project,omitempty"` User *User `protobuf:"bytes,5,opt,name=user,proto3" json:"user,omitempty"` Environment *Environment `protobuf:"bytes,6,opt,name=environment,proto3" json:"environment,omitempty"` // contains filtered or unexported fields }
func GetAllowedAgentsForJob ¶ added in v14.1.1
func GetAllowedAgentsForJob(ctx context.Context, client gitlab.ClientInterface, jobToken string, opts ...gitlab.DoOption) (*AllowedAgentsForJob, error)
func (*AllowedAgentsForJob) Descriptor
deprecated
added in
v14.3.0
func (*AllowedAgentsForJob) Descriptor() ([]byte, []int)
Deprecated: Use AllowedAgentsForJob.ProtoReflect.Descriptor instead.
func (*AllowedAgentsForJob) GetAllowedAgents ¶ added in v14.3.0
func (x *AllowedAgentsForJob) GetAllowedAgents() []*AllowedAgent
func (*AllowedAgentsForJob) GetEnvironment ¶ added in v14.5.0
func (x *AllowedAgentsForJob) GetEnvironment() *Environment
func (*AllowedAgentsForJob) GetJob ¶ added in v14.3.0
func (x *AllowedAgentsForJob) GetJob() *Job
func (*AllowedAgentsForJob) GetPipeline ¶ added in v14.3.0
func (x *AllowedAgentsForJob) GetPipeline() *Pipeline
func (*AllowedAgentsForJob) GetProject ¶ added in v14.3.0
func (x *AllowedAgentsForJob) GetProject() *Project
func (*AllowedAgentsForJob) GetUser ¶ added in v14.3.0
func (x *AllowedAgentsForJob) GetUser() *User
func (*AllowedAgentsForJob) ProtoMessage ¶ added in v14.3.0
func (*AllowedAgentsForJob) ProtoMessage()
func (*AllowedAgentsForJob) ProtoReflect ¶ added in v14.3.0
func (x *AllowedAgentsForJob) ProtoReflect() protoreflect.Message
func (*AllowedAgentsForJob) Reset ¶ added in v14.3.0
func (x *AllowedAgentsForJob) Reset()
func (*AllowedAgentsForJob) String ¶ added in v14.3.0
func (x *AllowedAgentsForJob) String() string
func (*AllowedAgentsForJob) Validate ¶ added in v14.5.0
func (m *AllowedAgentsForJob) Validate() error
Validate checks the field values on AllowedAgentsForJob with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*AllowedAgentsForJob) ValidateAll ¶ added in v14.5.0
func (m *AllowedAgentsForJob) ValidateAll() error
ValidateAll checks the field values on AllowedAgentsForJob with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AllowedAgentsForJobMultiError, or nil if none found.
type AllowedAgentsForJobMultiError ¶ added in v14.5.0
type AllowedAgentsForJobMultiError []error
AllowedAgentsForJobMultiError is an error wrapping multiple validation errors returned by AllowedAgentsForJob.ValidateAll() if the designated constraints aren't met.
func (AllowedAgentsForJobMultiError) AllErrors ¶ added in v14.5.0
func (m AllowedAgentsForJobMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AllowedAgentsForJobMultiError) Error ¶ added in v14.5.0
func (m AllowedAgentsForJobMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AllowedAgentsForJobValidationError ¶ added in v14.5.0
type AllowedAgentsForJobValidationError struct {
// contains filtered or unexported fields
}
AllowedAgentsForJobValidationError is the validation error returned by AllowedAgentsForJob.Validate if the designated constraints aren't met.
func (AllowedAgentsForJobValidationError) Cause ¶ added in v14.5.0
func (e AllowedAgentsForJobValidationError) Cause() error
Cause function returns cause value.
func (AllowedAgentsForJobValidationError) Error ¶ added in v14.5.0
func (e AllowedAgentsForJobValidationError) Error() string
Error satisfies the builtin error interface
func (AllowedAgentsForJobValidationError) ErrorName ¶ added in v14.5.0
func (e AllowedAgentsForJobValidationError) ErrorName() string
ErrorName returns error name.
func (AllowedAgentsForJobValidationError) Field ¶ added in v14.5.0
func (e AllowedAgentsForJobValidationError) Field() string
Field function returns field value.
func (AllowedAgentsForJobValidationError) Key ¶ added in v14.5.0
func (e AllowedAgentsForJobValidationError) Key() bool
Key function returns key value.
func (AllowedAgentsForJobValidationError) Reason ¶ added in v14.5.0
func (e AllowedAgentsForJobValidationError) Reason() string
Reason function returns reason value.
type ConfigProject ¶ added in v14.1.1
type ConfigProject struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*ConfigProject) Descriptor
deprecated
added in
v14.3.0
func (*ConfigProject) Descriptor() ([]byte, []int)
Deprecated: Use ConfigProject.ProtoReflect.Descriptor instead.
func (*ConfigProject) GetId ¶ added in v14.3.0
func (x *ConfigProject) GetId() int64
func (*ConfigProject) ProtoMessage ¶ added in v14.3.0
func (*ConfigProject) ProtoMessage()
func (*ConfigProject) ProtoReflect ¶ added in v14.3.0
func (x *ConfigProject) ProtoReflect() protoreflect.Message
func (*ConfigProject) Reset ¶ added in v14.3.0
func (x *ConfigProject) Reset()
func (*ConfigProject) String ¶ added in v14.3.0
func (x *ConfigProject) String() string
func (*ConfigProject) Validate ¶ added in v14.5.0
func (m *ConfigProject) Validate() error
Validate checks the field values on ConfigProject with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ConfigProject) ValidateAll ¶ added in v14.5.0
func (m *ConfigProject) ValidateAll() error
ValidateAll checks the field values on ConfigProject with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ConfigProjectMultiError, or nil if none found.
type ConfigProjectMultiError ¶ added in v14.5.0
type ConfigProjectMultiError []error
ConfigProjectMultiError is an error wrapping multiple validation errors returned by ConfigProject.ValidateAll() if the designated constraints aren't met.
func (ConfigProjectMultiError) AllErrors ¶ added in v14.5.0
func (m ConfigProjectMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ConfigProjectMultiError) Error ¶ added in v14.5.0
func (m ConfigProjectMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ConfigProjectValidationError ¶ added in v14.5.0
type ConfigProjectValidationError struct {
// contains filtered or unexported fields
}
ConfigProjectValidationError is the validation error returned by ConfigProject.Validate if the designated constraints aren't met.
func (ConfigProjectValidationError) Cause ¶ added in v14.5.0
func (e ConfigProjectValidationError) Cause() error
Cause function returns cause value.
func (ConfigProjectValidationError) Error ¶ added in v14.5.0
func (e ConfigProjectValidationError) Error() string
Error satisfies the builtin error interface
func (ConfigProjectValidationError) ErrorName ¶ added in v14.5.0
func (e ConfigProjectValidationError) ErrorName() string
ErrorName returns error name.
func (ConfigProjectValidationError) Field ¶ added in v14.5.0
func (e ConfigProjectValidationError) Field() string
Field function returns field value.
func (ConfigProjectValidationError) Key ¶ added in v14.5.0
func (e ConfigProjectValidationError) Key() bool
Key function returns key value.
func (ConfigProjectValidationError) Reason ¶ added in v14.5.0
func (e ConfigProjectValidationError) Reason() string
Reason function returns reason value.
type Configuration ¶ added in v14.3.0
type Configuration struct { DefaultNamespace string `protobuf:"bytes,1,opt,name=default_namespace,proto3" json:"default_namespace,omitempty"` AccessAs *agentcfg.CiAccessAsCF `protobuf:"bytes,2,opt,name=access_as,proto3" json:"access_as,omitempty"` // contains filtered or unexported fields }
func (*Configuration) Descriptor
deprecated
added in
v14.3.0
func (*Configuration) Descriptor() ([]byte, []int)
Deprecated: Use Configuration.ProtoReflect.Descriptor instead.
func (*Configuration) GetAccessAs ¶ added in v14.3.0
func (x *Configuration) GetAccessAs() *agentcfg.CiAccessAsCF
func (*Configuration) GetDefaultNamespace ¶ added in v14.3.0
func (x *Configuration) GetDefaultNamespace() string
func (*Configuration) ProtoMessage ¶ added in v14.3.0
func (*Configuration) ProtoMessage()
func (*Configuration) ProtoReflect ¶ added in v14.3.0
func (x *Configuration) ProtoReflect() protoreflect.Message
func (*Configuration) Reset ¶ added in v14.3.0
func (x *Configuration) Reset()
func (*Configuration) String ¶ added in v14.3.0
func (x *Configuration) String() string
func (*Configuration) Validate ¶ added in v14.5.0
func (m *Configuration) Validate() error
Validate checks the field values on Configuration with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Configuration) ValidateAll ¶ added in v14.5.0
func (m *Configuration) ValidateAll() error
ValidateAll checks the field values on Configuration with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ConfigurationMultiError, or nil if none found.
type ConfigurationMultiError ¶ added in v14.5.0
type ConfigurationMultiError []error
ConfigurationMultiError is an error wrapping multiple validation errors returned by Configuration.ValidateAll() if the designated constraints aren't met.
func (ConfigurationMultiError) AllErrors ¶ added in v14.5.0
func (m ConfigurationMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ConfigurationMultiError) Error ¶ added in v14.5.0
func (m ConfigurationMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ConfigurationValidationError ¶ added in v14.5.0
type ConfigurationValidationError struct {
// contains filtered or unexported fields
}
ConfigurationValidationError is the validation error returned by Configuration.Validate if the designated constraints aren't met.
func (ConfigurationValidationError) Cause ¶ added in v14.5.0
func (e ConfigurationValidationError) Cause() error
Cause function returns cause value.
func (ConfigurationValidationError) Error ¶ added in v14.5.0
func (e ConfigurationValidationError) Error() string
Error satisfies the builtin error interface
func (ConfigurationValidationError) ErrorName ¶ added in v14.5.0
func (e ConfigurationValidationError) ErrorName() string
ErrorName returns error name.
func (ConfigurationValidationError) Field ¶ added in v14.5.0
func (e ConfigurationValidationError) Field() string
Field function returns field value.
func (ConfigurationValidationError) Key ¶ added in v14.5.0
func (e ConfigurationValidationError) Key() bool
Key function returns key value.
func (ConfigurationValidationError) Reason ¶ added in v14.5.0
func (e ConfigurationValidationError) Reason() string
Reason function returns reason value.
type Environment ¶ added in v14.5.0
type Environment struct { Slug string `protobuf:"bytes,1,opt,name=slug,proto3" json:"slug,omitempty"` // contains filtered or unexported fields }
func (*Environment) Descriptor
deprecated
added in
v14.5.0
func (*Environment) Descriptor() ([]byte, []int)
Deprecated: Use Environment.ProtoReflect.Descriptor instead.
func (*Environment) GetSlug ¶ added in v14.5.0
func (x *Environment) GetSlug() string
func (*Environment) ProtoMessage ¶ added in v14.5.0
func (*Environment) ProtoMessage()
func (*Environment) ProtoReflect ¶ added in v14.5.0
func (x *Environment) ProtoReflect() protoreflect.Message
func (*Environment) Reset ¶ added in v14.5.0
func (x *Environment) Reset()
func (*Environment) String ¶ added in v14.5.0
func (x *Environment) String() string
func (*Environment) Validate ¶ added in v14.5.0
func (m *Environment) Validate() error
Validate checks the field values on Environment with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Environment) ValidateAll ¶ added in v14.5.0
func (m *Environment) ValidateAll() error
ValidateAll checks the field values on Environment with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in EnvironmentMultiError, or nil if none found.
type EnvironmentMultiError ¶ added in v14.5.0
type EnvironmentMultiError []error
EnvironmentMultiError is an error wrapping multiple validation errors returned by Environment.ValidateAll() if the designated constraints aren't met.
func (EnvironmentMultiError) AllErrors ¶ added in v14.5.0
func (m EnvironmentMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (EnvironmentMultiError) Error ¶ added in v14.5.0
func (m EnvironmentMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type EnvironmentValidationError ¶ added in v14.5.0
type EnvironmentValidationError struct {
// contains filtered or unexported fields
}
EnvironmentValidationError is the validation error returned by Environment.Validate if the designated constraints aren't met.
func (EnvironmentValidationError) Cause ¶ added in v14.5.0
func (e EnvironmentValidationError) Cause() error
Cause function returns cause value.
func (EnvironmentValidationError) Error ¶ added in v14.5.0
func (e EnvironmentValidationError) Error() string
Error satisfies the builtin error interface
func (EnvironmentValidationError) ErrorName ¶ added in v14.5.0
func (e EnvironmentValidationError) ErrorName() string
ErrorName returns error name.
func (EnvironmentValidationError) Field ¶ added in v14.5.0
func (e EnvironmentValidationError) Field() string
Field function returns field value.
func (EnvironmentValidationError) Key ¶ added in v14.5.0
func (e EnvironmentValidationError) Key() bool
Key function returns key value.
func (EnvironmentValidationError) Reason ¶ added in v14.5.0
func (e EnvironmentValidationError) Reason() string
Reason function returns reason value.
type Group ¶ added in v14.5.0
type Group struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*Group) Descriptor
deprecated
added in
v14.5.0
func (*Group) ProtoMessage ¶ added in v14.5.0
func (*Group) ProtoMessage()
func (*Group) ProtoReflect ¶ added in v14.5.0
func (x *Group) ProtoReflect() protoreflect.Message
func (*Group) Validate ¶ added in v14.5.0
Validate checks the field values on Group with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Group) ValidateAll ¶ added in v14.5.0
ValidateAll checks the field values on Group with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GroupMultiError, or nil if none found.
type GroupMultiError ¶ added in v14.5.0
type GroupMultiError []error
GroupMultiError is an error wrapping multiple validation errors returned by Group.ValidateAll() if the designated constraints aren't met.
func (GroupMultiError) AllErrors ¶ added in v14.5.0
func (m GroupMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GroupMultiError) Error ¶ added in v14.5.0
func (m GroupMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GroupValidationError ¶ added in v14.5.0
type GroupValidationError struct {
// contains filtered or unexported fields
}
GroupValidationError is the validation error returned by Group.Validate if the designated constraints aren't met.
func (GroupValidationError) Cause ¶ added in v14.5.0
func (e GroupValidationError) Cause() error
Cause function returns cause value.
func (GroupValidationError) Error ¶ added in v14.5.0
func (e GroupValidationError) Error() string
Error satisfies the builtin error interface
func (GroupValidationError) ErrorName ¶ added in v14.5.0
func (e GroupValidationError) ErrorName() string
ErrorName returns error name.
func (GroupValidationError) Field ¶ added in v14.5.0
func (e GroupValidationError) Field() string
Field function returns field value.
func (GroupValidationError) Key ¶ added in v14.5.0
func (e GroupValidationError) Key() bool
Key function returns key value.
func (GroupValidationError) Reason ¶ added in v14.5.0
func (e GroupValidationError) Reason() string
Reason function returns reason value.
type Job ¶ added in v14.1.1
type Job struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*Job) Descriptor
deprecated
added in
v14.3.0
func (*Job) ProtoMessage ¶ added in v14.3.0
func (*Job) ProtoMessage()
func (*Job) ProtoReflect ¶ added in v14.3.0
func (x *Job) ProtoReflect() protoreflect.Message
func (*Job) Validate ¶ added in v14.5.0
Validate checks the field values on Job with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Job) ValidateAll ¶ added in v14.5.0
ValidateAll checks the field values on Job with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in JobMultiError, or nil if none found.
type JobMultiError ¶ added in v14.5.0
type JobMultiError []error
JobMultiError is an error wrapping multiple validation errors returned by Job.ValidateAll() if the designated constraints aren't met.
func (JobMultiError) AllErrors ¶ added in v14.5.0
func (m JobMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (JobMultiError) Error ¶ added in v14.5.0
func (m JobMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type JobValidationError ¶ added in v14.5.0
type JobValidationError struct {
// contains filtered or unexported fields
}
JobValidationError is the validation error returned by Job.Validate if the designated constraints aren't met.
func (JobValidationError) Cause ¶ added in v14.5.0
func (e JobValidationError) Cause() error
Cause function returns cause value.
func (JobValidationError) Error ¶ added in v14.5.0
func (e JobValidationError) Error() string
Error satisfies the builtin error interface
func (JobValidationError) ErrorName ¶ added in v14.5.0
func (e JobValidationError) ErrorName() string
ErrorName returns error name.
func (JobValidationError) Field ¶ added in v14.5.0
func (e JobValidationError) Field() string
Field function returns field value.
func (JobValidationError) Key ¶ added in v14.5.0
func (e JobValidationError) Key() bool
Key function returns key value.
func (JobValidationError) Reason ¶ added in v14.5.0
func (e JobValidationError) Reason() string
Reason function returns reason value.
type Pipeline ¶ added in v14.1.1
type Pipeline struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*Pipeline) Descriptor
deprecated
added in
v14.3.0
func (*Pipeline) ProtoMessage ¶ added in v14.3.0
func (*Pipeline) ProtoMessage()
func (*Pipeline) ProtoReflect ¶ added in v14.3.0
func (x *Pipeline) ProtoReflect() protoreflect.Message
func (*Pipeline) Validate ¶ added in v14.5.0
Validate checks the field values on Pipeline with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Pipeline) ValidateAll ¶ added in v14.5.0
ValidateAll checks the field values on Pipeline with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PipelineMultiError, or nil if none found.
type PipelineMultiError ¶ added in v14.5.0
type PipelineMultiError []error
PipelineMultiError is an error wrapping multiple validation errors returned by Pipeline.ValidateAll() if the designated constraints aren't met.
func (PipelineMultiError) AllErrors ¶ added in v14.5.0
func (m PipelineMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PipelineMultiError) Error ¶ added in v14.5.0
func (m PipelineMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PipelineValidationError ¶ added in v14.5.0
type PipelineValidationError struct {
// contains filtered or unexported fields
}
PipelineValidationError is the validation error returned by Pipeline.Validate if the designated constraints aren't met.
func (PipelineValidationError) Cause ¶ added in v14.5.0
func (e PipelineValidationError) Cause() error
Cause function returns cause value.
func (PipelineValidationError) Error ¶ added in v14.5.0
func (e PipelineValidationError) Error() string
Error satisfies the builtin error interface
func (PipelineValidationError) ErrorName ¶ added in v14.5.0
func (e PipelineValidationError) ErrorName() string
ErrorName returns error name.
func (PipelineValidationError) Field ¶ added in v14.5.0
func (e PipelineValidationError) Field() string
Field function returns field value.
func (PipelineValidationError) Key ¶ added in v14.5.0
func (e PipelineValidationError) Key() bool
Key function returns key value.
func (PipelineValidationError) Reason ¶ added in v14.5.0
func (e PipelineValidationError) Reason() string
Reason function returns reason value.
type Project ¶ added in v14.1.1
type Project struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Groups []*Group `protobuf:"bytes,2,rep,name=groups,proto3" json:"groups,omitempty"` // contains filtered or unexported fields }
func (*Project) Descriptor
deprecated
added in
v14.3.0
func (*Project) ProtoMessage ¶ added in v14.3.0
func (*Project) ProtoMessage()
func (*Project) ProtoReflect ¶ added in v14.3.0
func (x *Project) ProtoReflect() protoreflect.Message
func (*Project) Validate ¶ added in v14.5.0
Validate checks the field values on Project with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Project) ValidateAll ¶ added in v14.5.0
ValidateAll checks the field values on Project with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ProjectMultiError, or nil if none found.
type ProjectInfoResponse ¶ added in v14.1.1
type ProjectInfoResponse struct { ProjectId int64 `json:"project_id"` GitalyInfo gitlab.GitalyInfo `json:"gitaly_info"` GitalyRepository gitlab.GitalyRepository `json:"gitaly_repository"` }
type ProjectMultiError ¶ added in v14.5.0
type ProjectMultiError []error
ProjectMultiError is an error wrapping multiple validation errors returned by Project.ValidateAll() if the designated constraints aren't met.
func (ProjectMultiError) AllErrors ¶ added in v14.5.0
func (m ProjectMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ProjectMultiError) Error ¶ added in v14.5.0
func (m ProjectMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ProjectValidationError ¶ added in v14.5.0
type ProjectValidationError struct {
// contains filtered or unexported fields
}
ProjectValidationError is the validation error returned by Project.Validate if the designated constraints aren't met.
func (ProjectValidationError) Cause ¶ added in v14.5.0
func (e ProjectValidationError) Cause() error
Cause function returns cause value.
func (ProjectValidationError) Error ¶ added in v14.5.0
func (e ProjectValidationError) Error() string
Error satisfies the builtin error interface
func (ProjectValidationError) ErrorName ¶ added in v14.5.0
func (e ProjectValidationError) ErrorName() string
ErrorName returns error name.
func (ProjectValidationError) Field ¶ added in v14.5.0
func (e ProjectValidationError) Field() string
Field function returns field value.
func (ProjectValidationError) Key ¶ added in v14.5.0
func (e ProjectValidationError) Key() bool
Key function returns key value.
func (ProjectValidationError) Reason ¶ added in v14.5.0
func (e ProjectValidationError) Reason() string
Reason function returns reason value.
type User ¶ added in v14.1.1
type User struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` // contains filtered or unexported fields }
func (*User) Descriptor
deprecated
added in
v14.3.0
func (*User) GetUsername ¶ added in v14.3.0
func (*User) ProtoMessage ¶ added in v14.3.0
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶ added in v14.3.0
func (x *User) ProtoReflect() protoreflect.Message
func (*User) Validate ¶ added in v14.5.0
Validate checks the field values on User with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*User) ValidateAll ¶ added in v14.5.0
ValidateAll checks the field values on User with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UserMultiError, or nil if none found.
type UserMultiError ¶ added in v14.5.0
type UserMultiError []error
UserMultiError is an error wrapping multiple validation errors returned by User.ValidateAll() if the designated constraints aren't met.
func (UserMultiError) AllErrors ¶ added in v14.5.0
func (m UserMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UserMultiError) Error ¶ added in v14.5.0
func (m UserMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UserValidationError ¶ added in v14.5.0
type UserValidationError struct {
// contains filtered or unexported fields
}
UserValidationError is the validation error returned by User.Validate if the designated constraints aren't met.
func (UserValidationError) Cause ¶ added in v14.5.0
func (e UserValidationError) Cause() error
Cause function returns cause value.
func (UserValidationError) Error ¶ added in v14.5.0
func (e UserValidationError) Error() string
Error satisfies the builtin error interface
func (UserValidationError) ErrorName ¶ added in v14.5.0
func (e UserValidationError) ErrorName() string
ErrorName returns error name.
func (UserValidationError) Field ¶ added in v14.5.0
func (e UserValidationError) Field() string
Field function returns field value.
func (UserValidationError) Key ¶ added in v14.5.0
func (e UserValidationError) Key() bool
Key function returns key value.
func (UserValidationError) Reason ¶ added in v14.5.0
func (e UserValidationError) Reason() string
Reason function returns reason value.