Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Version of the YAML strcuture. Version string = "v1" // Path of the credentials storage file relative to the current user's home directory. FilePath string = ".credentials" // Name of the credentials storage file. FileName string = "store.yaml" )
Variables ¶
View Source
var ( ErrPermissionDenied = constError("permission denied") ErrInvalidParameters = constError("invalid parameters") ErrMasterPassword = constError("invalid master password") ErrInvalidStorage = constError("invalid storage") )
Errors raised by package.
Functions ¶
This section is empty.
Types ¶
type YAMLCredentials ¶
type YAMLCredentialsStore ¶
type YAMLCredentialsStore struct { Version string `yaml:"version"` CredentialsList []YAMLCredentials `yaml:"credentials,omitempty"` }
type YAMLStorage ¶
type YAMLStorage struct{}
Store credentials in a local file.
func (YAMLStorage) Add ¶
func (h YAMLStorage) Add(creds *credentials.Credentials) error
Add adds new credentials to the storage.
func (YAMLStorage) Delete ¶
func (h YAMLStorage) Delete(serverURL string) error
Delete removes credentials from storage.
Click to show internal directories.
Click to hide internal directories.