Documentation ¶
Index ¶
- func AuthenticatorFectory(config *trinov1alpha1.OidcSpec, provider *authv1alpha1.AuthenticationProvider) (AuthenticationType, Authenticator)
- type AuthenticationType
- type Authenticator
- type Ldap
- type Oidc
- type Static
- type TrinoAuthentication
- func (a *TrinoAuthentication) GetCommands() []string
- func (a *TrinoAuthentication) GetConfigProperties() *properties.Properties
- func (a *TrinoAuthentication) GetEnvVars() []corev1.EnvVar
- func (a *TrinoAuthentication) GetVolumeMounts() []corev1.VolumeMount
- func (a *TrinoAuthentication) GetVolumes() []corev1.Volume
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthenticatorFectory ¶
func AuthenticatorFectory(config *trinov1alpha1.OidcSpec, provider *authv1alpha1.AuthenticationProvider) (AuthenticationType, Authenticator)
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 ¶
GetCommands implements Authenticator.
func (*Ldap) GetConfigProperties ¶
func (l *Ldap) GetConfigProperties() *properties.Properties
GetConfigProperties implements Authenticator.
func (*Ldap) GetEnvVars ¶
GetEnvVars implements Authenticator.
func (*Ldap) GetVolumeMounts ¶
func (l *Ldap) GetVolumeMounts() []v1.VolumeMount
GetVolumeMounts implements Authenticator.
func (*Ldap) GetVolumes ¶
GetVolumes implements Authenticator.
type Oidc ¶
type Oidc struct { AuthenticationClassName string Config *trinov1alpha1.OidcSpec Provider *authv1alpha1.OIDCProvider }
func (*Oidc) GetCommands ¶
func (*Oidc) GetConfigProperties ¶
func (o *Oidc) GetConfigProperties() *properties.Properties
func (*Oidc) GetEnvVars ¶
func (*Oidc) GetVolumeMounts ¶
func (o *Oidc) GetVolumeMounts() []corev1.VolumeMount
func (*Oidc) GetVolumes ¶
type Static ¶
type Static struct { AuthenticationClassName string Provider *authv1alpha1.StaticProvider }
func (*Static) GetCommands ¶
func (*Static) GetConfigProperties ¶
func (s *Static) GetConfigProperties() *properties.Properties
func (*Static) GetEnvVars ¶
func (*Static) GetVolumeMounts ¶
func (s *Static) GetVolumeMounts() []corev1.VolumeMount
func (*Static) GetVolumes ¶
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
Click to show internal directories.
Click to hide internal directories.