controller

package
v0.0.0-...-9b56418 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2020 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Commit current build commit set by build script
	Commit = "0"
	// BuildTime set by build script in ISO 8601 (UTC) format: YYYY-MM-DDThh:mm:ssTZD (see https://www.w3.org/TR/NOTE-datetime for details)
	BuildTime = "0"
	// StartTime in ISO 8601 (UTC) format
	StartTime = time.Now().UTC().Format("2006-01-02T15:04:05Z")
)

Functions

This section is empty.

Types

type ClustersController

type ClustersController struct {
	*goa.Controller
	// contains filtered or unexported fields
}

ClustersController implements the clusters resource.

func NewClustersController

func NewClustersController(service *goa.Service, app application.Application) *ClustersController

NewClustersController creates a clusters controller.

func (*ClustersController) Create

Create creates a new cluster configuration for later use

func (*ClustersController) Delete

Delete deletes the cluster identified by the `clusterID` param

func (*ClustersController) LinkIdentityToCluster

func (c *ClustersController) LinkIdentityToCluster(ctx *app.LinkIdentityToClusterClustersContext) error

LinkIdentityToCluster populates Identity Cluster relationship

func (*ClustersController) List

List returns the list of available clusters.

func (*ClustersController) ListForAuthClient

func (c *ClustersController) ListForAuthClient(ctx *app.ListForAuthClientClustersContext) error

ListForAuthClient returns the list of available clusters with full configuration including Auth client data. To be used by Auth service only

func (c *ClustersController) RemoveIdentityToClusterLink(ctx *app.RemoveIdentityToClusterLinkClustersContext) error

RemoveIdentityToClusterLink removes Identity Cluster relationship

func (*ClustersController) Show

Show returns a single cluster.

func (*ClustersController) ShowForAuthClient

func (c *ClustersController) ShowForAuthClient(ctx *app.ShowForAuthClientClustersContext) error

ShowForAuthClient returns the cluster with full configuration including Auth client data. To be used by Auth service only

type DBChecker

type DBChecker interface {
	Ping() error
}

DBChecker is to be used to check if the DB is reachable

func NewGormDBChecker

func NewGormDBChecker(db *gorm.DB) DBChecker

NewGormDBChecker constructs a new GormDBChecker

type GormDBChecker

type GormDBChecker struct {
	// contains filtered or unexported fields
}

GormDBChecker implements DB checker

func (*GormDBChecker) Ping

func (c *GormDBChecker) Ping() error

Ping pings the database to verify the connection

type StatusController

type StatusController struct {
	*goa.Controller
	// contains filtered or unexported fields
}

StatusController implements the status resource.

func NewStatusController

func NewStatusController(service *goa.Service, dbChecker DBChecker, config statusConfiguration) *StatusController

NewStatusController creates a status controller.

func (*StatusController) Show

Show runs the show action.

type UserController

type UserController struct {
	*goa.Controller
	// contains filtered or unexported fields
}

UserController implements the user resource.

func NewUserController

func NewUserController(service *goa.Service, app application.Application) *UserController

NewUserController creates a user controller.

func (*UserController) Clusters

func (c *UserController) Clusters(ctx *app.ClustersUserContext) error

Clusters runs the clusters action - DEPRECATED

Jump to

Keyboard shortcuts

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