Documentation
¶
Index ¶
- func FlagsForAppConfig(prefix string, config *AppConfig) *pflag.FlagSet
- func FlagsForFilesystemConfig(prefix string, config *FilesystemConfig) *pflag.FlagSet
- func ReadConfig(cmd *cobra.Command, configFile *string, cliLogConfig *log.Config, ...) (context.Context, error)
- type AppConfig
- type AuthServiceConfig
- type Config
- type FilesystemConfig
- type KeychainServiceConfig
- type MountConfig
- type PasswordManagerConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FlagsForFilesystemConfig ¶
func FlagsForFilesystemConfig(prefix string, config *FilesystemConfig) *pflag.FlagSet
Types ¶
type AppConfig ¶
type AppConfig struct {
Log log.ConfigSet `json:"log" yaml:"log"`
AuthService AuthServiceConfig `json:"auth_service" yaml:"auth_service"`
KeychainService KeychainServiceConfig `json:"keychain_service" yaml:"keychain_service"`
}
type AuthServiceConfig ¶
type AuthServiceConfig struct {
Name string `json:"name" yaml:"name"`
Config interface{} `json:"config" yaml:"config"`
}
func (*AuthServiceConfig) UnmarshalJSON ¶
func (c *AuthServiceConfig) UnmarshalJSON(data []byte) error
func (*AuthServiceConfig) UnmarshalYAML ¶
func (c *AuthServiceConfig) UnmarshalYAML(value *yaml.Node) error
type Config ¶
type Config struct {
App AppConfig `json:"app" yaml:"app"`
FS FilesystemConfig `json:"fs" yaml:"fs"`
}
type FilesystemConfig ¶
type FilesystemConfig struct {
Mountpoint string `json:"mountpoint" yaml:"mountpoint"`
Debug bool `json:"debug" yaml:"debug"`
DefaultPermitDuration time.Duration `json:"default_permit_duration" yaml:"default_permit_duration"`
DefaultPenaltyDuration time.Duration `json:"default_penalty_duration" yaml:"default_penalty_duration"`
LoginInterface string `json:"login_interface" yaml:"login_interface"`
Spec []struct {
PM PasswordManagerConfig `json:"pm" yaml:"pm"`
Mounts []MountConfig `json:"mounts" yaml:"mounts"`
} `json:"spec" yaml:"spec"`
}
type KeychainServiceConfig ¶
type KeychainServiceConfig struct {
Name string `json:"name" yaml:"name"`
Config interface{} `json:"config" yaml:"config"`
}
func (*KeychainServiceConfig) UnmarshalJSON ¶
func (c *KeychainServiceConfig) UnmarshalJSON(data []byte) error
func (*KeychainServiceConfig) UnmarshalYAML ¶
func (c *KeychainServiceConfig) UnmarshalYAML(value *yaml.Node) error
type MountConfig ¶
type PasswordManagerConfig ¶
type PasswordManagerConfig struct {
Driver string `json:"driver" yaml:"driver"`
Name string `json:"name" yaml:"name"`
Config interface{} `json:"config" yaml:"config"`
}
func (*PasswordManagerConfig) UnmarshalJSON ¶
func (c *PasswordManagerConfig) UnmarshalJSON(data []byte) error
func (*PasswordManagerConfig) UnmarshalYAML ¶
func (c *PasswordManagerConfig) UnmarshalYAML(value *yaml.Node) error
Source Files
¶
- auth_service.go
- credentialfs.go
- fs.go
- keychain_service.go
- pm.go
- util.go
Click to show internal directories.
Click to hide internal directories.