Documentation ¶
Index ¶
- Variables
- type CredentialFile
- func (cf CredentialFile) DelCredentials(key string)
- func (cf CredentialFile) GetCredentials(enc Encryption, key string) (username string, password string, err error)
- func (cf CredentialFile) Save(path string) error
- func (cf CredentialFile) SetCredentials(enc Encryption, key string, username string, password string) error
- type CredentialPair
- type Encryption
- type Helper
Constants ¶
This section is empty.
Variables ¶
View Source
var B64Encoding = base64.StdEncoding
View Source
var CREDFILE string
Functions ¶
This section is empty.
Types ¶
type CredentialFile ¶
type CredentialFile struct { Timestamp time.Time `json:"timestamp"` Credentials map[string]CredentialPair `json:"credentials"` }
func Load ¶
func Load(path string) (*CredentialFile, error)
func (CredentialFile) DelCredentials ¶
func (cf CredentialFile) DelCredentials(key string)
func (CredentialFile) GetCredentials ¶
func (cf CredentialFile) GetCredentials(enc Encryption, key string) (username string, password string, err error)
func (CredentialFile) Save ¶
func (cf CredentialFile) Save(path string) error
func (CredentialFile) SetCredentials ¶
func (cf CredentialFile) SetCredentials(enc Encryption, key string, username string, password string) error
type CredentialPair ¶
type Encryption ¶
type Encryption struct {
// contains filtered or unexported fields
}
func NewEncryption ¶
func NewEncryption(encryptionKey string) (*Encryption, error)
Click to show internal directories.
Click to hide internal directories.