controller

package
v0.0.0-...-bf90f01 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SERVICE_ACCOUNTS = []string{"fabric8-jenkins-idler", "rh-che"}

Functions

func GetClusterMapping

func GetClusterMapping(ctx context.Context, clusterService cluster.Service, namespaces []*tenant.Namespace) (cluster.ForType, error)

func GetNamespaceByType

func GetNamespaceByType(namespaces []*tenant.Namespace) map[environment.Type]*tenant.Namespace

Types

type ClusterResolver

type ClusterResolver func(ctx context.Context, target string) (cluster.Cluster, error)

type NamespaceFilter

type NamespaceFilter func(namespace tenant.Namespace) bool

type StatusController

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

StatusController implements the status resource.

func NewStatusController

func NewStatusController(service *goa.Service, db *gorm.DB) *StatusController

NewStatusController creates a status controller.

func (*StatusController) Show

Show runs the show action.

type TenantController

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

TenantController implements the tenant resource.

func NewTenantController

func NewTenantController(
	service *goa.Service,
	tenantService tenant.Service,
	clusterService cluster.Service,
	authClientService auth.Service,
	config *configuration.Data) *TenantController

NewTenantController creates a tenant controller.

func (*TenantController) Clean

Clean runs the clean action.

func (*TenantController) Setup

Setup runs the setup action.

func (*TenantController) Show

Show runs the show action.

func (*TenantController) Update

Update runs the update action.

type TenantUpdater

type TenantUpdater struct {
	ClusterService cluster.Service
	TenantService  tenant.Service
	Config         *configuration.Data
}

func (TenantUpdater) Update

func (u TenantUpdater) Update(ctx context.Context, dbTenant *tenant.Tenant, user *auth.User, envTypes []environment.Type, allowSelfHealing bool) error

type TenantsController

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

TenantsController implements the tenants resource.

func NewTenantsController

func NewTenantsController(
	service *goa.Service,
	tenantService tenant.Service,
	clusterService cluster.Service,
	authClientService auth.Service,
	config *configuration.Data) *TenantsController

NewTenantsController creates a tenants controller.

func (*TenantsController) Delete

Delete runs the `delete` action to deprovision a user

func (*TenantsController) Search

Search runs the search action.

func (*TenantsController) Show

Show runs the show action.

type UpdateController

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

UpdateController implements the update resource.

func NewUpdateController

func NewUpdateController(service *goa.Service, db *gorm.DB, config *configuration.Data, clusterService cluster.Service, updateExecutor update.Executor) *UpdateController

NewUpdateController creates a update controller.

func (*UpdateController) Show

Show runs the show action.

func (*UpdateController) Start

Start runs the start action.

func (*UpdateController) Stop

Stop runs the stop action.

Jump to

Keyboard shortcuts

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