Documentation ¶
Index ¶
- type AuthConfig
- type ClusterRequest
- func (r *ClusterRequest) DeleteHandlerCluster(ctx *gin.Context)
- func (r *ClusterRequest) DeleteHandlerClusters(ctx *gin.Context)
- func (r *ClusterRequest) GetHandler(ctx *gin.Context)
- func (r *ClusterRequest) GetHandlerClusterReq(ctx *gin.Context)
- func (r *ClusterRequest) GetHandlerClusters(ctx *gin.Context)
- func (r *ClusterRequest) GetHandlerZones(ctx *gin.Context)
- func (r *ClusterRequest) GetUsersHandler(ctx *gin.Context)
- func (r *ClusterRequest) PostHandler(ctx *gin.Context)
- func (r *ClusterRequest) PostUsersHandler(ctx *gin.Context)
- type HealthCheck
- type HealthCheckConfig
- type HealthChecker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthConfig ¶
type AuthConfig struct {
// contains filtered or unexported fields
}
AuthConfig implements the auth config endpoint, which is invoked to retrieve the auth config for the ui.
func NewAuthConfig ¶
func NewAuthConfig(config *configuration.Config) *AuthConfig
NewAuthConfig returns a new AuthConfig instance.
func (*AuthConfig) GetHandler ¶
func (ac *AuthConfig) GetHandler(ctx *gin.Context)
GetHandler returns raw auth config content for UI.
type ClusterRequest ¶
type ClusterRequest struct {
// contains filtered or unexported fields
}
ClusterRequest implements the cluster request endpoint
func NewClusterRequest ¶
func NewClusterRequest(config *configuration.Config) *ClusterRequest
NewClusterRequest returns a new ClusterRequest instance.
func (*ClusterRequest) DeleteHandlerCluster ¶
func (r *ClusterRequest) DeleteHandlerCluster(ctx *gin.Context)
DeleteHandlerCluster deletes Cluster resource
func (*ClusterRequest) DeleteHandlerClusters ¶
func (r *ClusterRequest) DeleteHandlerClusters(ctx *gin.Context)
DeleteHandlerClusters deletes Cluster resources with the given IDs
func (*ClusterRequest) GetHandler ¶
func (r *ClusterRequest) GetHandler(ctx *gin.Context)
GetHandler returns ClusterRequest resources
func (*ClusterRequest) GetHandlerClusterReq ¶
func (r *ClusterRequest) GetHandlerClusterReq(ctx *gin.Context)
GetHandlerClusterReq returns ClusterRequest resource
func (*ClusterRequest) GetHandlerClusters ¶
func (r *ClusterRequest) GetHandlerClusters(ctx *gin.Context)
GetHandlerClusters returns not deleted Cluster resources for the given zone
func (*ClusterRequest) GetHandlerZones ¶
func (r *ClusterRequest) GetHandlerZones(ctx *gin.Context)
GetHandlerZones returns Zones resource
func (*ClusterRequest) GetUsersHandler ¶
func (r *ClusterRequest) GetUsersHandler(ctx *gin.Context)
GetUsersHandler returns all users as an array (JSON)
func (*ClusterRequest) PostHandler ¶
func (r *ClusterRequest) PostHandler(ctx *gin.Context)
PostHandler creates a ClusterRequest resource
func (*ClusterRequest) PostUsersHandler ¶
func (r *ClusterRequest) PostUsersHandler(ctx *gin.Context)
PostUsersHandler creates N number of users and returns them as an array (JSON)
type HealthCheck ¶
type HealthCheck struct {
// contains filtered or unexported fields
}
HealthCheck implements the health endpoint.
func NewHealthCheck ¶
func NewHealthCheck(config HealthCheckConfig, checker HealthChecker) *HealthCheck
HealthCheck returns a new HealthCheck instance.
func (*HealthCheck) GetHandler ¶
func (hc *HealthCheck) GetHandler(ctx *gin.Context)
GetHandler returns a default heath check result.
type HealthCheckConfig ¶
type HealthCheckConfig interface {
GetEnvironment() string
}
type HealthChecker ¶
type HealthChecker interface {
Alive() bool
}
func NewHealthChecker ¶
func NewHealthChecker(config HealthCheckConfig) HealthChecker