Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigReader ¶
ConfigReader interface for reading auth configuration
func NewEnvConfigReader ¶
func NewEnvConfigReader(envPrefix string, serverRetriever ServerRetrieverFn) ConfigReader
NewEnvConfigReader creates a new environment config reader
func NewFileConfigReader ¶
func NewFileConfigReader(filename string) ConfigReader
NewFileConfigReader creates a new file config reader
func NewKubeSecretsConfigReader ¶
func NewKubeSecretsConfigReader(client kubernetes.Interface, namespace string, serverKind auth.ServerKind, serviceKind auth.ServiceKind) ConfigReader
NewKubeSecretsConfigReader creates a new Kubernetes config reader
type ConfigWriter ¶
ConfigWriter interface for writing auth configuration
func NewFileConfigWriter ¶
func NewFileConfigWriter(filename string) ConfigWriter
NewFileConfigWriter creates a new file config writer
func NewKubeSecretsConfigWriter ¶
func NewKubeSecretsConfigWriter(client kubernetes.Interface, namespace string) ConfigWriter
NewKubeSecretsConfigWriter creates a new Kubernetes secrets config writer
type EnvConfigReader ¶
type EnvConfigReader struct {
// contains filtered or unexported fields
}
EnvConfigReader keeps the prefix of the env variables where the user auth config is stored and also a server config retriever
type FileConfigReader ¶
type FileConfigReader struct {
// contains filtered or unexported fields
}
FileConfigReader keeps the path to the configration file
type FileConfigWriter ¶
type FileConfigWriter struct {
// contains filtered or unexported fields
}
FileConfigWriter file config write which keeps the path to the configuration file
type KubeSecretsConfigReader ¶
type KubeSecretsConfigReader struct {
// contains filtered or unexported fields
}
KubeSecretsConfigReader config reader for Kubernetes secrets
type KubeSecretsConfigWriter ¶
type KubeSecretsConfigWriter struct {
// contains filtered or unexported fields
}
KubeSecretsConfigWriter config writer into Kubernetes secrets
type ServerRetrieverFn ¶
type ServerRetrieverFn func() (name string, url string, kind auth.ServerKind, serviceKind auth.ServiceKind)
ServerRetrieverFn retrives the server config