v2

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 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 {
	Status string            `json:"status" validate:"omitempty,oneof=Inactive Active Deprecated Deleted"`
	Phase  string            `json:"phase" validate:"omitempty,oneof=Building Testing Running Upgrading"`
	Tags   map[string]string `json:"tags" validate:"omitempty"`
}

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

func (*ClusterPatch) Validate added in v1.4.0

func (patch *ClusterPatch) 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

Jump to

Keyboard shortcuts

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