api

package
v15.11.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2023 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProjectInfoApiPath  = "/api/v4/internal/kubernetes/project_info"
	ProjectIdQueryParam = "id"
)
View Source
const (
	AgentConfigurationApiPath = "/api/v4/internal/kubernetes/agent_configuration"
)
View Source
const (
	AgentInfoApiPath = "/api/v4/internal/kubernetes/agent_info"
)
View Source
const (
	AllowedAgentsApiPath = "/api/v4/job/allowed_agents"
)
View Source
const (
	AuthorizeProxyUserApiPath = "/api/v4/internal/kubernetes/authorize_proxy_user"
)
View Source
const (
	ModuleRequestApiPath = "/api/v4/internal/kubernetes/modules/"
)
View Source
const (
	UsagePingApiPath = "/api/v4/internal/kubernetes/usage_metrics"
)

Variables

View Source
var File_internal_gitlab_api_api_proto protoreflect.FileDescriptor

Functions

func GetAgentInfo

func GetAgentInfo(ctx context.Context, client gitlab.ClientInterface, agentToken api.AgentToken, opts ...gitlab.DoOption) (*api.AgentInfo, error)

func GetProjectInfo

func GetProjectInfo(ctx context.Context, client gitlab.ClientInterface, agentToken api.AgentToken, projectId string, opts ...gitlab.DoOption) (*api.ProjectInfo, error)

func IsCacheableError

func IsCacheableError(err error) bool

IsCacheableError checks if an error is cacheable.

func MakeModuleRequest

func MakeModuleRequest(ctx context.Context, client gitlab.ClientInterface, agentToken api.AgentToken,
	moduleName, method, urlPath string, query url.Values, header http.Header, body io.Reader,
	opts ...gitlab.DoOption) (*http.Response, error)

func PostAgentConfiguration

func PostAgentConfiguration(ctx context.Context, client gitlab.ClientInterface, agentId int64,
	config *agentcfg.ConfigurationFile, opts ...gitlab.DoOption) error

func SendUsagePing

func SendUsagePing(ctx context.Context, client gitlab.ClientInterface, data UsagePingData, opts ...gitlab.DoOption) error

Types

type AccessAsAgentAuthorization added in v15.10.0

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

func (*AccessAsAgentAuthorization) Descriptor deprecated added in v15.10.0

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

Deprecated: Use AccessAsAgentAuthorization.ProtoReflect.Descriptor instead.

func (*AccessAsAgentAuthorization) ProtoMessage added in v15.10.0

func (*AccessAsAgentAuthorization) ProtoMessage()

func (*AccessAsAgentAuthorization) ProtoReflect added in v15.10.0

func (*AccessAsAgentAuthorization) Reset added in v15.10.0

func (x *AccessAsAgentAuthorization) Reset()

func (*AccessAsAgentAuthorization) String added in v15.10.0

func (x *AccessAsAgentAuthorization) String() string

func (*AccessAsAgentAuthorization) Validate added in v15.10.0

func (m *AccessAsAgentAuthorization) Validate() error

Validate checks the field values on AccessAsAgentAuthorization 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 (*AccessAsAgentAuthorization) ValidateAll added in v15.10.0

func (m *AccessAsAgentAuthorization) ValidateAll() error

ValidateAll checks the field values on AccessAsAgentAuthorization 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 AccessAsAgentAuthorizationMultiError, or nil if none found.

type AccessAsAgentAuthorizationMultiError added in v15.10.0

type AccessAsAgentAuthorizationMultiError []error

AccessAsAgentAuthorizationMultiError is an error wrapping multiple validation errors returned by AccessAsAgentAuthorization.ValidateAll() if the designated constraints aren't met.

func (AccessAsAgentAuthorizationMultiError) AllErrors added in v15.10.0

AllErrors returns a list of validation violation errors.

func (AccessAsAgentAuthorizationMultiError) Error added in v15.10.0

Error returns a concatenation of all the error messages it wraps.

type AccessAsAgentAuthorizationValidationError added in v15.10.0

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

AccessAsAgentAuthorizationValidationError is the validation error returned by AccessAsAgentAuthorization.Validate if the designated constraints aren't met.

func (AccessAsAgentAuthorizationValidationError) Cause added in v15.10.0

Cause function returns cause value.

func (AccessAsAgentAuthorizationValidationError) Error added in v15.10.0

Error satisfies the builtin error interface

func (AccessAsAgentAuthorizationValidationError) ErrorName added in v15.10.0

ErrorName returns error name.

func (AccessAsAgentAuthorizationValidationError) Field added in v15.10.0

Field function returns field value.

func (AccessAsAgentAuthorizationValidationError) Key added in v15.10.0

Key function returns key value.

func (AccessAsAgentAuthorizationValidationError) Reason added in v15.10.0

Reason function returns reason value.

type AccessAsProxyAuthorization added in v15.10.0

type AccessAsProxyAuthorization struct {

	// Types that are assignable to AccessAs:
	//
	//	*AccessAsProxyAuthorization_Agent
	//	*AccessAsProxyAuthorization_User
	AccessAs isAccessAsProxyAuthorization_AccessAs `protobuf_oneof:"access_as"`
	// contains filtered or unexported fields
}

func (*AccessAsProxyAuthorization) Descriptor deprecated added in v15.10.0

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

Deprecated: Use AccessAsProxyAuthorization.ProtoReflect.Descriptor instead.

func (*AccessAsProxyAuthorization) GetAccessAs added in v15.10.0

func (m *AccessAsProxyAuthorization) GetAccessAs() isAccessAsProxyAuthorization_AccessAs

func (*AccessAsProxyAuthorization) GetAgent added in v15.10.0

func (*AccessAsProxyAuthorization) GetUser added in v15.10.0

func (*AccessAsProxyAuthorization) ProtoMessage added in v15.10.0

func (*AccessAsProxyAuthorization) ProtoMessage()

func (*AccessAsProxyAuthorization) ProtoReflect added in v15.10.0

func (*AccessAsProxyAuthorization) Reset added in v15.10.0

func (x *AccessAsProxyAuthorization) Reset()

func (*AccessAsProxyAuthorization) String added in v15.10.0

func (x *AccessAsProxyAuthorization) String() string

func (*AccessAsProxyAuthorization) Validate added in v15.10.0

func (m *AccessAsProxyAuthorization) Validate() error

Validate checks the field values on AccessAsProxyAuthorization 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 (*AccessAsProxyAuthorization) ValidateAll added in v15.10.0

func (m *AccessAsProxyAuthorization) ValidateAll() error

ValidateAll checks the field values on AccessAsProxyAuthorization 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 AccessAsProxyAuthorizationMultiError, or nil if none found.

type AccessAsProxyAuthorizationMultiError added in v15.10.0

type AccessAsProxyAuthorizationMultiError []error

AccessAsProxyAuthorizationMultiError is an error wrapping multiple validation errors returned by AccessAsProxyAuthorization.ValidateAll() if the designated constraints aren't met.

func (AccessAsProxyAuthorizationMultiError) AllErrors added in v15.10.0

AllErrors returns a list of validation violation errors.

func (AccessAsProxyAuthorizationMultiError) Error added in v15.10.0

Error returns a concatenation of all the error messages it wraps.

type AccessAsProxyAuthorizationValidationError added in v15.10.0

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

