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 GetRepositoryInfo(ctx context.Context, client gitlab.ClientInterface, projectID string, ...) (*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 SendEvent(ctx context.Context, client gitlab.ClientInterface, data EventData, ...) error
- func SendUsagePing(ctx context.Context, client gitlab.ClientInterface, data UsagePingData, ...) error
- func VerifyProjectAccess(ctx context.Context, client gitlab.ClientInterface, agentToken api.AgentToken, ...) (bool, error)
- type AccessAsAgentAuthorization
- type AccessAsProxyAuthorization
- func (*AccessAsProxyAuthorization) Descriptor() ([]byte, []int)deprecated
- func (m *AccessAsProxyAuthorization) GetAccessAs() isAccessAsProxyAuthorization_AccessAs
- func (x *AccessAsProxyAuthorization) GetAgent() *AccessAsAgentAuthorization
- func (x *AccessAsProxyAuthorization) GetUser() *AccessAsUserAuthorization
- func (*AccessAsProxyAuthorization) ProtoMessage()
- func (x *AccessAsProxyAuthorization) ProtoReflect() protoreflect.Message
- func (x *AccessAsProxyAuthorization) Reset()
- func (x *AccessAsProxyAuthorization) String() string
- type AccessAsProxyAuthorization_Agent
- type AccessAsProxyAuthorization_User
- type AccessAsUserAuthorization
- func (*AccessAsUserAuthorization) Descriptor() ([]byte, []int)deprecated
- func (x *AccessAsUserAuthorization) GetGroups() []*GroupAccessCF
- func (x *AccessAsUserAuthorization) GetProjects() []*ProjectAccessCF
- func (*AccessAsUserAuthorization) ProtoMessage()
- func (x *AccessAsUserAuthorization) ProtoReflect() protoreflect.Message
- func (x *AccessAsUserAuthorization) Reset()
- func (x *AccessAsUserAuthorization) String() string
- type AgentConfigurationRequest
- func (*AgentConfigurationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AgentConfigurationRequest) GetAgentConfig() *agentcfg.ConfigurationFile
- func (x *AgentConfigurationRequest) GetAgentId() int64
- func (*AgentConfigurationRequest) ProtoMessage()
- func (x *AgentConfigurationRequest) ProtoReflect() protoreflect.Message
- func (x *AgentConfigurationRequest) Reset()
- func (x *AgentConfigurationRequest) String() string
- 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
- 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
- type AuthorizeProxyUserRequest
- func (*AuthorizeProxyUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AuthorizeProxyUserRequest) GetAccessKey() string
- func (x *AuthorizeProxyUserRequest) GetAccessType() string
- func (x *AuthorizeProxyUserRequest) GetAgentId() int64
- func (x *AuthorizeProxyUserRequest) GetCsrfToken() string
- func (*AuthorizeProxyUserRequest) ProtoMessage()
- func (x *AuthorizeProxyUserRequest) ProtoReflect() protoreflect.Message
- func (x *AuthorizeProxyUserRequest) Reset()
- func (x *AuthorizeProxyUserRequest) String() string
- type AuthorizeProxyUserResponse
- func (*AuthorizeProxyUserResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AuthorizeProxyUserResponse) GetAccessAs() *AccessAsProxyAuthorization
- func (x *AuthorizeProxyUserResponse) GetAgent() *AuthorizedAgentForUser
- func (x *AuthorizeProxyUserResponse) GetUser() *User
- func (*AuthorizeProxyUserResponse) ProtoMessage()
- func (x *AuthorizeProxyUserResponse) ProtoReflect() protoreflect.Message
- func (x *AuthorizeProxyUserResponse) Reset()
- func (x *AuthorizeProxyUserResponse) String() string
- type AuthorizedAgentForUser
- func (*AuthorizedAgentForUser) Descriptor() ([]byte, []int)deprecated
- func (x *AuthorizedAgentForUser) GetConfigProject() *ConfigProject
- func (x *AuthorizedAgentForUser) GetId() int64
- func (*AuthorizedAgentForUser) ProtoMessage()
- func (x *AuthorizedAgentForUser) ProtoReflect() protoreflect.Message
- func (x *AuthorizedAgentForUser) Reset()
- func (x *AuthorizedAgentForUser) String() string
- type ConfigProject
- 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
- type Environment
- type Event
- type EventData
- type GetAgentInfoResponse
- func (*GetAgentInfoResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetAgentInfoResponse) GetAgentId() int64
- func (x *GetAgentInfoResponse) GetAgentName() string
- func (x *GetAgentInfoResponse) GetDefaultBranch() string
- func (x *GetAgentInfoResponse) GetGitalyInfo() *entity.GitalyInfo
- func (x *GetAgentInfoResponse) GetGitalyRepository() *entity.GitalyRepository
- func (x *GetAgentInfoResponse) GetProjectId() int64
- func (*GetAgentInfoResponse) ProtoMessage()
- func (x *GetAgentInfoResponse) ProtoReflect() protoreflect.Message
- func (x *GetAgentInfoResponse) Reset()
- func (x *GetAgentInfoResponse) String() string
- func (a *GetAgentInfoResponse) ToAPIAgentInfo() *api.AgentInfo
- type GetProjectInfoResponse
- func (*GetProjectInfoResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetProjectInfoResponse) GetDefaultBranch() string
- func (x *GetProjectInfoResponse) GetGitalyInfo() *entity.GitalyInfo
- func (x *GetProjectInfoResponse) GetGitalyRepository() *entity.GitalyRepository
- func (x *GetProjectInfoResponse) GetProjectId() int64
- func (*GetProjectInfoResponse) ProtoMessage()
- func (x *GetProjectInfoResponse) ProtoReflect() protoreflect.Message
- func (x *GetProjectInfoResponse) Reset()
- func (x *GetProjectInfoResponse) String() string
- func (p *GetProjectInfoResponse) ToAPIProjectInfo() *api.ProjectInfo
- type GetReceptiveAgentsResponse
- func (*GetReceptiveAgentsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetReceptiveAgentsResponse) GetAgents() []*ReceptiveAgent
- func (*GetReceptiveAgentsResponse) ProtoMessage()
- func (x *GetReceptiveAgentsResponse) ProtoReflect() protoreflect.Message
- func (x *GetReceptiveAgentsResponse) Reset()
- func (x *GetReceptiveAgentsResponse) String() string
- type GetRepositoryInfoResponse
- func (*GetRepositoryInfoResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetRepositoryInfoResponse) GetDefaultBranch() string
- func (x *GetRepositoryInfoResponse) GetGitalyInfo() *entity.GitalyInfo
- func (x *GetRepositoryInfoResponse) GetGitalyRepository() *entity.GitalyRepository
- func (x *GetRepositoryInfoResponse) GetProjectId() int64
- func (*GetRepositoryInfoResponse) ProtoMessage()
- func (x *GetRepositoryInfoResponse) ProtoReflect() protoreflect.Message
- func (x *GetRepositoryInfoResponse) Reset()
- func (x *GetRepositoryInfoResponse) String() string
- func (p *GetRepositoryInfoResponse) ToAPIProjectInfo() *api.ProjectInfo
- type Group
- type GroupAccessCF
- func (*GroupAccessCF) Descriptor() ([]byte, []int)deprecated
- func (x *GroupAccessCF) GetId() int64
- func (x *GroupAccessCF) GetRoles() []string
- func (*GroupAccessCF) ProtoMessage()
- func (x *GroupAccessCF) ProtoReflect() protoreflect.Message
- func (x *GroupAccessCF) Reset()
- func (x *GroupAccessCF) String() string
- type Job
- type Pipeline
- type Project
- type ProjectAccessCF
- func (*ProjectAccessCF) Descriptor() ([]byte, []int)deprecated
- func (x *ProjectAccessCF) GetId() int64
- func (x *ProjectAccessCF) GetRoles() []string
- func (*ProjectAccessCF) ProtoMessage()
- func (x *ProjectAccessCF) ProtoReflect() protoreflect.Message
- func (x *ProjectAccessCF) Reset()
- func (x *ProjectAccessCF) String() string
- type ReceptiveAgent
- func (*ReceptiveAgent) Descriptor() ([]byte, []int)deprecated
- func (x *ReceptiveAgent) GetCaCert() string
- func (x *ReceptiveAgent) GetClientCert() string
- func (x *ReceptiveAgent) GetClientKey() string
- func (x *ReceptiveAgent) GetId() int64
- func (x *ReceptiveAgent) GetTlsHost() string
- func (x *ReceptiveAgent) GetToken() string
- func (x *ReceptiveAgent) GetUrl() string
- func (*ReceptiveAgent) ProtoMessage()
- func (x *ReceptiveAgent) ProtoReflect() protoreflect.Message
- func (x *ReceptiveAgent) Reset()
- func (x *ReceptiveAgent) String() string
- type UsagePingData
- type User
Constants ¶
const ( ProjectInfoAPIPath = "/api/v4/internal/kubernetes/project_info" ProjectIDQueryParam = "id" )
const ( RepositoryInfoAPIPath = "/api/v4/internal/kubernetes/repository_info" RepositoryInfoProjectIDQueryParam = "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 (
AuthorizeProxyUserAPIPath = "/api/v4/internal/kubernetes/authorize_proxy_user"
)
const (
EventAPIPath = "/api/v4/internal/kubernetes/agent_events"
)
const (
ModuleRequestAPIPath = "/api/v4/internal/kubernetes/modules/"
)
const (
ReceptiveAgentsAPIPath = "/api/v4/internal/kubernetes/receptive_agents"
)
const (
UsagePingAPIPath = "/api/v4/internal/kubernetes/usage_metrics"
)
const (
VerifyProjectAccessAPIPath = "/api/v4/internal/kubernetes/verify_project_access"
)
Variables ¶
var File_internal_gitlab_api_api_proto protoreflect.FileDescriptor
Functions ¶
func GetAgentInfo ¶
func GetProjectInfo ¶
func GetProjectInfo(ctx context.Context, client gitlab.ClientInterface, agentToken api.AgentToken, projectID string, opts ...gitlab.DoOption) (*api.ProjectInfo, error)
func GetRepositoryInfo ¶ added in v17.3.0
func GetRepositoryInfo(ctx context.Context, client gitlab.ClientInterface, projectID string, opts ...gitlab.DoOption) (*api.ProjectInfo, error)
func IsCacheableError ¶
IsCacheableError checks if an error is cacheable.
func MakeModuleRequest ¶
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
func VerifyProjectAccess ¶
Types ¶
type AccessAsAgentAuthorization ¶
type AccessAsAgentAuthorization struct {
// contains filtered or unexported fields
}
func (*AccessAsAgentAuthorization) Descriptor
deprecated
func (*AccessAsAgentAuthorization) Descriptor() ([]byte, []int)
Deprecated: Use AccessAsAgentAuthorization.ProtoReflect.Descriptor instead.
func (*AccessAsAgentAuthorization) ProtoMessage ¶
func (*AccessAsAgentAuthorization) ProtoMessage()
func (*AccessAsAgentAuthorization) ProtoReflect ¶
func (x *AccessAsAgentAuthorization) ProtoReflect() protoreflect.Message
func (*AccessAsAgentAuthorization) Reset ¶
func (x *AccessAsAgentAuthorization) Reset()
func (*AccessAsAgentAuthorization) String ¶
func (x *AccessAsAgentAuthorization) String() string
type AccessAsProxyAuthorization ¶
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
func (*AccessAsProxyAuthorization) Descriptor() ([]byte, []int)
Deprecated: Use AccessAsProxyAuthorization.ProtoReflect.Descriptor instead.
func (*AccessAsProxyAuthorization) GetAccessAs ¶
func (m *AccessAsProxyAuthorization) GetAccessAs() isAccessAsProxyAuthorization_AccessAs
func (*AccessAsProxyAuthorization) GetAgent ¶
func (x *AccessAsProxyAuthorization) GetAgent() *AccessAsAgentAuthorization
func (*AccessAsProxyAuthorization) GetUser ¶
func (x *AccessAsProxyAuthorization) GetUser() *AccessAsUserAuthorization
func (*AccessAsProxyAuthorization) ProtoMessage ¶
func (*AccessAsProxyAuthorization) ProtoMessage()
func (*AccessAsProxyAuthorization) ProtoReflect ¶
func (x *AccessAsProxyAuthorization) ProtoReflect() protoreflect.Message
func (*AccessAsProxyAuthorization) Reset ¶
func (x *AccessAsProxyAuthorization) Reset()
func (*AccessAsProxyAuthorization) String ¶
func (x *AccessAsProxyAuthorization) String() string
type AccessAsProxyAuthorization_Agent ¶
type AccessAsProxyAuthorization_Agent struct {
Agent *AccessAsAgentAuthorization `protobuf:"bytes,1,opt,name=agent,proto3,oneof"`
}
type AccessAsProxyAuthorization_User ¶
type AccessAsProxyAuthorization_User struct {
User *AccessAsUserAuthorization `protobuf:"bytes,2,opt,name=user,proto3,oneof"`
}
type AccessAsUserAuthorization ¶
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
func (*AccessAsUserAuthorization) Descriptor() ([]byte, []int)
Deprecated: Use AccessAsUserAuthorization.ProtoReflect.Descriptor instead.
func (*AccessAsUserAuthorization) GetGroups ¶
func (x *AccessAsUserAuthorization) GetGroups() []*GroupAccessCF
func (*AccessAsUserAuthorization) GetProjects ¶
func (x *AccessAsUserAuthorization) GetProjects() []*ProjectAccessCF
func (*AccessAsUserAuthorization) ProtoMessage ¶
func (*AccessAsUserAuthorization) ProtoMessage()
func (*AccessAsUserAuthorization) ProtoReflect ¶
func (x *AccessAsUserAuthorization) ProtoReflect() protoreflect.Message
func (*AccessAsUserAuthorization) Reset ¶
func (x *AccessAsUserAuthorization) Reset()
func (*AccessAsUserAuthorization) String ¶
func (x *AccessAsUserAuthorization) String() string
type AgentConfigurationRequest ¶
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
func (*AgentConfigurationRequest) Descriptor() ([]byte, []int)
Deprecated: Use AgentConfigurationRequest.ProtoReflect.Descriptor instead.
func (*AgentConfigurationRequest) GetAgentConfig ¶
func (x *AgentConfigurationRequest) GetAgentConfig() *agentcfg.ConfigurationFile
func (*AgentConfigurationRequest) GetAgentId ¶
func (x *AgentConfigurationRequest) GetAgentId() int64
func (*AgentConfigurationRequest) ProtoMessage ¶
func (*AgentConfigurationRequest) ProtoMessage()
func (*AgentConfigurationRequest) ProtoReflect ¶
func (x *AgentConfigurationRequest) ProtoReflect() protoreflect.Message
func (*AgentConfigurationRequest) Reset ¶
func (x *AgentConfigurationRequest) Reset()
func (*AgentConfigurationRequest) String ¶
func (x *AgentConfigurationRequest) String() string
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
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
type AuthorizeProxyUserRequest ¶
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
func (*AuthorizeProxyUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use AuthorizeProxyUserRequest.ProtoReflect.Descriptor instead.
func (*AuthorizeProxyUserRequest) GetAccessKey ¶
func (x *AuthorizeProxyUserRequest) GetAccessKey() string
func (*AuthorizeProxyUserRequest) GetAccessType ¶
func (x *AuthorizeProxyUserRequest) GetAccessType() string
func (*AuthorizeProxyUserRequest) GetAgentId ¶
func (x *AuthorizeProxyUserRequest) GetAgentId() int64
func (*AuthorizeProxyUserRequest) GetCsrfToken ¶
func (x *AuthorizeProxyUserRequest) GetCsrfToken() string
func (*AuthorizeProxyUserRequest) ProtoMessage ¶
func (*AuthorizeProxyUserRequest) ProtoMessage()
func (*AuthorizeProxyUserRequest) ProtoReflect ¶
func (x *AuthorizeProxyUserRequest) ProtoReflect() protoreflect.Message
func (*AuthorizeProxyUserRequest) Reset ¶
func (x *AuthorizeProxyUserRequest) Reset()
func (*AuthorizeProxyUserRequest) String ¶
func (x *AuthorizeProxyUserRequest) String() string
type AuthorizeProxyUserResponse ¶
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 ¶
func AuthorizeProxyUser(ctx context.Context, client gitlab.ClientInterface, agentID int64, accessType, accessKey, csrfToken string, opts ...gitlab.DoOption) (*AuthorizeProxyUserResponse, error)
func (*AuthorizeProxyUserResponse) Descriptor
deprecated
func (*AuthorizeProxyUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use AuthorizeProxyUserResponse.ProtoReflect.Descriptor instead.
func (*AuthorizeProxyUserResponse) GetAccessAs ¶
func (x *AuthorizeProxyUserResponse) GetAccessAs() *AccessAsProxyAuthorization
func (*AuthorizeProxyUserResponse) GetAgent ¶
func (x *AuthorizeProxyUserResponse) GetAgent() *AuthorizedAgentForUser
func (*AuthorizeProxyUserResponse) GetUser ¶
func (x *AuthorizeProxyUserResponse) GetUser() *User
func (*AuthorizeProxyUserResponse) ProtoMessage ¶
func (*AuthorizeProxyUserResponse) ProtoMessage()
func (*AuthorizeProxyUserResponse) ProtoReflect ¶
func (x *AuthorizeProxyUserResponse) ProtoReflect() protoreflect.Message
func (*AuthorizeProxyUserResponse) Reset ¶
func (x *AuthorizeProxyUserResponse) Reset()
func (*AuthorizeProxyUserResponse) String ¶
func (x *AuthorizeProxyUserResponse) String() string
type AuthorizedAgentForUser ¶
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
func (*AuthorizedAgentForUser) Descriptor() ([]byte, []int)
Deprecated: Use AuthorizedAgentForUser.ProtoReflect.Descriptor instead.
func (*AuthorizedAgentForUser) GetConfigProject ¶
func (x *AuthorizedAgentForUser) GetConfigProject() *ConfigProject
func (*AuthorizedAgentForUser) GetId ¶
func (x *AuthorizedAgentForUser) GetId() int64
func (*AuthorizedAgentForUser) ProtoMessage ¶
func (*AuthorizedAgentForUser) ProtoMessage()
func (*AuthorizedAgentForUser) ProtoReflect ¶
func (x *AuthorizedAgentForUser) ProtoReflect() protoreflect.Message
func (*AuthorizedAgentForUser) Reset ¶
func (x *AuthorizedAgentForUser) Reset()
func (*AuthorizedAgentForUser) String ¶
func (x *AuthorizedAgentForUser) String() string
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
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
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 ¶
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
type GetAgentInfoResponse ¶
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 *entity.GitalyInfo `protobuf:"bytes,4,opt,name=gitaly_info,proto3" json:"gitaly_info,omitempty"` GitalyRepository *entity.GitalyRepository `protobuf:"bytes,5,opt,name=gitaly_repository,proto3" json:"gitaly_repository,omitempty"` DefaultBranch string `protobuf:"bytes,6,opt,name=default_branch,proto3" json:"default_branch,omitempty"` // contains filtered or unexported fields }
func (*GetAgentInfoResponse) Descriptor
deprecated
func (*GetAgentInfoResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetAgentInfoResponse.ProtoReflect.Descriptor instead.
func (*GetAgentInfoResponse) GetAgentId ¶
func (x *GetAgentInfoResponse) GetAgentId() int64
func (*GetAgentInfoResponse) GetAgentName ¶
func (x *GetAgentInfoResponse) GetAgentName() string
func (*GetAgentInfoResponse) GetDefaultBranch ¶
func (x *GetAgentInfoResponse) GetDefaultBranch() string
func (*GetAgentInfoResponse) GetGitalyInfo ¶
func (x *GetAgentInfoResponse) GetGitalyInfo() *entity.GitalyInfo
func (*GetAgentInfoResponse) GetGitalyRepository ¶
func (x *GetAgentInfoResponse) GetGitalyRepository() *entity.GitalyRepository
func (*GetAgentInfoResponse) GetProjectId ¶
func (x *GetAgentInfoResponse) GetProjectId() int64
func (*GetAgentInfoResponse) ProtoMessage ¶
func (*GetAgentInfoResponse) ProtoMessage()
func (*GetAgentInfoResponse) ProtoReflect ¶
func (x *GetAgentInfoResponse) ProtoReflect() protoreflect.Message
func (*GetAgentInfoResponse) Reset ¶
func (x *GetAgentInfoResponse) Reset()
func (*GetAgentInfoResponse) String ¶
func (x *GetAgentInfoResponse) String() string
func (*GetAgentInfoResponse) ToAPIAgentInfo ¶
func (a *GetAgentInfoResponse) ToAPIAgentInfo() *api.AgentInfo
type GetProjectInfoResponse ¶
type GetProjectInfoResponse struct { ProjectId int64 `protobuf:"varint,1,opt,name=project_id,proto3" json:"project_id,omitempty"` GitalyInfo *entity.GitalyInfo `protobuf:"bytes,2,opt,name=gitaly_info,proto3" json:"gitaly_info,omitempty"` GitalyRepository *entity.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
func (*GetProjectInfoResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetProjectInfoResponse.ProtoReflect.Descriptor instead.
func (*GetProjectInfoResponse) GetDefaultBranch ¶
func (x *GetProjectInfoResponse) GetDefaultBranch() string
func (*GetProjectInfoResponse) GetGitalyInfo ¶
func (x *GetProjectInfoResponse) GetGitalyInfo() *entity.GitalyInfo
func (*GetProjectInfoResponse) GetGitalyRepository ¶
func (x *GetProjectInfoResponse) GetGitalyRepository() *entity.GitalyRepository
func (*GetProjectInfoResponse) GetProjectId ¶
func (x *GetProjectInfoResponse) GetProjectId() int64
func (*GetProjectInfoResponse) ProtoMessage ¶
func (*GetProjectInfoResponse) ProtoMessage()
func (*GetProjectInfoResponse) ProtoReflect ¶
func (x *GetProjectInfoResponse) ProtoReflect() protoreflect.Message
func (*GetProjectInfoResponse) Reset ¶
func (x *GetProjectInfoResponse) Reset()
func (*GetProjectInfoResponse) String ¶
func (x *GetProjectInfoResponse) String() string
func (*GetProjectInfoResponse) ToAPIProjectInfo ¶
func (p *GetProjectInfoResponse) ToAPIProjectInfo() *api.ProjectInfo
type GetReceptiveAgentsResponse ¶ added in v17.2.0
type GetReceptiveAgentsResponse struct { Agents []*ReceptiveAgent `protobuf:"bytes,1,rep,name=agents,proto3" json:"agents,omitempty"` // contains filtered or unexported fields }
func GetReceptiveAgents ¶ added in v17.2.0
func GetReceptiveAgents(ctx context.Context, client gitlab.ClientInterface, opts ...gitlab.DoOption) (*GetReceptiveAgentsResponse, error)
func (*GetReceptiveAgentsResponse) Descriptor
deprecated
added in
v17.2.0
func (*GetReceptiveAgentsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetReceptiveAgentsResponse.ProtoReflect.Descriptor instead.
func (*GetReceptiveAgentsResponse) GetAgents ¶ added in v17.2.0
func (x *GetReceptiveAgentsResponse) GetAgents() []*ReceptiveAgent
func (*GetReceptiveAgentsResponse) ProtoMessage ¶ added in v17.2.0
func (*GetReceptiveAgentsResponse) ProtoMessage()
func (*GetReceptiveAgentsResponse) ProtoReflect ¶ added in v17.2.0
func (x *GetReceptiveAgentsResponse) ProtoReflect() protoreflect.Message
func (*GetReceptiveAgentsResponse) Reset ¶ added in v17.2.0
func (x *GetReceptiveAgentsResponse) Reset()
func (*GetReceptiveAgentsResponse) String ¶ added in v17.2.0
func (x *GetReceptiveAgentsResponse) String() string
type GetRepositoryInfoResponse ¶ added in v17.3.0
type GetRepositoryInfoResponse struct { ProjectId int64 `protobuf:"varint,1,opt,name=project_id,proto3" json:"project_id,omitempty"` GitalyInfo *entity.GitalyInfo `protobuf:"bytes,2,opt,name=gitaly_info,proto3" json:"gitaly_info,omitempty"` GitalyRepository *entity.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 (*GetRepositoryInfoResponse) Descriptor
deprecated
added in
v17.3.0
func (*GetRepositoryInfoResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetRepositoryInfoResponse.ProtoReflect.Descriptor instead.
func (*GetRepositoryInfoResponse) GetDefaultBranch ¶ added in v17.3.0
func (x *GetRepositoryInfoResponse) GetDefaultBranch() string
func (*GetRepositoryInfoResponse) GetGitalyInfo ¶ added in v17.3.0
func (x *GetRepositoryInfoResponse) GetGitalyInfo() *entity.GitalyInfo
func (*GetRepositoryInfoResponse) GetGitalyRepository ¶ added in v17.3.0
func (x *GetRepositoryInfoResponse) GetGitalyRepository() *entity.GitalyRepository
func (*GetRepositoryInfoResponse) GetProjectId ¶ added in v17.3.0
func (x *GetRepositoryInfoResponse) GetProjectId() int64
func (*GetRepositoryInfoResponse) ProtoMessage ¶ added in v17.3.0
func (*GetRepositoryInfoResponse) ProtoMessage()
func (*GetRepositoryInfoResponse) ProtoReflect ¶ added in v17.3.0
func (x *GetRepositoryInfoResponse) ProtoReflect() protoreflect.Message
func (*GetRepositoryInfoResponse) Reset ¶ added in v17.3.0
func (x *GetRepositoryInfoResponse) Reset()
func (*GetRepositoryInfoResponse) String ¶ added in v17.3.0
func (x *GetRepositoryInfoResponse) String() string
func (*GetRepositoryInfoResponse) ToAPIProjectInfo ¶ added in v17.3.0
func (p *GetRepositoryInfoResponse) ToAPIProjectInfo() *api.ProjectInfo
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) ProtoMessage ¶
func (*Group) ProtoMessage()
func (*Group) ProtoReflect ¶
func (x *Group) ProtoReflect() protoreflect.Message
type GroupAccessCF ¶
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
func (*GroupAccessCF) Descriptor() ([]byte, []int)
Deprecated: Use GroupAccessCF.ProtoReflect.Descriptor instead.
func (*GroupAccessCF) GetId ¶
func (x *GroupAccessCF) GetId() int64
func (*GroupAccessCF) GetRoles ¶
func (x *GroupAccessCF) GetRoles() []string
func (*GroupAccessCF) ProtoMessage ¶
func (*GroupAccessCF) ProtoMessage()
func (*GroupAccessCF) ProtoReflect ¶
func (x *GroupAccessCF) ProtoReflect() protoreflect.Message
func (*GroupAccessCF) Reset ¶
func (x *GroupAccessCF) Reset()
func (*GroupAccessCF) String ¶
func (x *GroupAccessCF) String() string
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) ProtoMessage ¶
func (*Job) ProtoMessage()
func (*Job) ProtoReflect ¶
func (x *Job) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*Pipeline) ProtoMessage()
func (*Pipeline) ProtoReflect ¶
func (x *Pipeline) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*Project) ProtoMessage()
func (*Project) ProtoReflect ¶
func (x *Project) ProtoReflect() protoreflect.Message
type ProjectAccessCF ¶
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
func (*ProjectAccessCF) Descriptor() ([]byte, []int)
Deprecated: Use ProjectAccessCF.ProtoReflect.Descriptor instead.
func (*ProjectAccessCF) GetId ¶
func (x *ProjectAccessCF) GetId() int64
func (*ProjectAccessCF) GetRoles ¶
func (x *ProjectAccessCF) GetRoles() []string
func (*ProjectAccessCF) ProtoMessage ¶
func (*ProjectAccessCF) ProtoMessage()
func (*ProjectAccessCF) ProtoReflect ¶
func (x *ProjectAccessCF) ProtoReflect() protoreflect.Message
func (*ProjectAccessCF) Reset ¶
func (x *ProjectAccessCF) Reset()
func (*ProjectAccessCF) String ¶
func (x *ProjectAccessCF) String() string
type ReceptiveAgent ¶ added in v17.2.0
type ReceptiveAgent struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"` CaCert string `protobuf:"bytes,4,opt,name=ca_cert,proto3" json:"ca_cert,omitempty"` ClientCert string `protobuf:"bytes,5,opt,name=client_cert,proto3" json:"client_cert,omitempty"` ClientKey string `protobuf:"bytes,6,opt,name=client_key,proto3" json:"client_key,omitempty"` TlsHost string `protobuf:"bytes,7,opt,name=tls_host,proto3" json:"tls_host,omitempty"` // contains filtered or unexported fields }
func (*ReceptiveAgent) Descriptor
deprecated
added in
v17.2.0
func (*ReceptiveAgent) Descriptor() ([]byte, []int)
Deprecated: Use ReceptiveAgent.ProtoReflect.Descriptor instead.
func (*ReceptiveAgent) GetCaCert ¶ added in v17.2.0
func (x *ReceptiveAgent) GetCaCert() string
func (*ReceptiveAgent) GetClientCert ¶ added in v17.2.0
func (x *ReceptiveAgent) GetClientCert() string
func (*ReceptiveAgent) GetClientKey ¶ added in v17.2.0
func (x *ReceptiveAgent) GetClientKey() string
func (*ReceptiveAgent) GetId ¶ added in v17.2.0
func (x *ReceptiveAgent) GetId() int64
func (*ReceptiveAgent) GetTlsHost ¶ added in v17.2.0
func (x *ReceptiveAgent) GetTlsHost() string
func (*ReceptiveAgent) GetToken ¶ added in v17.2.0
func (x *ReceptiveAgent) GetToken() string
func (*ReceptiveAgent) GetUrl ¶ added in v17.2.0
func (x *ReceptiveAgent) GetUrl() string
func (*ReceptiveAgent) ProtoMessage ¶ added in v17.2.0
func (*ReceptiveAgent) ProtoMessage()
func (*ReceptiveAgent) ProtoReflect ¶ added in v17.2.0
func (x *ReceptiveAgent) ProtoReflect() protoreflect.Message
func (*ReceptiveAgent) Reset ¶ added in v17.2.0
func (x *ReceptiveAgent) Reset()
func (*ReceptiveAgent) String ¶ added in v17.2.0
func (x *ReceptiveAgent) String() string
type UsagePingData ¶
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) GetUsername ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message