controller

package
v0.0.0-...-f7471f1 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

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) 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) PostHandler

func (r *ClusterRequest) PostHandler(ctx *gin.Context)

PostHandler creates a ClusterRequest resource

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