controller

package
v0.0.0-...-4cfaa68 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2017 License: Apache-2.0 Imports: 19 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 CreateHttpClient

func CreateHttpClient(openshiftConfig openshift.Config) *http.Client

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

func OpenShiftWhoAmI

func OpenShiftWhoAmI(token *jwt.Token, oc openshift.Config, openshiftUserToken string) (string, error)

func OpenshiftToken

func OpenshiftToken(keycloakConfig keycloak.Config, openshiftConfig openshift.Config, token *jwt.Token) (string, error)

Types

type AuthController

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

AuthController implements the auth resource.

func NewAuthController

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

NewAuthController creates a auth controller.

func (*AuthController) AuthToken

func (c *AuthController) AuthToken(ctx *app.AuthTokenAuthContext) error

AuthToken runs the authToken action.

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.

func (*TenantController) WhoAmI

func (c *TenantController) WhoAmI(token *jwt.Token, openshiftUserToken string) (string, error)

type TenantKubeController

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

TenantKubeController implements the tenantKube resource.

func NewTenantKubeController

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

NewTenantKubeController creates a tenantKube controller.

func (*TenantKubeController) KubeConnected

KubeConnected checks that kubernetes tenant is connected with KeyCloak.

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

func (TenantToken) Username

func (t TenantToken) Username() string

Jump to

Keyboard shortcuts

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