wasm

package module
v0.0.0-...-2b272fd Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

README

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdmissionConfig

type AdmissionConfig struct {
	Modules []AdmissionModuleConfig `json:"modules"`
}

type AdmissionModuleConfig

type AdmissionModuleConfig struct {
	File     string `json:"file"`
	Mutating bool   `json:"mutating"`
	Settings interface{}
}

type Admiter

type Admiter struct {
}

func NewAdmiter

func NewAdmiter() *Admiter

func (*Admiter) Admit

func (a *Admiter) Admit(ctx context.Context, attr k8s.Attributes, o k8s.ObjectInterfaces) (err error)

func (*Admiter) Handles

func (a *Admiter) Handles(operation k8s.Operation) bool

func (*Admiter) Validate

func (a *Admiter) Validate(ctx context.Context, attr k8s.Attributes, o k8s.ObjectInterfaces) (err error)

type AuthenticationConfig

type AuthenticationConfig struct {
	Modules []AuthenticationModuleConfig `json:"modules"`
}

type AuthenticationModuleConfig

type AuthenticationModuleConfig struct {
	File      string `json:"file"`
	Settings  interface{}
	Audiences []string
}

type Authenticator

type Authenticator struct {
	// contains filtered or unexported fields
}

func NewAuthenticatorWithConfig

func NewAuthenticatorWithConfig(config *AuthenticationModuleConfig) (*Authenticator, error)

func (*Authenticator) AuthenticateToken

func (a *Authenticator) AuthenticateToken(ctx context.Context, token string) (*authn.Response, bool, error)

type AuthorizationConfig

type AuthorizationConfig struct {
	Modules []AuthorizationModuleConfig `json:"modules"`
}

type AuthorizationModuleConfig

type AuthorizationModuleConfig struct {
	File     string `json:"file"`
	Settings interface{}
}

type Authorizer

type Authorizer struct {
}

func NewAuthorizer

func NewAuthorizer() *Authorizer

func (*Authorizer) Authorize

func (a *Authorizer) Authorize(ctx context.Context, attrs k8s.Attributes) (authorized k8s.Decision, reason string, err error)

type WASIAuthenticationRequest

type WASIAuthenticationRequest struct {
	Request  *authv1.TokenReview `json:"request,omitempty"`
	Settings interface{}         `json:"settings,omitempty"`
}

type WASIAuthenticationResponse

type WASIAuthenticationResponse struct {
	Response *authv1.TokenReview `json:"response,omitempty"`
	Error    *string             `json:"error,omitempty"`
}

Jump to

Keyboard shortcuts

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