web

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2021 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CoreService = providers.NewMultiResourceIdent(ProvName, "core_service", &core.Service{})

CoreService is the service for the apps deployments.

View Source
var ProvName = "web"

ProvName sets the provider name identifier

View Source
var WebBOPDeployment = providers.NewSingleResourceIdent(ProvName, "web_bop_deployment", &apps.Deployment{})

WebBOPDeployment is the mocked bop deployment

View Source
var WebBOPIngress = providers.NewSingleResourceIdent(ProvName, "web_bop_ingress", &networking.Ingress{})

WebKeycloakIngress is the mocked bop ingress

View Source
var WebBOPService = providers.NewSingleResourceIdent(ProvName, "web_bop_service", &core.Service{})

WebKeycloakService is the mocked keycloak deployment

View Source
var WebIngress = providers.NewMultiResourceIdent(ProvName, "web_ingress", &networking.Ingress{})

WebIngress is the mocked secret config

View Source
var WebKeycloakDeployment = providers.NewSingleResourceIdent(ProvName, "web_keycloak_deployment", &apps.Deployment{})

WebKeycloakDeployment is the mocked keycloak deployment

View Source
var WebKeycloakIngress = providers.NewSingleResourceIdent(ProvName, "web_keycloak_ingress", &networking.Ingress{})

WebKeycloakIngress is the keycloak ingress

View Source
var WebKeycloakSecret = providers.NewSingleResourceIdent(ProvName, "web_keycloak_secret", &core.Secret{})

WebKeycloakSecret is the mocked secret config

View Source
var WebKeycloakService = providers.NewSingleResourceIdent(ProvName, "web_keycloak_service", &core.Service{})

WebKeycloakService is the mocked keycloak deployment

View Source
var WebSecret = providers.NewMultiResourceIdent(ProvName, "web_secret", &core.Secret{})

WebSecret is the mocked secret config

Functions

func GetWeb

GetEnd returns the correct end provider.

func NewLocalWebProvider added in v0.21.0

func NewLocalWebProvider(p *providers.Provider) (providers.ClowderProvider, error)

Types

type AuthStruct added in v0.21.0

type AuthStruct struct {
	AccessToken string `json:"access_token"`
}

type Client added in v0.21.0

type Client struct {
	ClientId string `json:"clientId"`
}

type ClientResponse added in v0.21.0

type ClientResponse []Client

type KeyCloakClient added in v0.21.0

type KeyCloakClient struct {
	BaseURL     string
	Username    string
	Password    string
	AccessToken string
	Ctx         context.Context
	Log         logr.Logger
}

func NewKeyCloakClient added in v0.21.0

func NewKeyCloakClient(BaseUrl string, Username string, Password string, BaseCtx context.Context, Log logr.Logger) (*KeyCloakClient, error)

func (*KeyCloakClient) Get added in v0.21.0

func (k *KeyCloakClient) Get(url string, body string, headers map[string]string) (*http.Response, error)

func (*KeyCloakClient) Post added in v0.21.0

func (k *KeyCloakClient) Post(url string, body string, headers map[string]string) (*http.Response, error)

type KeycloakConfig added in v0.21.0

type KeycloakConfig struct {
	URL             string
	Username        string
	Password        string
	DefaultUsername string
	DefaultPassword string
}

type Realm added in v0.21.0

type Realm struct {
	Realm string `json:"realm"`
}

type RealmResponse added in v0.21.0

type RealmResponse []Realm

type User added in v0.21.0

type User struct {
	Username string `json:"username"`
}

type UserResponse added in v0.21.0

type UserResponse []User

Jump to

Keyboard shortcuts

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