controller

package
v0.0.0-...-221a34a Latest Latest
Warning

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

Go to latest
Published: May 10, 2017 License: Apache-2.0 Imports: 17 Imported by: 0

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

func GetNamespaceType

func GetNamespaceType(name string) tenant.NamespaceType

GetNamespaceType attempts to extract the namespace type based on namespace name

func InitTenant

func InitTenant(ctx context.Context, masterURL string, service tenant.Service, currentTenant *tenant.Tenant) openshift.Callback

InitTenant is a Callback that assumes a new tenant is being created

Types

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 status resource.

func NewTenantController

func NewTenantController(service *goa.Service, tenantService tenant.Service, keycloakConfig keycloak.Config, openshiftConfig openshift.Config, templateVars map[string]string) *TenantController

NewTenantController creates a status controller.

func (*TenantController) Setup

Setup runs the setup action.

func (*TenantController) Show

Show runs the setup action.

func (*TenantController) Update

Update runs the setup action.

type TenantToken

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

func (TenantToken) Email

func (t TenantToken) Email() string

func (TenantToken) Subject

func (t TenantToken) Subject() uuid.UUID

Jump to

Keyboard shortcuts

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