v2

package
v1.5.6 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterPatch added in v1.4.0

type ClusterPatch struct {
	Spec ClusterSpec `json:"spec" validate:"required"`
}

type ClusterSpec added in v1.4.1

type ClusterSpec struct {
	Status *string            `json:"status,omitempty" validate:"omitempty,oneof=Inactive Active Deprecated Deleted"`
	Phase  *string            `json:"phase,omitempty" validate:"omitempty,oneof=Building Testing Running Upgrading"`
	Tags   *map[string]string `json:"tags,omitempty" validate:"omitempty"`
}

ClusterSpec is the struct for updating a cluster's dynamic fields

func (*ClusterSpec) Validate added in v1.4.1

func (patch *ClusterSpec) Validate(c echo.Context) error

type Handler

type Handler interface {
	GetCluster(echo.Context) error
	PatchCluster(echo.Context) error
	ListClusters(echo.Context) error
	Register(*echo.Group)
}

Handler interface

func NewHandler

func NewHandler(appConfig *config.AppConfig, d database.Db, m monitoring.MetricsI, kcp k8s.ClientProviderI) Handler

NewHandler func

type ServiceMetadata added in v1.5.1

type ServiceMetadata struct {
	Name            string                     `json:"name"`
	ServiceMetadata registryv1.ServiceMetadata `json:"services"`
}

Jump to

Keyboard shortcuts

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