controller

package
v0.0.0-...-e35233a Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2022 License: Apache-2.0 Imports: 13 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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

Jump to

Keyboard shortcuts

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