Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterPatch ¶
type ClusterPatch struct {
Spec ClusterSpec `json:"spec" validate:"required"`
}
type ClusterSpec ¶
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 ¶
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, cache *cache.Cache[string]) Handler
NewHandler func
type ServiceMetadata ¶
type ServiceMetadata struct { Name string `json:"name"` ServiceMetadata registryv1.ServiceMetadata `json:"services"` }
Click to show internal directories.
Click to hide internal directories.