api

package
v17.5.4 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProjectInfoAPIPath  = "/api/v4/internal/kubernetes/project_info"
	ProjectIDQueryParam = "id"
)
View Source
const (
	RepositoryInfoAPIPath             = "/api/v4/internal/autoflow/repository_info"
	RepositoryInfoProjectIDQueryParam = "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 (
	EventAPIPath = "/api/v4/internal/kubernetes/agent_events"
)
View Source
const (
	ModuleRequestAPIPath = "/api/v4/internal/kubernetes/modules/"
)
View Source
const (
	ReceptiveAgentsAPIPath = "/api/v4/internal/kubernetes/receptive_agents"
)
View Source
const (
	UsagePingAPIPath = "/api/v4/internal/kubernetes/usage_metrics"
)
View Source
const (
	VerifyProjectAccessAPIPath = "/api/v4/internal/kubernetes/verify_project_access"
)

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 GetRepositoryInfo added in v17.3.0

func GetRepositoryInfo(ctx context.Context, client gitlab.ClientInterface, 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 []byte,
	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 SendEvent

func SendEvent(ctx context.Context, client gitlab.ClientInterface, data EventData, opts ...gitlab.DoOption) error

func SendUsagePing

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

func VerifyProjectAccess

func VerifyProjectAccess(ctx context.Context, client gitlab.ClientInterface, agentToken api.AgentToken, projectID string, opts ...gitlab.DoOption) (bool, error)

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 (*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 (*AccessAsProxyAuthorization) GetUser

func (*AccessAsProxyAuthorization) ProtoMessage

func (*AccessAsProxyAuthorization) ProtoMessage()

func (*AccessAsProxyAuthorization) ProtoReflect

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 (*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 (*AgentConfigurationRequest) GetAgentId

func (x *AgentConfigurationRequest) GetAgentId() int64

func (*AgentConfigurationRequest) ProtoMessage

func (*AgentConfigurationRequest) ProtoMessage()

func (*AgentConfigurationRequest) ProtoReflect

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 (*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 (*AuthorizeProxyUserResponse) GetAgent

func (*AuthorizeProxyUserResponse) GetUser

func (x *AuthorizeProxyUserResponse) GetUser() *User

func (*AuthorizeProxyUserResponse) ProtoMessage

func (*AuthorizeProxyUserResponse) ProtoMessage()

func (*AuthorizeProxyUserResponse) ProtoReflect

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 Event

type Event = any

type EventData

type EventData struct {
	Events map[string][]Event `json:"events"`
}

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 (*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 (*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) 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

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) 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

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

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

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"`
	CaCert  string `protobuf:"bytes,3,opt,name=ca_cert,proto3" json:"ca_cert,omitempty"`
	TlsHost string `protobuf:"bytes,4,opt,name=tls_host,proto3" json:"tls_host,omitempty"`
	// Types that are assignable to AuthConfig:
	//
	//	*ReceptiveAgent_Jwt
	//	*ReceptiveAgent_Mtls
	AuthConfig isReceptiveAgent_AuthConfig `protobuf_oneof:"auth_config"`
	// 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) GetAuthConfig added in v17.4.0

func (m *ReceptiveAgent) GetAuthConfig() isReceptiveAgent_AuthConfig

func (*ReceptiveAgent) GetCaCert added in v17.2.0

func (x *ReceptiveAgent) GetCaCert() string

func (*ReceptiveAgent) GetId added in v17.2.0

func (x *ReceptiveAgent) GetId() int64

func (*ReceptiveAgent) GetJwt added in v17.4.0

func (*ReceptiveAgent) GetMtls added in v17.4.0

func (*ReceptiveAgent) GetTlsHost added in v17.2.0

func (x *ReceptiveAgent) GetTlsHost() 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 ReceptiveAgentJWTAuth added in v17.4.0

type ReceptiveAgentJWTAuth struct {
	PrivateKey string `protobuf:"bytes,1,opt,name=private_key,proto3" json:"private_key,omitempty"`
	// contains filtered or unexported fields
}

func (*ReceptiveAgentJWTAuth) Descriptor deprecated added in v17.4.0

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

Deprecated: Use ReceptiveAgentJWTAuth.ProtoReflect.Descriptor instead.

func (*ReceptiveAgentJWTAuth) GetPrivateKey added in v17.4.0

func (x *ReceptiveAgentJWTAuth) GetPrivateKey() string

func (*ReceptiveAgentJWTAuth) ProtoMessage added in v17.4.0

func (*ReceptiveAgentJWTAuth) ProtoMessage()

func (*ReceptiveAgentJWTAuth) ProtoReflect added in v17.4.0

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

func (*ReceptiveAgentJWTAuth) Reset added in v17.4.0

func (x *ReceptiveAgentJWTAuth) Reset()

func (*ReceptiveAgentJWTAuth) String added in v17.4.0

func (x *ReceptiveAgentJWTAuth) String() string

type ReceptiveAgentMutualTLSAuth added in v17.4.0

type ReceptiveAgentMutualTLSAuth struct {
	ClientCert string `protobuf:"bytes,1,opt,name=client_cert,proto3" json:"client_cert,omitempty"`
	ClientKey  string `protobuf:"bytes,2,opt,name=client_key,proto3" json:"client_key,omitempty"`
	// contains filtered or unexported fields
}

func (*ReceptiveAgentMutualTLSAuth) Descriptor deprecated added in v17.4.0

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

Deprecated: Use ReceptiveAgentMutualTLSAuth.ProtoReflect.Descriptor instead.

func (*ReceptiveAgentMutualTLSAuth) GetClientCert added in v17.4.0

func (x *ReceptiveAgentMutualTLSAuth) GetClientCert() string

func (*ReceptiveAgentMutualTLSAuth) GetClientKey added in v17.4.0

func (x *ReceptiveAgentMutualTLSAuth) GetClientKey() string

func (*ReceptiveAgentMutualTLSAuth) ProtoMessage added in v17.4.0

func (*ReceptiveAgentMutualTLSAuth) ProtoMessage()

func (*ReceptiveAgentMutualTLSAuth) ProtoReflect added in v17.4.0

func (*ReceptiveAgentMutualTLSAuth) Reset added in v17.4.0

func (x *ReceptiveAgentMutualTLSAuth) Reset()

func (*ReceptiveAgentMutualTLSAuth) String added in v17.4.0

func (x *ReceptiveAgentMutualTLSAuth) String() string

type ReceptiveAgent_Jwt added in v17.4.0

type ReceptiveAgent_Jwt struct {
	Jwt *ReceptiveAgentJWTAuth `protobuf:"bytes,5,opt,name=jwt,proto3,oneof"`
}

type ReceptiveAgent_Mtls added in v17.4.0

type ReceptiveAgent_Mtls struct {
	Mtls *ReceptiveAgentMutualTLSAuth `protobuf:"bytes,6,opt,name=mtls,proto3,oneof"`
}

type UsagePingData

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

Jump to

Keyboard shortcuts

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