Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Path string ServiceName string Account string Label string Description string }
func DefaultConfig ¶
func DefaultConfig() Config
DefaultConfig returns default configuration for keychain
type Credential ¶
type KeyChain ¶
type KeyChain struct {
Config
}
func (*KeyChain) Generate ¶
func (k *KeyChain) Generate(profile string, config *schema.Config) (*credentials.Credentials, error)
Generate creates new executable credentials
func (*KeyChain) GetCredentialsFromPrompt ¶
func (k *KeyChain) GetCredentialsFromPrompt() (*credentials.Value, error)
GetCredentialsFromPrompt gets credentials from command line
type KeyManager ¶
type KeyManager interface { Generate(string, *schema.Config) (*credentials.Credentials, error) Status(io.Writer) error Add() error }
func GenerateKeyManager ¶
func GenerateKeyManager(keyType string) (KeyManager, error)
GenerateKeyManager returns key manager according to key type
Click to show internal directories.
Click to hide internal directories.