authz

package
v0.0.0-...-3f9cecd Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type AuthenticationType

type AuthenticationType string
const (
	AuthenticationTypeOIDC   AuthenticationType = "oidc"
	AuthenticationTypeLDAP   AuthenticationType = "ldap"
	AuthenticationTypeStatic AuthenticationType = "static"
	AuthenticationTypeTls    AuthenticationType = "tls"
)

type Authenticator

type Authenticator interface {
	GetEnvVars() []corev1.EnvVar
	GetVolumes() []corev1.Volume
	GetVolumeMounts() []corev1.VolumeMount
	GetConfigProperties() *properties.Properties
	GetCommands() []string
}

type Ldap

type Ldap struct {
	AuthenticationClassName string
	Provider                *authv1alpha1.LDAPProvider
}

func (*Ldap) GetCommands

func (l *Ldap) GetCommands() []string

GetCommands implements Authenticator.

func (*Ldap) GetConfigProperties

func (l *Ldap) GetConfigProperties() *properties.Properties

GetConfigProperties implements Authenticator.

func (*Ldap) GetEnvVars

func (l *Ldap) GetEnvVars() []v1.EnvVar

GetEnvVars implements Authenticator.

func (*Ldap) GetVolumeMounts

func (l *Ldap) GetVolumeMounts() []v1.VolumeMount

GetVolumeMounts implements Authenticator.

func (*Ldap) GetVolumes

func (l *Ldap) GetVolumes() []v1.Volume

GetVolumes implements Authenticator.

type Oidc

type Oidc struct {
	AuthenticationClassName string
	Config                  *trinov1alpha1.OidcSpec
	Provider                *authv1alpha1.OIDCProvider
}

func (*Oidc) GetCommands

func (o *Oidc) GetCommands() []string

func (*Oidc) GetConfigProperties

func (o *Oidc) GetConfigProperties() *properties.Properties

func (*Oidc) GetEnvVars

func (o *Oidc) GetEnvVars() []corev1.EnvVar

func (*Oidc) GetVolumeMounts

func (o *Oidc) GetVolumeMounts() []corev1.VolumeMount

func (*Oidc) GetVolumes

func (o *Oidc) GetVolumes() []corev1.Volume

type Static

type Static struct {
	AuthenticationClassName string
	Provider                *authv1alpha1.StaticProvider
}

func (*Static) GetCommands

func (s *Static) GetCommands() []string

func (*Static) GetConfigProperties

func (s *Static) GetConfigProperties() *properties.Properties

func (*Static) GetEnvVars

func (s *Static) GetEnvVars() []corev1.EnvVar

func (*Static) GetVolumeMounts

func (s *Static) GetVolumeMounts() []corev1.VolumeMount

func (*Static) GetVolumes

func (s *Static) GetVolumes() []corev1.Volume

type TrinoAuthentication

type TrinoAuthentication struct {
	Authenticators []Authenticator
}

func NewAuthentication

func NewAuthentication(
	ctx context.Context,
	client *client.Client,
	authentication []trinov1alpha1.AuthenticationSpec,
) (*TrinoAuthentication, error)

func (*TrinoAuthentication) GetCommands

func (a *TrinoAuthentication) GetCommands() []string

func (*TrinoAuthentication) GetConfigProperties

func (a *TrinoAuthentication) GetConfigProperties() *properties.Properties

func (*TrinoAuthentication) GetEnvVars

func (a *TrinoAuthentication) GetEnvVars() []corev1.EnvVar

func (*TrinoAuthentication) GetVolumeMounts

func (a *TrinoAuthentication) GetVolumeMounts() []corev1.VolumeMount

func (*TrinoAuthentication) GetVolumes

func (a *TrinoAuthentication) GetVolumes() []corev1.Volume

Jump to

Keyboard shortcuts

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