AccessAsProxyAuthorizationValidationError is the validation error returned by AccessAsProxyAuthorization.Validate if the designated constraints aren't met.

func (AccessAsProxyAuthorizationValidationError) Cause added in v15.10.0

Cause function returns cause value.

func (AccessAsProxyAuthorizationValidationError) Error added in v15.10.0

Error satisfies the builtin error interface

func (AccessAsProxyAuthorizationValidationError) ErrorName added in v15.10.0

ErrorName returns error name.

func (AccessAsProxyAuthorizationValidationError) Field added in v15.10.0

Field function returns field value.

func (AccessAsProxyAuthorizationValidationError) Key added in v15.10.0

Key function returns key value.

func (AccessAsProxyAuthorizationValidationError) Reason added in v15.10.0

Reason function returns reason value.

type AccessAsProxyAuthorization_Agent added in v15.10.0

type AccessAsProxyAuthorization_Agent struct {
	Agent *AccessAsAgentAuthorization `protobuf:"bytes,1,opt,name=agent,proto3,oneof"`
}

type AccessAsProxyAuthorization_User added in v15.10.0

type AccessAsProxyAuthorization_User struct {
	User *AccessAsUserAuthorization `protobuf:"bytes,2,opt,name=user,proto3,oneof"`
}

type AccessAsUserAuthorization added in v15.10.0

type AccessAsUserAuthorization struct {
	Projects []*ProjectAccessCF `protobuf:"bytes,1,rep,name=projects,proto3" json:"projects,omitempty"`
	Groups   []*GroupAccessCF   `protobuf:"bytes,2,rep,name=groups,proto3" json:"groups,omitempty"`
	// contains filtered or unexported fields
}

func (*AccessAsUserAuthorization) Descriptor deprecated added in v15.10.0

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

Deprecated: Use AccessAsUserAuthorization.ProtoReflect.Descriptor instead.

func (*AccessAsUserAuthorization) GetGroups added in v15.10.0

func (x *AccessAsUserAuthorization) GetGroups() []*GroupAccessCF

func (*AccessAsUserAuthorization) GetProjects added in v15.10.0

func (x *AccessAsUserAuthorization) GetProjects() []*ProjectAccessCF

func (*AccessAsUserAuthorization) ProtoMessage added in v15.10.0

func (*AccessAsUserAuthorization) ProtoMessage()

func (*AccessAsUserAuthorization) ProtoReflect added in v15.10.0

func (*AccessAsUserAuthorization) Reset added in v15.10.0

func (x *AccessAsUserAuthorization) Reset()

func (*AccessAsUserAuthorization) String added in v15.10.0

func (x *AccessAsUserAuthorization) String() string

func (*AccessAsUserAuthorization) Validate added in v15.10.0

func (m *AccessAsUserAuthorization) Validate() error

Validate checks the field values on AccessAsUserAuthorization 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 (*AccessAsUserAuthorization) ValidateAll added in v15.10.0

func (m *AccessAsUserAuthorization) ValidateAll() error

ValidateAll checks the field values on AccessAsUserAuthorization 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 AccessAsUserAuthorizationMultiError, or nil if none found.

type AccessAsUserAuthorizationMultiError added in v15.10.0

type AccessAsUserAuthorizationMultiError []error

AccessAsUserAuthorizationMultiError is an error wrapping multiple validation errors returned by AccessAsUserAuthorization.ValidateAll() if the designated constraints aren't met.

func (AccessAsUserAuthorizationMultiError) AllErrors added in v15.10.0

AllErrors returns a list of validation violation errors.

func (AccessAsUserAuthorizationMultiError) Error added in v15.10.0

Error returns a concatenation of all the error messages it wraps.

type AccessAsUserAuthorizationValidationError added in v15.10.0

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

AccessAsUserAuthorizationValidationError is the validation error returned by AccessAsUserAuthorization.Validate if the designated constraints aren't met.

func (AccessAsUserAuthorizationValidationError) Cause added in v15.10.0

Cause function returns cause value.

func (AccessAsUserAuthorizationValidationError) Error added in v15.10.0

Error satisfies the builtin error interface

func (AccessAsUserAuthorizationValidationError) ErrorName added in v15.10.0

ErrorName returns error name.

func (AccessAsUserAuthorizationValidationError) Field added in v15.10.0

Field function returns field value.

func (AccessAsUserAuthorizationValidationError) Key added in v15.10.0

Key function returns key value.

func (AccessAsUserAuthorizationValidationError) Reason added in v15.10.0

Reason function returns reason value.

type AgentConfigurationRequest added in v15.10.0

type AgentConfigurationRequest struct {
	AgentId     int64                       `protobuf:"varint,1,opt,name=agent_id,proto3" json:"agent_id,omitempty"`
	AgentConfig *agentcfg.ConfigurationFile `protobuf:"bytes,2,opt,name=agent_config,proto3" json:"agent_config,omitempty"`
	// contains filtered or unexported fields
}

func (*AgentConfigurationRequest) Descriptor deprecated added in v15.10.0

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

Deprecated: Use AgentConfigurationRequest.ProtoReflect.Descriptor instead.

func (*AgentConfigurationRequest) GetAgentConfig added in v15.10.0

func (*AgentConfigurationRequest) GetAgentId added in v15.10.0

func (x *AgentConfigurationRequest) GetAgentId() int64

func (*AgentConfigurationRequest) ProtoMessage added in v15.10.0

func (*AgentConfigurationRequest) ProtoMessage()

func (*AgentConfigurationRequest) ProtoReflect added in v15.10.0

func (*AgentConfigurationRequest) Reset added in v15.10.0

func (x *AgentConfigurationRequest) Reset()

func (*AgentConfigurationRequest) String added in v15.10.0

func (x *AgentConfigurationRequest) String() string

func (*AgentConfigurationRequest) Validate added in v15.10.0

func (m *AgentConfigurationRequest) Validate() error

Validate checks the field values on AgentConfigurationRequest 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 (*AgentConfigurationRequest) ValidateAll added in v15.10.0

func (m *AgentConfigurationRequest) ValidateAll() error

ValidateAll checks the field values on AgentConfigurationRequest 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 AgentConfigurationRequestMultiError, or nil if none found.

type AgentConfigurationRequestMultiError added in v15.10.0

type AgentConfigurationRequestMultiError []error

AgentConfigurationRequestMultiError is an error wrapping multiple validation errors returned by AgentConfigurationRequest.ValidateAll() if the designated constraints aren't met.

func (AgentConfigurationRequestMultiError) AllErrors added in v15.10.0

AllErrors returns a list of validation violation errors.

func (AgentConfigurationRequestMultiError) Error added in v15.10.0

Error returns a concatenation of all the error messages it wraps.

type AgentConfigurationRequestValidationError added in v15.10.0

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

AgentConfigurationRequestValidationError is the validation error returned by AgentConfigurationRequest.Validate if the designated constraints aren't met.

func (AgentConfigurationRequestValidationError) Cause added in v15.10.0

Cause function returns cause value.

func (AgentConfigurationRequestValidationError) Error added in v15.10.0

Error satisfies the builtin error interface

func (AgentConfigurationRequestValidationError) ErrorName added in v15.10.0

ErrorName returns error name.

func (AgentConfigurationRequestValidationError) Field added in v15.10.0

Field function returns field value.

