Documentation
¶
Index ¶
Constants ¶
const ( GroupByImageRepository = "image_repo" GroupByGitRepository = "git_repo" GroupByChartRepository = "chart_repo" OrderByFirstSeen = "first_seen" OrderByTag = "tag" )
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
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 ¶
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
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
¶
- abort_promotion_v1alpha1.go
- abort_verification_v1alpha1.go
- admin_login_v1alpha1.go
- approve_freight_v1alpha1.go
- auth_middleware.go
- body_limit_middleware.go
- common.go
- create_api_token_v1alpha1.go
- create_config_map_v1alpha1.go
- create_generic_credentials_v1alpha1.go
- create_or_update_resource_v1alpha1.go
- create_repo_credentials_v1alpha1.go
- create_resource_v1alpha1.go
- create_role_v1alpha1.go
- delete_analysistemplate_v1alpha1.go
- delete_api_token_v1alpha1.go
- delete_cluster_config_v1alpha1.go
- delete_clusteranalysistemplate_v1alpha1.go
- delete_config_map_v1alpha1.go
- delete_freight_v1alpha1.go
- delete_generic_credentials_v1alpha1.go
- delete_project_config_v1alpha1.go
- delete_project_v1alpha1.go
- delete_repo_credentials_v1alpha1.go
- delete_resource_v1alpha1.go
- delete_role_v1alpha1.go
- delete_stage_v1alpha1.go
- delete_warehouse_v1alpha1.go
- get_analysisrun_logs_v1alpha1.go
- get_analysisrun_v1alpha1.go
- get_analysistemplate_v1alpha1.go
- get_api_token_v1alpha1.go
- get_cluster_config_v1alpha1.go
- get_cluster_promotion_task_v1alpha1.go
- get_clusteranalysistemplate_v1alpha1.go
- get_config_map_v1alpha1.go
- get_config_v1alpha1.go
- get_freight_v1alpha1.go
- get_generic_credentials_v1alpha1.go
- get_project_config_v1alpha1.go
- get_project_v1alpha1.go
- get_promotion_task_v1alpha1.go
- get_promotion_v1alpha1.go
- get_public_config_v1alpha1.go
- get_repo_credentials_v1alpha1.go
- get_role_v1alpha1.go
- get_stage_v1alpha1.go
- get_version_info_v1alpha1.go
- get_warehouse_v1alpha1.go
- grant_v1alpha1.go
- grpc_health.go
- list_analysistemplates_v1alpha1.go
- list_api_tokens_v1alpha1.go
- list_cluster_promotion_tasks_v1alpha1.go
- list_clusteranalysistemplates_v1alpha1.go
- list_config_maps_v1alpha1.go
- list_generic_credentials_v1alpha1.go
- list_images_v1alpha1.go
- list_project_events_v1alpha1.go
- list_projects_v1alpha1.go
- list_promotion_tasks_v1alpha1.go
- list_promotions_v1alpha1.go
- list_repo_credentials_v1alpha1.go
- list_roles_v1alpha1.go
- list_stages_v1alpha1.go
- list_warehouses_v1alpha1.go
- patch_config_map_v1alpha1.go
- patch_generic_credentials_v1alpha1.go
- patch_repo_credentials_v1alpha1.go
- project_middleware.go
- promote_downstream_v1alpha1.go
- promote_to_stage_v1alpha1.go
- query_freights_v1alpha1.go
- refresh_cluster_config_v1alpha1.go
- refresh_project_config_v1alpha1.go
- refresh_promotion_v1alpha1.go
- refresh_stage_v1alpha1.go
- refresh_v1alpha1.go
- refresh_warehouse_v1alpha1.go
- rest_router.go
- reverify_v1alpha1.go
- revoke_v1alpha1.go
- server.go
- update_config_map_v1alpha1.go
- update_freight_alias_v1alpha1.go
- update_generic_credentials_v1alpha1.go
- update_repo_credentials_v1alpha1.go
- update_resource_v1alpha1.go
- update_role_v1alpha1.go
- validators.go
- watch_cluster_config_v1alpha1.go
- watch_freight_v1alpha1.go
- watch_helpers.go
- watch_project_config_v1alpha1.go
- watch_promotion_v1alpha1.go
- watch_promotions_v1alpha1.go
- watch_stages_v1alpha1.go
- watch_warehouses_v1alpha1.go