Documentation ¶
Index ¶
- Constants
- 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 MakeModuleRequest(ctx context.Context, client gitlab.ClientInterface, agentToken api.AgentToken, ...) (*http.Response, error)
- func SendUsagePing(ctx context.Context, client gitlab.ClientInterface, counters map[string]int64) error
- type AllowedAgent
- type AllowedAgentsForJob
- type ConfigProject
- type Job
- type Pipeline
- type Project
- type ProjectInfoResponse
- type User
Constants ¶
View Source
const ( ProjectInfoApiPath = "/api/v4/internal/kubernetes/project_info" ProjectIdQueryParam = "id" )
View Source
const (
AgentInfoApiPath = "/api/v4/internal/kubernetes/agent_info"
)
View Source
const (
AllowedAgentsApiPath = "/api/v4/job/allowed_agents"
)
View Source
const (
ModuleRequestApiPath = "/api/v4/internal/kubernetes/modules/"
)
View Source
const (
UsagePingApiPath = "/api/v4/internal/kubernetes/usage_metrics"
)
Variables ¶
This section is empty.
Functions ¶
func GetAgentInfo ¶
func GetAgentInfo(ctx context.Context, client gitlab.ClientInterface, agentToken api.AgentToken) (*api.AgentInfo, error)
func GetProjectInfo ¶ added in v14.1.1
func GetProjectInfo(ctx context.Context, client gitlab.ClientInterface, agentToken api.AgentToken, projectId string) (*api.ProjectInfo, error)
func MakeModuleRequest ¶ added in v14.1.1
func SendUsagePing ¶ added in v14.1.1
Types ¶
type AllowedAgent ¶ added in v14.1.1
type AllowedAgent struct { Id int64 `json:"id"` ConfigProject ConfigProject `json:"config_project"` }
type AllowedAgentsForJob ¶ added in v14.1.1
type AllowedAgentsForJob struct { AllowedAgents []AllowedAgent `json:"allowed_agents"` Job Job `json:"job"` Pipeline Pipeline `json:"pipeline"` Project Project `json:"project"` User User `json:"user"` }
func GetAllowedAgentsForJob ¶ added in v14.1.1
func GetAllowedAgentsForJob(ctx context.Context, client gitlab.ClientInterface, jobToken string) (*AllowedAgentsForJob, error)
type ConfigProject ¶ added in v14.1.1
type ConfigProject struct {
Id int64 `json:"id"`
}
type ProjectInfoResponse ¶ added in v14.1.1
type ProjectInfoResponse struct { ProjectId int64 `json:"project_id"` GitalyInfo gitlab.GitalyInfo `json:"gitaly_info"` GitalyRepository gitlab.GitalyRepository `json:"gitaly_repository"` }
Click to show internal directories.
Click to hide internal directories.