Documentation
¶
Index ¶
- func DefaultConfigPath() string
- type Loader
- func (l *Loader) GetAPIKey(ctx context.Context, provider string) (string, error)
- func (l *Loader) GetAuthMethod(ctx context.Context, provider string) (types.AuthMethod, error)
- func (l *Loader) ListProviders(ctx context.Context) ([]string, error)
- func (l *Loader) SetAPIKey(ctx context.Context, provider, key string) error
- func (l *Loader) SetAuthMethod(ctx context.Context, provider string, method types.AuthMethod) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultConfigPath ¶
func DefaultConfigPath() string
DefaultConfigPath returns the default config path
Types ¶
type Loader ¶
type Loader struct {
// contains filtered or unexported fields
}
Loader loads authentication configuration
func Default ¶
Default returns the default auth loader backed by an encrypted file store. Set SESHAT_MASTER_KEY (64 hex chars) to control the encryption key explicitly; otherwise a machine-derived key is used automatically.
func (*Loader) GetAuthMethod ¶
GetAuthMethod returns the auth method for a provider
func (*Loader) ListProviders ¶
ListProviders lists all configured providers
func (*Loader) SetAuthMethod ¶
SetAuthMethod sets the auth method for a provider
Click to show internal directories.
Click to hide internal directories.