controllers

package
v0.0.0-...-7d604d6 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChainReconciler

type ChainReconciler struct {
	client.Client
	Log                       logr.Logger
	Scheme                    *runtime.Scheme
	Threads                   int
	AuthserviceDeploymentName string
}

ChainReconciler reconciles a Chain object

func (*ChainReconciler) Reconcile

func (r *ChainReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)

Reconcile creates/updates the AuthService configuration when a Chain is modified.

func (*ChainReconciler) SetupWithManager

func (r *ChainReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager connects the controller with the manager.

type JSONChain

type JSONChain struct {
	Name    string       `json:"name,omitempty"`
	Match   *JSONMatch   `json:"match,omitempty"`
	Filters []JSONFilter `json:"filters,omitempty"`
}

JSONChain is part of the ConfigMap data.

type JSONConfigData

type JSONConfigData struct {
	ListenAddress string       `json:"listen_address,omitempty"`
	ListenPort    string       `json:"listen_port,omitempty"`
	LogLevel      string       `json:"log_level,omitempty"`
	Threads       int          `json:"threads,omitempty"`
	Chains        []*JSONChain `json:"chains,omitempty"`
}

JSONConfigData is part of the ConfigMap data.

type JSONFilter

type JSONFilter struct {
	Oidc *JSONOidc `json:"oidc,omitempty"`
}

JSONFilter is part of the ConfigMap data.

type JSONMatch

type JSONMatch struct {
	Header   string `json:"header,omitempty"`
	Criteria string `json:"criteria,omitempty"`
	Prefix   string `json:"prefix,omitempty"`
	Equality string `json:"equality,omitempty"`
}

JSONMatch is part of the ConfigMap data.

type JSONOidc

type JSONOidc struct {
	AuthorizationURI            string     `json:"authorization_uri"`
	TokenURI                    string     `json:"token_uri"`
	CallbackURI                 string     `json:"callback_uri"`
	ClientID                    string     `json:"client_id"`
	Jwks                        string     `json:"jwks"`
	ClientSecret                string     `json:"client_secret"`
	TrustedCertificateAuthority string     `json:"trusted_certificate_authority,omitempty"`
	Scopes                      []string   `json:"scopes"`
	CookieNamePrefix            string     `json:"cookie_name_prefix,omitempty"`
	IDToken                     *JSONToken `json:"id_token"`
	AccessToken                 *JSONToken `json:"access_token,omitempty"`
}

JSONOidc is part of the ConfigMap data.

type JSONToken

type JSONToken struct {
	Preamble string `json:"preamble,omitempty"`
	Header   string `json:"header,omitempty"`
}

JSONToken is part of the ConfigMap data.

Jump to

Keyboard shortcuts

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