Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Generic []*Generic `json:"generic,omitempty" xml:"generic,omitempty" yaml:"generic,omitempty"`
}
Config represents a collection of various credentials.
func (*Config) ExtractGeneric ¶ added in v1.0.13
ExtractGeneric returns Generic credentials by name.
func (*Config) FindCredential ¶ added in v1.0.12
FindCredential search for Credential by name.
type Credential ¶
type Credential interface {
Validate() error
}
Credential is an interface to work with credentials.
type Generic ¶
type Generic struct { Name string `json:"name,omitempty" xml:"name,omitempty" yaml:"name,omitempty"` Username string `json:"username,omitempty" xml:"username,omitempty" yaml:"username,omitempty"` Password string `json:"password,omitempty" xml:"password,omitempty" yaml:"password,omitempty"` Domain string `json:"domain,omitempty" xml:"domain,omitempty" yaml:"domain,omitempty"` }
Generic represents username and password credentials, with optional domain name field.
Click to show internal directories.
Click to hide internal directories.