app

package
v0.0.0-...-1bc9eea Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	UAAEnabled bool
	// contains filtered or unexported fields
}

func New

func New(cfg config.Config, busolaURL string, kubeConfig *rest.Config) (App, error)

func (App) HandleConsoleRedirect

func (a App) HandleConsoleRedirect(w http.ResponseWriter, r *http.Request)

func (App) HandleHealthy

func (a App) HandleHealthy(w http.ResponseWriter, _ *http.Request)

func (App) HandleIndexRedirect

func (a App) HandleIndexRedirect(w http.ResponseWriter, r *http.Request)

func (App) HandleStaticAssets

func (a App) HandleStaticAssets(w http.ResponseWriter, r *http.Request)

func (App) HandleStaticIndex

func (a App) HandleStaticIndex(w http.ResponseWriter, r *http.Request)

func (App) HandleStaticSuccess

func (a App) HandleStaticSuccess(w http.ResponseWriter, r *http.Request)

func (App) HandleXSUAACallback

func (a App) HandleXSUAACallback(w http.ResponseWriter, r *http.Request)

func (App) HandleXSUAAMigrate

func (a App) HandleXSUAAMigrate(w http.ResponseWriter, r *http.Request)

type HTMLRenderer

type HTMLRenderer interface {
	RenderTemplate(w io.Writer, templateName renderer.TemplateName, data interface{}) error
}

type JWTService

type JWTService interface {
	ParseAndVerify(jwtSrc, jwksURI string) (jwxjwt.Token, error)
	GetUser(token jwxjwt.Token) (model.User, error)
}

type K8sClient

type K8sClient interface {
	EnsureUserPermissions(user model.User) error
}

type UAAClient

type UAAClient interface {
	GetOpenIDConfiguration() (uaa.OpenIDConfiguration, error)
	GetAuthorizationEndpointWithParams(authzEndpoint, oauthState string) (string, error)
	GetToken(tokenEndpoint string, authCode string) (map[string]interface{}, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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