Versions in this module Expand all Collapse all v0 v0.1.0 Sep 27, 2021 Changes in this version + const ProtocolAPIKey + const ProtocolBase64 + const ProtocolBasic + const ProtocolEnv + const ProtocolFile + const ProtocolHmac + var ErrInvalidValue = errors.New("invalid value") + var ErrUnsupportedProtocol = errors.New("unsupported protocol") + type Credential struct + func NewAPIKey(apiKey string) Credential + func NewBase64(value string) Credential + func NewBasic(user, password string) Credential + func NewEnv() Credential + func NewFile(filePath string) Credential + func NewHmac(accessKey, secretKey string) Credential + func Parse(cfg string) (Credential, error) + func (p Credential) APIKey() (apiKey string) + func (p Credential) Base64() (value string) + func (p Credential) Basic() (user, password string) + func (p Credential) File() (path string) + func (p Credential) Hmac() (accessKey, secretKey string) + func (p Credential) Protocol() string + func (p Credential) String() string + func (p Credential) Value() []string + type Error struct + Err error + Op string + Protocol string + Values []string + func (e Error) Error() string + func (e Error) Unwrap() error