server_api

package
v18.6.0-rc42 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package server_api contains internal APIs that are used by server/kas code.

Index

Constants

Variables

This section is empty.

Functions

func AgentToken2key

func AgentToken2key(token api.AgentToken) []byte

Types

type AgentInfo

type AgentInfo interface {
	AgentKey() api.AgentKey
}

AgentInfo is an interface to represent information about different types of agent.

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

type AgentwInfo struct {
	// Key is the agent's type and id in the database.
	Key api.AgentKey
}

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

Jump to

Keyboard shortcuts

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