Documentation
¶
Index ¶
Constants ¶
View Source
const ( // TraceAgentIdAttr is tracing attribute that holds an agent id. TraceAgentIdAttr attribute.Key = "agent_id" )
Variables ¶
This section is empty.
Functions ¶
func AgentToken2key ¶
func AgentToken2key(token AgentToken) []byte
Types ¶
type AgentInfo ¶
type AgentInfo struct {
// Id is the agent's id in the database.
Id int64
// 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
}
AgentInfo contains information about an agentk.
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
}
Click to show internal directories.
Click to hide internal directories.