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 ConfigStore ¶
type ConfigStore interface { // Write saves some secret data to the store Write(name string, bytes []byte) error // WriteObject writes a named object to the store WriteObject(name string, object interface{}) error // Read reads some secret data from the store Read(name string) ([]byte, error) // ReadObject reads an object from the store ReadObject(name string, object interface{}) error }
ConfigStore provides an interface for storing configs
func NewFileStore ¶
func NewFileStore() ConfigStore
NewFileStore creates a ConfigStore that stores its data to the filesystem in YAML
func NewVaultStore ¶
func NewVaultStore(client vault.Client, path string) ConfigStore
NewVaultStore creates a new store which stores its data in Vault
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