Documentation
¶
Overview ¶
Package server_api contains internal APIs that are used by server/kas code.
Index ¶
Constants ¶
View Source
const ( // AgentNameRegex // https://gitlab.com/gitlab-org/cluster-integration/gitlab-agent/-/blob/master/doc/identity_and_auth.md#agent-identity-and-name AgentNameRegex = `[a-z0-9](?:[-a-z0-9]*[a-z0-9])?` )
Variables ¶
This section is empty.
Functions ¶
func AgentToken2key ¶
func AgentToken2key(token api.AgentToken) []byte
Types ¶
type AgentkInfo ¶
type AgentkInfo struct {
// Key is the agent's type and id in the database.
Key api.AgentKey
// ProjectID is the id of the configuration project of the agent.
ProjectID int64
// Name is the agent's name.
// Can contain only /a-z\d-/
Name string
GitalyInfo *entity.GitalyInfo
Repository *gitalypb.Repository
// DefaultBranch is the name of the default branch in the agent's configuration repository.
DefaultBranch string
}
AgentkInfo contains information about an agentk.
func (*AgentkInfo) AgentKey ¶
func (a *AgentkInfo) AgentKey() api.AgentKey
type AgentwInfo ¶
AgentwInfo contains information about an agentw.
func (*AgentwInfo) AgentKey ¶
func (a *AgentwInfo) AgentKey() api.AgentKey
type ProjectInfo ¶
type ProjectInfo struct {
ProjectID int64
GitalyInfo *entity.GitalyInfo
Repository *gitalypb.Repository
// DefaultBranch is the name of the default branch in a repository.
DefaultBranch string
}
type RunnerControllerInfo ¶
type RunnerControllerInfo struct {
// Key is the agent's type and id in the database.
Key api.AgentKey
}
RunnerControllerInfo contains information about an runnerc - Agent Runner Admission Controller
func (*RunnerControllerInfo) AgentKey ¶
func (a *RunnerControllerInfo) AgentKey() api.AgentKey
Click to show internal directories.
Click to hide internal directories.