server

package
v1.8.8 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2026 License: Apache-2.0 Imports: 79 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GroupByImageRepository = "image_repo"
	GroupByGitRepository   = "git_repo"
	GroupByChartRepository = "chart_repo"

	OrderByFirstSeen = "first_seen"
	OrderByTag       = "tag"
)
View Source
const CLIVersionHeader = "X-Kargo-CLI-Version"

CLIVersionHeader is the HTTP header used to convey the CLI version in requests to the API server.

TODO(krancour): Move this closer to CLI-version-checking middleware once it exists.

Variables

This section is empty.

Functions

func NewHealthChecker

func NewHealthChecker() grpchealth.Checker

Types

type ImageStageMap added in v1.8.8

type ImageStageMap struct {
	Stages map[string]int32 `json:"stages"`

} // @name ImageStageMap

ImageStageMap represents the stages where an image is used

type RefreshResourceType added in v1.8.8

type RefreshResourceType string

RefreshResourceType represents the type of Kargo resource to refresh.

const (
	RefreshResourceTypeClusterConfig RefreshResourceType = "ClusterConfig"
	RefreshResourceTypeProjectConfig RefreshResourceType = "ProjectConfig"
	RefreshResourceTypeStage         RefreshResourceType = "Stage"
	RefreshResourceTypeWarehouse     RefreshResourceType = "Warehouse"
)

RefreshResourceType constants for supported resource types. They are PascalCase representations of the Kargo resource kinds for compatibility purposes with Kubernetes REST mappers.

func (RefreshResourceType) IsNamespaced added in v1.8.8

func (t RefreshResourceType) IsNamespaced() bool

IsNamespaced returns true if the resource type is namespaced.

func (RefreshResourceType) NameEqualsProject added in v1.8.8

func (t RefreshResourceType) NameEqualsProject() bool

NameEqualsProject returns true if the name of the resource should be the same as the project name. This is true for ProjectConfig resources.

func (RefreshResourceType) String added in v1.8.8

func (t RefreshResourceType) String() string

String returns the string representation of the RefreshResourceType.

type Server

type Server interface {
	Serve(ctx context.Context, l net.Listener) error
}

func NewServer

func NewServer(
	cfg config.ServerConfig,
	kubeClient kubernetes.Client,
	rolesDB rbac.RolesDatabase,
	sender event.Sender,
) Server

type TagMap added in v1.8.8

type TagMap struct {
	Tags map[string]*ImageStageMap `json:"tags"`

} // @name TagMap

TagMap represents the tags for a repository

type WatchEvent added in v1.8.8

type WatchEvent[T any] struct {
	Type   string `json:"type"`
	Object T      `json:"object"`
}

WatchEvent represents a watch event in an SSE stream. It contains the event type (ADDED, MODIFIED, DELETED) and the object that was affected.

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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