Documentation ¶
Index ¶
- Variables
- func CreateHttpClient(openshiftConfig openshift.Config) *http.Client
- func InitTenant(ctx context.Context, masterURL string, service tenant.Service, ...) openshift.Callback
- func OpenShiftWhoAmI(token *jwt.Token, oc openshift.Config, openshiftUserToken string) (string, error)
- func OpenshiftToken(keycloakConfig keycloak.Config, openshiftConfig openshift.Config, ...) (string, error)
- type AuthController
- type StatusController
- type TenantController
- type TenantKubeController
- type TenantToken
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 ¶
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 ¶
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 ¶
func (c *StatusController) Show(ctx *app.ShowStatusContext) error
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 ¶
func (c *TenantController) Setup(ctx *app.SetupTenantContext) error
Setup runs the setup action.
func (*TenantController) Show ¶
func (c *TenantController) Show(ctx *app.ShowTenantContext) error
Show runs the setup action.
func (*TenantController) Update ¶
func (c *TenantController) Update(ctx *app.UpdateTenantContext) error
Update runs the setup action.
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 ¶
func (c *TenantKubeController) KubeConnected(ctx *app.KubeConnectedTenantKubeContext) error
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