Documentation ¶
Index ¶
- Variables
- type ClustersController
- func (c *ClustersController) Create(ctx *app.CreateClustersContext) error
- func (c *ClustersController) Delete(ctx *app.DeleteClustersContext) error
- func (c *ClustersController) LinkIdentityToCluster(ctx *app.LinkIdentityToClusterClustersContext) error
- func (c *ClustersController) List(ctx *app.ListClustersContext) error
- func (c *ClustersController) ListForAuthClient(ctx *app.ListForAuthClientClustersContext) error
- func (c *ClustersController) RemoveIdentityToClusterLink(ctx *app.RemoveIdentityToClusterLinkClustersContext) error
- func (c *ClustersController) Show(ctx *app.ShowClustersContext) error
- func (c *ClustersController) ShowForAuthClient(ctx *app.ShowForAuthClientClustersContext) error
- type DBChecker
- type GormDBChecker
- type StatusController
- type UserController
Constants ¶
This section is empty.
Variables ¶
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 ¶
func (c *ClustersController) Create(ctx *app.CreateClustersContext) error
Create creates a new cluster configuration for later use
func (*ClustersController) Delete ¶
func (c *ClustersController) Delete(ctx *app.DeleteClustersContext) error
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 ¶
func (c *ClustersController) List(ctx *app.ListClustersContext) error
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 (*ClustersController) RemoveIdentityToClusterLink ¶
func (c *ClustersController) RemoveIdentityToClusterLink(ctx *app.RemoveIdentityToClusterLinkClustersContext) error
RemoveIdentityToClusterLink removes Identity Cluster relationship
func (*ClustersController) Show ¶
func (c *ClustersController) Show(ctx *app.ShowClustersContext) error
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 ¶
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 ¶
func (c *StatusController) Show(ctx *app.ShowStatusContext) error
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