func (AgentConfigurationRequestValidationError) Key added in v15.10.0

Key function returns key value.

func (AgentConfigurationRequestValidationError) Reason added in v15.10.0

Reason function returns reason value.

type AllowedAgent

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

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

Deprecated: Use AllowedAgent.ProtoReflect.Descriptor instead.

func (*AllowedAgent) GetConfigProject

func (x *AllowedAgent) GetConfigProject() *ConfigProject

func (*AllowedAgent) GetConfiguration

func (x *AllowedAgent) GetConfiguration() *Configuration

func (*AllowedAgent) GetId

func (x *AllowedAgent) GetId() int64

func (*AllowedAgent) ProtoMessage

func (*AllowedAgent) ProtoMessage()

func (*AllowedAgent) ProtoReflect

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

func (*AllowedAgent) Reset

func (x *AllowedAgent) Reset()

func (*AllowedAgent) String

func (x *AllowedAgent) String() string

func (*AllowedAgent) Validate

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

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

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

func (m AllowedAgentMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AllowedAgentMultiError) Error

func (m AllowedAgentMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type AllowedAgentValidationError

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

Cause function returns cause value.

func (AllowedAgentValidationError) Error

Error satisfies the builtin error interface

func (AllowedAgentValidationError) ErrorName

func (e AllowedAgentValidationError) ErrorName() string

ErrorName returns error name.

func (AllowedAgentValidationError) Field

Field function returns field value.

func (AllowedAgentValidationError) Key

Key function returns key value.

func (AllowedAgentValidationError) Reason

Reason function returns reason value.

type AllowedAgentsForJob

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

func GetAllowedAgentsForJob(ctx context.Context, client gitlab.ClientInterface, jobToken string, opts ...gitlab.DoOption) (*AllowedAgentsForJob, error)

func (*AllowedAgentsForJob) Descriptor deprecated

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

Deprecated: Use AllowedAgentsForJob.ProtoReflect.Descriptor instead.

func (*AllowedAgentsForJob) GetAllowedAgents

func (x *AllowedAgentsForJob) GetAllowedAgents() []*AllowedAgent

func (*AllowedAgentsForJob) GetEnvironment

func (x *AllowedAgentsForJob) GetEnvironment() *Environment

func (*AllowedAgentsForJob) GetJob

func (x *AllowedAgentsForJob) GetJob() *Job

func (*AllowedAgentsForJob) GetPipeline

func (x *AllowedAgentsForJob) GetPipeline() *Pipeline

func (*AllowedAgentsForJob) GetProject

func (x *AllowedAgentsForJob) GetProject() *Project

func (*AllowedAgentsForJob) GetUser

func (x *AllowedAgentsForJob) GetUser() *User

func (*AllowedAgentsForJob) ProtoMessage

func (*AllowedAgentsForJob) ProtoMessage()

func (*AllowedAgentsForJob) ProtoReflect

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

func (*AllowedAgentsForJob) Reset

func (x *AllowedAgentsForJob) Reset()

func (*AllowedAgentsForJob) String

func (x *AllowedAgentsForJob) String() string

func (*AllowedAgentsForJob) Validate

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

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

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

func (m AllowedAgentsForJobMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AllowedAgentsForJobMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type AllowedAgentsForJobValidationError

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

Cause function returns cause value.

func (AllowedAgentsForJobValidationError) Error

Error satisfies the builtin error interface

func (AllowedAgentsForJobValidationError) ErrorName

ErrorName returns error name.

func (AllowedAgentsForJobValidationError) Field

Field function returns field value.

func (AllowedAgentsForJobValidationError) Key

Key function returns key value.

func (AllowedAgentsForJobValidationError) Reason

Reason function returns reason value.

type AuthorizeProxyUserRequest added in v15.10.0

type AuthorizeProxyUserRequest struct {
	AgentId    int64  `protobuf:"varint,1,opt,name=agent_id,proto3" json:"agent_id,omitempty"`
	AccessType string `protobuf:"bytes,2,opt,name=access_type,proto3" json:"access_type,omitempty"`
	AccessKey  string `protobuf:"bytes,3,opt,name=access_key,proto3" json:"access_key,omitempty"`
	CsrfToken  string `protobuf:"bytes,4,opt,name=csrf_token,proto3" json:"csrf_token,omitempty"`
	// contains filtered or unexported fields
}

func (*AuthorizeProxyUserRequest) Descriptor deprecated added in v15.10.0

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

Deprecated: Use AuthorizeProxyUserRequest.ProtoReflect.Descriptor instead.

func (*AuthorizeProxyUserRequest) GetAccessKey added in v15.10.0

func (x *AuthorizeProxyUserRequest) GetAccessKey() string

func (*AuthorizeProxyUserRequest) GetAccessType added in v15.10.0

func (x *AuthorizeProxyUserRequest) GetAccessType() string

func (*AuthorizeProxyUserRequest) GetAgentId added in v15.10.0

func (x *AuthorizeProxyUserRequest) GetAgentId() int64

func (*AuthorizeProxyUserRequest) GetCsrfToken added in v15.10.0

func (x *AuthorizeProxyUserRequest) GetCsrfToken() string

func (*AuthorizeProxyUserRequest) ProtoMessage added in v15.10.0

func (*AuthorizeProxyUserRequest) ProtoMessage()

func (*AuthorizeProxyUserRequest) ProtoReflect added in v15.10.0

func (*AuthorizeProxyUserRequest) Reset added in v15.10.0

func (x *AuthorizeProxyUserRequest) Reset()

func (*AuthorizeProxyUserRequest) String added in v15.10.0

func (x *AuthorizeProxyUserRequest) String() string

func (*AuthorizeProxyUserRequest) Validate added in v15.10.0

func (m *AuthorizeProxyUserRequest) Validate() error

Validate checks the field values on AuthorizeProxyUserRequest 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 (*AuthorizeProxyUserRequest) ValidateAll added in v15.10.0

func (m *AuthorizeProxyUserRequest) ValidateAll() error

ValidateAll checks the field values on AuthorizeProxyUserRequest 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 AuthorizeProxyUserRequestMultiError, or nil if none found.

type AuthorizeProxyUserRequestMultiError added in v15.10.0

type AuthorizeProxyUserRequestMultiError []error

AuthorizeProxyUserRequestMultiError is an error wrapping multiple validation errors returned by AuthorizeProxyUserRequest.ValidateAll() if the designated constraints aren't met.

func (AuthorizeProxyUserRequestMultiError) AllErrors added in v15.10.0

AllErrors returns a list of validation violation errors.

func (AuthorizeProxyUserRequestMultiError) Error added in v15.10.0

Error returns a concatenation of all the error messages it wraps.

type AuthorizeProxyUserRequestValidationError added in v15.10.0

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

AuthorizeProxyUserRequestValidationError is the validation error returned by AuthorizeProxyUserRequest.Validate if the designated constraints aren't met.

func (AuthorizeProxyUserRequestValidationError) Cause added in v15.10.0

Cause function returns cause value.

func (AuthorizeProxyUserRequestValidationError) Error added in v15.10.0

Error satisfies the builtin error interface

func (AuthorizeProxyUserRequestValidationError) ErrorName added in v15.10.0

ErrorName returns error name.

func (AuthorizeProxyUserRequestValidationError) Field added in v15.10.0

Field function returns field value.

func (AuthorizeProxyUserRequestValidationError) Key added in v15.10.0

Key function returns key value.

func (AuthorizeProxyUserRequestValidationError) Reason added in v15.10.0

Reason function returns reason value.

type AuthorizeProxyUserResponse added in v15.10.0

type AuthorizeProxyUserResponse struct {
	Agent    *AuthorizedAgentForUser     `protobuf:"bytes,1,opt,name=agent,proto3" json:"agent,omitempty"`
	User     *User                       `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"`
	AccessAs *AccessAsProxyAuthorization `protobuf:"bytes,3,opt,name=access_as,proto3" json:"access_as,omitempty"`
	// contains filtered or unexported fields
}

func AuthorizeProxyUser added in v15.10.0

func AuthorizeProxyUser(ctx context.Context, client gitlab.ClientInterface, agentId int64, accessType, accessKey, csrfToken string, opts ...gitlab.DoOption) (*AuthorizeProxyUserResponse, error)

func (*AuthorizeProxyUserResponse) Descriptor deprecated added in v15.10.0

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

Deprecated: Use AuthorizeProxyUserResponse.ProtoReflect.Descriptor instead.

func (*AuthorizeProxyUserResponse) GetAccessAs added in v15.10.0

func (*AuthorizeProxyUserResponse) GetAgent added in v15.10.0

func (*AuthorizeProxyUserResponse) GetUser added in v15.10.0

func (x *AuthorizeProxyUserResponse) GetUser() *User

func (*AuthorizeProxyUserResponse) ProtoMessage added in v15.10.0

func (*AuthorizeProxyUserResponse) ProtoMessage()

func (*AuthorizeProxyUserResponse) ProtoReflect added in v15.10.0

func (*AuthorizeProxyUserResponse) Reset added in v15.10.0

func (x *AuthorizeProxyUserResponse) Reset()

func (*AuthorizeProxyUserResponse) String added in v15.10.0

func (x *AuthorizeProxyUserResponse) String() string

func (*AuthorizeProxyUserResponse) Validate added in v15.10.0

func (m *AuthorizeProxyUserResponse) Validate() error

Validate checks the field values on AuthorizeProxyUserResponse 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 (*AuthorizeProxyUserResponse) ValidateAll added in v15.10.0

func (m *AuthorizeProxyUserResponse) ValidateAll() error

ValidateAll checks the field values on AuthorizeProxyUserResponse 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 AuthorizeProxyUserResponseMultiError, or nil if none found.

type AuthorizeProxyUserResponseMultiError added in v15.10.0

type AuthorizeProxyUserResponseMultiError []error

AuthorizeProxyUserResponseMultiError is an error wrapping multiple validation errors returned by AuthorizeProxyUserResponse.ValidateAll() if the designated constraints aren't met.

func (AuthorizeProxyUserResponseMultiError) AllErrors added in v15.10.0

AllErrors returns a list of validation violation errors.

func (AuthorizeProxyUserResponseMultiError) Error added in v15.10.0

Error returns a concatenation of all the error messages it wraps.

type AuthorizeProxyUserResponseValidationError added in v15.10.0

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

AuthorizeProxyUserResponseValidationError is the validation error returned by AuthorizeProxyUserResponse.Validate if the designated constraints aren't met.

func (AuthorizeProxyUserResponseValidationError) Cause added in v15.10.0

Cause function returns cause value.

func (AuthorizeProxyUserResponseValidationError) Error added in v15.10.0

Error satisfies the builtin error interface

func (AuthorizeProxyUserResponseValidationError) ErrorName added in v15.10.0

ErrorName returns error name.

func (AuthorizeProxyUserResponseValidationError) Field added in v15.10.0

Field function returns field value.

func (AuthorizeProxyUserResponseValidationError) Key added in v15.10.0

Key function returns key value.

func (AuthorizeProxyUserResponseValidationError) Reason added in v15.10.0

Reason function returns reason value.

type AuthorizedAgentForUser added in v15.10.0

type AuthorizedAgentForUser 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"`
	// contains filtered or unexported fields
}

func (*AuthorizedAgentForUser) Descriptor deprecated added in v15.10.0

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

Deprecated: Use AuthorizedAgentForUser.ProtoReflect.Descriptor instead.

func (*AuthorizedAgentForUser) GetConfigProject added in v15.10.0

func (x *AuthorizedAgentForUser) GetConfigProject() *ConfigProject

func (*AuthorizedAgentForUser) GetId added in v15.10.0

func (x *AuthorizedAgentForUser) GetId() int64

func (*AuthorizedAgentForUser) ProtoMessage added in v15.10.0

func (*AuthorizedAgentForUser) ProtoMessage()

func (*AuthorizedAgentForUser) ProtoReflect added in v15.10.0

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

func (*AuthorizedAgentForUser) Reset added in v15.10.0

func (x *AuthorizedAgentForUser) Reset()

func (*AuthorizedAgentForUser) String added in v15.10.0

func (x *AuthorizedAgentForUser) String() string

func (*AuthorizedAgentForUser) Validate added in v15.10.0

func (m *AuthorizedAgentForUser) Validate() error

Validate checks the field values on AuthorizedAgentForUser 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 (*AuthorizedAgentForUser) ValidateAll added in v15.10.0

func (m *AuthorizedAgentForUser) ValidateAll() error

ValidateAll checks the field values on AuthorizedAgentForUser 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 AuthorizedAgentForUserMultiError, or nil if none found.

type AuthorizedAgentForUserMultiError added in v15.10.0

type AuthorizedAgentForUserMultiError []error

AuthorizedAgentForUserMultiError is an error wrapping multiple validation errors returned by AuthorizedAgentForUser.ValidateAll() if the designated constraints aren't met.

func (AuthorizedAgentForUserMultiError) AllErrors added in v15.10.0

func (m AuthorizedAgentForUserMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AuthorizedAgentForUserMultiError) Error added in v15.10.0

Error returns a concatenation of all the error messages it wraps.

type AuthorizedAgentForUserValidationError added in v15.10.0

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

AuthorizedAgentForUserValidationError is the validation error returned by AuthorizedAgentForUser.Validate if the designated constraints aren't met.

func (AuthorizedAgentForUserValidationError) Cause added in v15.10.0

Cause function returns cause value.

func (AuthorizedAgentForUserValidationError) Error added in v15.10.0

Error satisfies the builtin error interface

func (AuthorizedAgentForUserValidationError) ErrorName added in v15.10.0

ErrorName returns error name.

func (AuthorizedAgentForUserValidationError) Field added in v15.10.0

Field function returns field value.

func (AuthorizedAgentForUserValidationError) Key added in v15.10.0

Key function returns key value.

func (AuthorizedAgentForUserValidationError) Reason added in v15.10.0

Reason function returns reason value.

type ConfigProject

type ConfigProject struct {
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*ConfigProject) Descriptor deprecated

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

Deprecated: Use ConfigProject.ProtoReflect.Descriptor instead.

func (*ConfigProject) GetId

func (x *ConfigProject) GetId() int64

func (*ConfigProject) ProtoMessage

func (*ConfigProject) ProtoMessage()

func (*ConfigProject) ProtoReflect

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

func (*ConfigProject) Reset

func (x *ConfigProject) Reset()

func (*ConfigProject) String

func (x *ConfigProject) String() string

func (*ConfigProject) Validate

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

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

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

func (m ConfigProjectMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ConfigProjectMultiError) Error

func (m ConfigProjectMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ConfigProjectValidationError

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

Cause function returns cause value.

func (ConfigProjectValidationError) Error

Error satisfies the builtin error interface

func (ConfigProjectValidationError) ErrorName

func (e ConfigProjectValidationError) ErrorName() string

ErrorName returns error name.

func (ConfigProjectValidationError) Field

Field function returns field value.

func (ConfigProjectValidationError) Key

Key function returns key value.

func (ConfigProjectValidationError) Reason

Reason function returns reason value.

type Configuration

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

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

Deprecated: Use Configuration.ProtoReflect.Descriptor instead.

func (*Configuration) GetAccessAs

func (x *Configuration) GetAccessAs() *agentcfg.CiAccessAsCF

func (*Configuration) GetDefaultNamespace

func (x *Configuration) GetDefaultNamespace() string

func (*Configuration) ProtoMessage

func (*Configuration) ProtoMessage()

func (*Configuration) ProtoReflect

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

func (*Configuration) Reset

func (x *Configuration) Reset()

func (*Configuration) String

func (x *Configuration) String() string

func (*Configuration) Validate

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

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

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

func (m ConfigurationMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ConfigurationMultiError) Error

func (m ConfigurationMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ConfigurationValidationError

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

Cause function returns cause value.

func (ConfigurationValidationError) Error

Error satisfies the builtin error interface

func (ConfigurationValidationError) ErrorName

func (e ConfigurationValidationError) ErrorName() string

ErrorName returns error name.

func (ConfigurationValidationError) Field

Field function returns field value.

func (ConfigurationValidationError) Key

Key function returns key value.

func (ConfigurationValidationError) Reason

Reason function returns reason value.

type Environment

type Environment struct {
	Slug string `protobuf:"bytes,1,opt,name=slug,proto3" json:"slug,omitempty"`
	Tier string `protobuf:"bytes,2,opt,name=tier,proto3" json:"tier,omitempty"`
	// contains filtered or unexported fields
}

func (*Environment) Descriptor deprecated

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

Deprecated: Use Environment.ProtoReflect.Descriptor instead.

func (*Environment) GetSlug

func (x *Environment) GetSlug() string

func (*Environment) GetTier added in v15.5.0

func (x *Environment) GetTier() string

func (*Environment) ProtoMessage

func (*Environment) ProtoMessage()

func (*Environment) ProtoReflect

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

func (*Environment) Reset

func (x *Environment) Reset()

func (*Environment) String

func (x *Environment) String() string

func (*Environment) Validate

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

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

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

func (m EnvironmentMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (EnvironmentMultiError) Error

func (m EnvironmentMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type EnvironmentValidationError

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

Cause function returns cause value.

func (EnvironmentValidationError) Error

Error satisfies the builtin error interface

func (EnvironmentValidationError) ErrorName

func (e EnvironmentValidationError) ErrorName() string

ErrorName returns error name.

func (EnvironmentValidationError) Field

Field function returns field value.

func (EnvironmentValidationError) Key

Key function returns key value.

func (EnvironmentValidationError) Reason

Reason function returns reason value.

type GetAgentInfoResponse added in v15.10.0

type GetAgentInfoResponse struct {
	ProjectId        int64             `protobuf:"varint,1,opt,name=project_id,proto3" json:"project_id,omitempty"`
	AgentId          int64             `protobuf:"varint,2,opt,name=agent_id,proto3" json:"agent_id,omitempty"`
	AgentName        string            `protobuf:"bytes,3,opt,name=agent_name,proto3" json:"agent_name,omitempty"`
	GitalyInfo       *GitalyInfo       `protobuf:"bytes,4,opt,name=gitaly_info,proto3" json:"gitaly_info,omitempty"`
	GitalyRepository *GitalyRepository `protobuf:"bytes,5,opt,name=gitaly_repository,proto3" json:"gitaly_repository,omitempty"`
	DefaultBranch    string            `protobuf:"bytes,6,opt,name=DefaultBranch,json=default_branch,proto3" json:"DefaultBranch,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAgentInfoResponse) Descriptor deprecated added in v15.10.0

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

Deprecated: Use GetAgentInfoResponse.ProtoReflect.Descriptor instead.

func (*GetAgentInfoResponse) GetAgentId added in v15.10.0

func (x *GetAgentInfoResponse) GetAgentId() int64

func (*GetAgentInfoResponse) GetAgentName added in v15.10.0

func (x *GetAgentInfoResponse) GetAgentName() string

func (*GetAgentInfoResponse) GetDefaultBranch added in v15.10.0

func (x *GetAgentInfoResponse) GetDefaultBranch() string

func (*GetAgentInfoResponse) GetGitalyInfo added in v15.10.0

func (x *GetAgentInfoResponse) GetGitalyInfo() *GitalyInfo

func (*GetAgentInfoResponse) GetGitalyRepository added in v15.10.0

func (x *GetAgentInfoResponse) GetGitalyRepository() *GitalyRepository

func (*GetAgentInfoResponse) GetProjectId added in v15.10.0

func (x *GetAgentInfoResponse) GetProjectId() int64

func (*GetAgentInfoResponse) ProtoMessage added in v15.10.0

func (*GetAgentInfoResponse) ProtoMessage()

func (*GetAgentInfoResponse) ProtoReflect added in v15.10.0

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

func (*GetAgentInfoResponse) Reset added in v15.10.0

func (x *GetAgentInfoResponse) Reset()

func (*GetAgentInfoResponse) String added in v15.10.0

func (x *GetAgentInfoResponse) String() string

func (*GetAgentInfoResponse) ToApiAgentInfo added in v15.10.0

func (a *GetAgentInfoResponse) ToApiAgentInfo() *api.AgentInfo

func (*GetAgentInfoResponse) Validate added in v15.10.0

func (m *GetAgentInfoResponse) Validate() error

Validate checks the field values on GetAgentInfoResponse 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 (*GetAgentInfoResponse) ValidateAll added in v15.10.0

func (m *GetAgentInfoResponse) ValidateAll() error

ValidateAll checks the field values on GetAgentInfoResponse 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 GetAgentInfoResponseMultiError, or nil if none found.

type GetAgentInfoResponseMultiError added in v15.10.0

type GetAgentInfoResponseMultiError []error

GetAgentInfoResponseMultiError is an error wrapping multiple validation errors returned by GetAgentInfoResponse.ValidateAll() if the designated constraints aren't met.

func (GetAgentInfoResponseMultiError) AllErrors added in v15.10.0

func (m GetAgentInfoResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetAgentInfoResponseMultiError) Error added in v15.10.0

Error returns a concatenation of all the error messages it wraps.

type GetAgentInfoResponseValidationError added in v15.10.0

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

GetAgentInfoResponseValidationError is the validation error returned by GetAgentInfoResponse.Validate if the designated constraints aren't met.

func (GetAgentInfoResponseValidationError) Cause added in v15.10.0

Cause function returns cause value.

func (GetAgentInfoResponseValidationError) Error added in v15.10.0

Error satisfies the builtin error interface

func (GetAgentInfoResponseValidationError) ErrorName added in v15.10.0

ErrorName returns error name.

func (GetAgentInfoResponseValidationError) Field added in v15.10.0

Field function returns field value.

func (GetAgentInfoResponseValidationError) Key added in v15.10.0

Key function returns key value.

func (GetAgentInfoResponseValidationError) Reason added in v15.10.0

Reason function returns reason value.

type GetProjectInfoResponse added in v15.10.0

type GetProjectInfoResponse struct {
	ProjectId        int64             `protobuf:"varint,1,opt,name=project_id,proto3" json:"project_id,omitempty"`
	GitalyInfo       *GitalyInfo       `protobuf:"bytes,2,opt,name=gitaly_info,proto3" json:"gitaly_info,omitempty"`
	GitalyRepository *GitalyRepository `protobuf:"bytes,3,opt,name=gitaly_repository,proto3" json:"gitaly_repository,omitempty"`
	DefaultBranch    string            `protobuf:"bytes,4,opt,name=default_branch,proto3" json:"default_branch,omitempty"`
	// contains filtered or unexported fields
}

func (*GetProjectInfoResponse) Descriptor deprecated added in v15.10.0

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

Deprecated: Use GetProjectInfoResponse.ProtoReflect.Descriptor instead.

func (*GetProjectInfoResponse) GetDefaultBranch added in v15.10.0

func (x *GetProjectInfoResponse) GetDefaultBranch() string

func (*GetProjectInfoResponse) GetGitalyInfo added in v15.10.0

func (x *GetProjectInfoResponse) GetGitalyInfo() *GitalyInfo

func (*GetProjectInfoResponse) GetGitalyRepository added in v15.10.0

func (x *GetProjectInfoResponse) GetGitalyRepository() *GitalyRepository

func (*GetProjectInfoResponse) GetProjectId added in v15.10.0

func (x *GetProjectInfoResponse) GetProjectId() int64

func (*GetProjectInfoResponse) ProtoMessage added in v15.10.0

func (*GetProjectInfoResponse) ProtoMessage()

func (*GetProjectInfoResponse) ProtoReflect added in v15.10.0

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

func (*GetProjectInfoResponse) Reset added in v15.10.0

func (x *GetProjectInfoResponse) Reset()

func (*GetProjectInfoResponse) String added in v15.10.0

func (x *GetProjectInfoResponse) String() string

func (*GetProjectInfoResponse) ToApiProjectInfo added in v15.10.0

func (p *GetProjectInfoResponse) ToApiProjectInfo() *api.ProjectInfo

func (*GetProjectInfoResponse) Validate added in v15.10.0

func (m *GetProjectInfoResponse) Validate() error

Validate checks the field values on GetProjectInfoResponse 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 (*GetProjectInfoResponse) ValidateAll added in v15.10.0

func (m *GetProjectInfoResponse) ValidateAll() error

ValidateAll checks the field values on GetProjectInfoResponse 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 GetProjectInfoResponseMultiError, or nil if none found.

type GetProjectInfoResponseMultiError added in v15.10.0

type GetProjectInfoResponseMultiError []error

GetProjectInfoResponseMultiError is an error wrapping multiple validation errors returned by GetProjectInfoResponse.ValidateAll() if the designated constraints aren't met.

func (GetProjectInfoResponseMultiError) AllErrors added in v15.10.0

func (m GetProjectInfoResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetProjectInfoResponseMultiError) Error added in v15.10.0

Error returns a concatenation of all the error messages it wraps.

type GetProjectInfoResponseValidationError added in v15.10.0

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

GetProjectInfoResponseValidationError is the validation error returned by GetProjectInfoResponse.Validate if the designated constraints aren't met.

func (GetProjectInfoResponseValidationError) Cause added in v15.10.0

Cause function returns cause value.

func (GetProjectInfoResponseValidationError) Error added in v15.10.0

Error satisfies the builtin error interface

func (GetProjectInfoResponseValidationError) ErrorName added in v15.10.0

ErrorName returns error name.

func (GetProjectInfoResponseValidationError) Field added in v15.10.0

Field function returns field value.

func (GetProjectInfoResponseValidationError) Key added in v15.10.0

Key function returns key value.

func (GetProjectInfoResponseValidationError) Reason added in v15.10.0

Reason function returns reason value.

type GitalyInfo added in v15.10.0

type GitalyInfo struct {
	Address  string            `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Token    string            `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
	Features map[string]string `` /* 157-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*GitalyInfo) Descriptor deprecated added in v15.10.0

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

Deprecated: Use GitalyInfo.ProtoReflect.Descriptor instead.

func (*GitalyInfo) GetAddress added in v15.10.0

func (x *GitalyInfo) GetAddress() string

func (*GitalyInfo) GetFeatures added in v15.10.0

func (x *GitalyInfo) GetFeatures() map[string]string

func (*GitalyInfo) GetToken added in v15.10.0

func (x *GitalyInfo) GetToken() string

func (*GitalyInfo) ProtoMessage added in v15.10.0

func (*GitalyInfo) ProtoMessage()

func (*GitalyInfo) ProtoReflect added in v15.10.0

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

func (*GitalyInfo) Reset added in v15.10.0

func (x *GitalyInfo) Reset()

func (*GitalyInfo) String added in v15.10.0

func (x *GitalyInfo) String() string

func (*GitalyInfo) ToApiGitalyInfo added in v15.10.0

func (g *GitalyInfo) ToApiGitalyInfo() api.GitalyInfo

func (*GitalyInfo) Validate added in v15.10.0

func (m *GitalyInfo) Validate() error

Validate checks the field values on GitalyInfo 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 (*GitalyInfo) ValidateAll added in v15.10.0

func (m *GitalyInfo) ValidateAll() error

ValidateAll checks the field values on GitalyInfo 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 GitalyInfoMultiError, or nil if none found.

type GitalyInfoMultiError added in v15.10.0

type GitalyInfoMultiError []error

GitalyInfoMultiError is an error wrapping multiple validation errors returned by GitalyInfo.ValidateAll() if the designated constraints aren't met.

func (GitalyInfoMultiError) AllErrors added in v15.10.0

func (m GitalyInfoMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GitalyInfoMultiError) Error added in v15.10.0

func (m GitalyInfoMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type GitalyInfoValidationError added in v15.10.0

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

GitalyInfoValidationError is the validation error returned by GitalyInfo.Validate if the designated constraints aren't met.

func (GitalyInfoValidationError) Cause added in v15.10.0

func (e GitalyInfoValidationError) Cause() error

Cause function returns cause value.

func (GitalyInfoValidationError) Error added in v15.10.0

Error satisfies the builtin error interface

func (GitalyInfoValidationError) ErrorName added in v15.10.0

func (e GitalyInfoValidationError) ErrorName() string

ErrorName returns error name.

func (GitalyInfoValidationError) Field added in v15.10.0

Field function returns field value.

func (GitalyInfoValidationError) Key added in v15.10.0

Key function returns key value.

func (GitalyInfoValidationError) Reason added in v15.10.0

func (e GitalyInfoValidationError) Reason() string

Reason function returns reason value.

type GitalyRepository added in v15.10.0

type GitalyRepository struct {
	StorageName   string `protobuf:"bytes,1,opt,name=storage_name,proto3" json:"storage_name,omitempty"`
	RelativePath  string `protobuf:"bytes,2,opt,name=relative_path,proto3" json:"relative_path,omitempty"`
	GlRepository  string `protobuf:"bytes,3,opt,name=gl_repository,proto3" json:"gl_repository,omitempty"`
	GlProjectPath string `protobuf:"bytes,4,opt,name=gl_project_path,proto3" json:"gl_project_path,omitempty"`
	// contains filtered or unexported fields
}

func (*GitalyRepository) Descriptor deprecated added in v15.10.0

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

Deprecated: Use GitalyRepository.ProtoReflect.Descriptor instead.

func (*GitalyRepository) GetGlProjectPath added in v15.10.0

func (x *GitalyRepository) GetGlProjectPath() string

func (*GitalyRepository) GetGlRepository added in v15.10.0

func (x *GitalyRepository) GetGlRepository() string

func (*GitalyRepository) GetRelativePath added in v15.10.0

func (x *GitalyRepository) GetRelativePath() string

func (*GitalyRepository) GetStorageName added in v15.10.0

func (x *GitalyRepository) GetStorageName() string

func (*GitalyRepository) ProtoMessage added in v15.10.0

func (*GitalyRepository) ProtoMessage()

func (*GitalyRepository) ProtoReflect added in v15.10.0

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

func (*GitalyRepository) Reset added in v15.10.0

func (x *GitalyRepository) Reset()

func (*GitalyRepository) String added in v15.10.0

func (x *GitalyRepository) String() string

func (*GitalyRepository) ToGitalyProtoRepository added in v15.10.0

func (r *GitalyRepository) ToGitalyProtoRepository() *gitalypb.Repository

func (*GitalyRepository) Validate added in v15.10.0

func (m *GitalyRepository) Validate() error

Validate checks the field values on GitalyRepository 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 (*GitalyRepository) ValidateAll added in v15.10.0

func (m *GitalyRepository) ValidateAll() error

ValidateAll checks the field values on GitalyRepository 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 GitalyRepositoryMultiError, or nil if none found.

type GitalyRepositoryMultiError added in v15.10.0

type GitalyRepositoryMultiError []error

GitalyRepositoryMultiError is an error wrapping multiple validation errors returned by GitalyRepository.ValidateAll() if the designated constraints aren't met.

func (GitalyRepositoryMultiError) AllErrors added in v15.10.0

func (m GitalyRepositoryMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GitalyRepositoryMultiError) Error added in v15.10.0

Error returns a concatenation of all the error messages it wraps.

type GitalyRepositoryValidationError added in v15.10.0

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

GitalyRepositoryValidationError is the validation error returned by GitalyRepository.Validate if the designated constraints aren't met.

func (GitalyRepositoryValidationError) Cause added in v15.10.0

Cause function returns cause value.

func (GitalyRepositoryValidationError) Error added in v15.10.0

Error satisfies the builtin error interface

func (GitalyRepositoryValidationError) ErrorName added in v15.10.0

ErrorName returns error name.

func (GitalyRepositoryValidationError) Field added in v15.10.0

Field function returns field value.

func (GitalyRepositoryValidationError) Key added in v15.10.0

Key function returns key value.

func (GitalyRepositoryValidationError) Reason added in v15.10.0

Reason function returns reason value.

type Group

type Group struct {
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*Group) Descriptor deprecated

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

Deprecated: Use Group.ProtoReflect.Descriptor instead.

func (*Group) GetId

func (x *Group) GetId() int64

func (*Group) ProtoMessage

func (*Group) ProtoMessage()

func (*Group) ProtoReflect

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

func (*Group) Reset

func (x *Group) Reset()

func (*Group) String

func (x *Group) String() string

func (*Group) Validate

func (m *Group) Validate() error

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

func (m *Group) ValidateAll() error

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 GroupAccessCF added in v15.10.0

type GroupAccessCF struct {
	Id    int64    `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Roles []string `protobuf:"bytes,2,rep,name=roles,proto3" json:"roles,omitempty"`
	// contains filtered or unexported fields
}

func (*GroupAccessCF) Descriptor deprecated added in v15.10.0

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

Deprecated: Use GroupAccessCF.ProtoReflect.Descriptor instead.

func (*GroupAccessCF) GetId added in v15.10.0

func (x *GroupAccessCF) GetId() int64

func (*GroupAccessCF) GetRoles added in v15.10.0

func (x *GroupAccessCF) GetRoles() []string

func (*GroupAccessCF) ProtoMessage added in v15.10.0

func (*GroupAccessCF) ProtoMessage()

func (*GroupAccessCF) ProtoReflect added in v15.10.0

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

func (*GroupAccessCF) Reset added in v15.10.0

func (x *GroupAccessCF) Reset()

func (*GroupAccessCF) String added in v15.10.0

func (x *GroupAccessCF) String() string

func (*GroupAccessCF) Validate added in v15.10.0

func (m *GroupAccessCF) Validate() error

Validate checks the field values on GroupAccessCF 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 (*GroupAccessCF) ValidateAll added in v15.10.0

func (m *GroupAccessCF) ValidateAll() error

ValidateAll checks the field values on GroupAccessCF 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 GroupAccessCFMultiError, or nil if none found.

type GroupAccessCFMultiError added in v15.10.0

type GroupAccessCFMultiError []error

GroupAccessCFMultiError is an error wrapping multiple validation errors returned by GroupAccessCF.ValidateAll() if the designated constraints aren't met.

func (GroupAccessCFMultiError) AllErrors added in v15.10.0

func (m GroupAccessCFMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GroupAccessCFMultiError) Error added in v15.10.0

func (m GroupAccessCFMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type GroupAccessCFValidationError added in v15.10.0

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

GroupAccessCFValidationError is the validation error returned by GroupAccessCF.Validate if the designated constraints aren't met.

func (GroupAccessCFValidationError) Cause added in v15.10.0

Cause function returns cause value.

func (GroupAccessCFValidationError) Error added in v15.10.0

Error satisfies the builtin error interface

func (GroupAccessCFValidationError) ErrorName added in v15.10.0

func (e GroupAccessCFValidationError) ErrorName() string

ErrorName returns error name.

func (GroupAccessCFValidationError) Field added in v15.10.0

Field function returns field value.

func (GroupAccessCFValidationError) Key added in v15.10.0

Key function returns key value.

func (GroupAccessCFValidationError) Reason added in v15.10.0

Reason function returns reason value.

type GroupMultiError

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

func (m GroupMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GroupMultiError) Error

func (m GroupMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type GroupValidationError

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

func (e GroupValidationError) Cause() error

Cause function returns cause value.

func (GroupValidationError) Error

func (e GroupValidationError) Error() string

Error satisfies the builtin error interface

func (GroupValidationError) ErrorName

func (e GroupValidationError) ErrorName() string

ErrorName returns error name.

func (GroupValidationError) Field

func (e GroupValidationError) Field() string

Field function returns field value.

func (GroupValidationError) Key

func (e GroupValidationError) Key() bool

Key function returns key value.

func (GroupValidationError) Reason

func (e GroupValidationError) Reason() string

Reason function returns reason value.

type Job

type Job struct {
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*Job) Descriptor deprecated

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

Deprecated: Use Job.ProtoReflect.Descriptor instead.

func (*Job) GetId

func (x *Job) GetId() int64

func (*Job) ProtoMessage

func (*Job) ProtoMessage()

func (*Job) ProtoReflect

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

func (*Job) Reset

func (x *Job) Reset()

func (*Job) String

func (x *Job) String() string

func (*Job) Validate

func (m *Job) Validate() error

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

func (m *Job) ValidateAll() error

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

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

func (m JobMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (JobMultiError) Error

func (m JobMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type JobValidationError

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

func (e JobValidationError) Cause() error

Cause function returns cause value.

func (JobValidationError) Error

func (e JobValidationError) Error() string

Error satisfies the builtin error interface

func (JobValidationError) ErrorName

func (e JobValidationError) ErrorName() string

ErrorName returns error name.

func (JobValidationError) Field

func (e JobValidationError) Field() string

Field function returns field value.

func (JobValidationError) Key

func (e JobValidationError) Key() bool

Key function returns key value.

func (JobValidationError) Reason

func (e JobValidationError) Reason() string

Reason function returns reason value.

type Pipeline

type Pipeline struct {
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*Pipeline) Descriptor deprecated

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

Deprecated: Use Pipeline.ProtoReflect.Descriptor instead.

func (*Pipeline) GetId

func (x *Pipeline) GetId() int64

func (*Pipeline) ProtoMessage

func (*Pipeline) ProtoMessage()

func (*Pipeline) ProtoReflect

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

func (*Pipeline) Reset

func (x *Pipeline) Reset()

func (*Pipeline) String

func (x *Pipeline) String() string

func (*Pipeline) Validate

func (m *Pipeline) Validate() error

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

func (m *Pipeline) ValidateAll() error

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

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

func (m PipelineMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PipelineMultiError) Error

func (m PipelineMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type PipelineValidationError

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

func (e PipelineValidationError) Cause() error

Cause function returns cause value.

func (PipelineValidationError) Error

func (e PipelineValidationError) Error() string

Error satisfies the builtin error interface

func (PipelineValidationError) ErrorName

func (e PipelineValidationError) ErrorName() string

ErrorName returns error name.

func (PipelineValidationError) Field

func (e PipelineValidationError) Field() string

Field function returns field value.

func (PipelineValidationError) Key

func (e PipelineValidationError) Key() bool

Key function returns key value.

func (PipelineValidationError) Reason

func (e PipelineValidationError) Reason() string

Reason function returns reason value.

type Project

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

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

Deprecated: Use Project.ProtoReflect.Descriptor instead.

func (*Project) GetGroups

func (x *Project) GetGroups() []*Group

func (*Project) GetId

func (x *Project) GetId() int64

func (*Project) ProtoMessage

func (*Project) ProtoMessage()

func (*Project) ProtoReflect

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

func (*Project) Reset

func (x *Project) Reset()

func (*Project) String

func (x *Project) String() string

func (*Project) Validate

func (m *Project) Validate() error

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

func (m *Project) ValidateAll() error

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 ProjectAccessCF added in v15.10.0

type ProjectAccessCF struct {
	Id    int64    `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Roles []string `protobuf:"bytes,2,rep,name=roles,proto3" json:"roles,omitempty"`
	// contains filtered or unexported fields
}

func (*ProjectAccessCF) Descriptor deprecated added in v15.10.0

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

Deprecated: Use ProjectAccessCF.ProtoReflect.Descriptor instead.

func (*ProjectAccessCF) GetId added in v15.10.0

func (x *ProjectAccessCF) GetId() int64

func (*ProjectAccessCF) GetRoles added in v15.10.0

func (x *ProjectAccessCF) GetRoles() []string

func (*ProjectAccessCF) ProtoMessage added in v15.10.0

func (*ProjectAccessCF) ProtoMessage()

func (*ProjectAccessCF) ProtoReflect added in v15.10.0

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

func (*ProjectAccessCF) Reset added in v15.10.0

func (x *ProjectAccessCF) Reset()

func (*ProjectAccessCF) String added in v15.10.0

func (x *ProjectAccessCF) String() string

func (*ProjectAccessCF) Validate added in v15.10.0

func (m *ProjectAccessCF) Validate() error

Validate checks the field values on ProjectAccessCF 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 (*ProjectAccessCF) ValidateAll added in v15.10.0

func (m *ProjectAccessCF) ValidateAll() error

ValidateAll checks the field values on ProjectAccessCF 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 ProjectAccessCFMultiError, or nil if none found.

type ProjectAccessCFMultiError added in v15.10.0

type ProjectAccessCFMultiError []error

ProjectAccessCFMultiError is an error wrapping multiple validation errors returned by ProjectAccessCF.ValidateAll() if the designated constraints aren't met.

func (ProjectAccessCFMultiError) AllErrors added in v15.10.0

func (m ProjectAccessCFMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ProjectAccessCFMultiError) Error added in v15.10.0

Error returns a concatenation of all the error messages it wraps.

type ProjectAccessCFValidationError added in v15.10.0

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

ProjectAccessCFValidationError is the validation error returned by ProjectAccessCF.Validate if the designated constraints aren't met.

func (ProjectAccessCFValidationError) Cause added in v15.10.0

Cause function returns cause value.

func (ProjectAccessCFValidationError) Error added in v15.10.0

Error satisfies the builtin error interface

func (ProjectAccessCFValidationError) ErrorName added in v15.10.0

func (e ProjectAccessCFValidationError) ErrorName() string

ErrorName returns error name.

func (ProjectAccessCFValidationError) Field added in v15.10.0

Field function returns field value.

func (ProjectAccessCFValidationError) Key added in v15.10.0

Key function returns key value.

func (ProjectAccessCFValidationError) Reason added in v15.10.0

Reason function returns reason value.

type ProjectMultiError

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

func (m ProjectMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ProjectMultiError) Error

func (m ProjectMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ProjectValidationError

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

func (e ProjectValidationError) Cause() error

Cause function returns cause value.

func (ProjectValidationError) Error

func (e ProjectValidationError) Error() string

Error satisfies the builtin error interface

func (ProjectValidationError) ErrorName

func (e ProjectValidationError) ErrorName() string

ErrorName returns error name.

func (ProjectValidationError) Field

func (e ProjectValidationError) Field() string

Field function returns field value.

func (ProjectValidationError) Key

func (e ProjectValidationError) Key() bool

Key function returns key value.

func (ProjectValidationError) Reason

func (e ProjectValidationError) Reason() string

Reason function returns reason value.

type UsagePingData added in v15.3.0

type UsagePingData struct {
	Counters       map[string]int64   `json:"counters,omitempty"`
	UniqueCounters map[string][]int64 `json:"unique_counters,omitempty"`
}

type User

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

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetId

func (x *User) GetId() int64

func (*User) GetUsername

func (x *User) GetUsername() string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

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

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

func (*User) Validate

func (m *User) Validate() error

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

func (m *User) ValidateAll() error

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

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

func (m UserMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UserMultiError) Error

func (m UserMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type UserValidationError

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

func (e UserValidationError) Cause() error

Cause function returns cause value.

func (UserValidationError) Error

func (e UserValidationError) Error() string

Error satisfies the builtin error interface

func (UserValidationError) ErrorName

func (e UserValidationError) ErrorName() string

ErrorName returns error name.

func (UserValidationError) Field

func (e UserValidationError) Field() string

Field function returns field value.

func (UserValidationError) Key

func (e UserValidationError) Key() bool

Key function returns key value.

func (UserValidationError) Reason

func (e UserValidationError) Reason() string

Reason function returns reason value.

Jump to

Keyboard shortcuts

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