Documentation
¶
Overview ¶
Package provider exposes types/interfaces which may be used to provide credentials.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Credentials ¶
type Credentials struct {
Username string `json:"-"`
Password string `json:"-"`
AuthToken string `json:"-"`
}
Credentials represents a username/password pair or an auth token.
type Provider ¶
type Provider interface {
GetUserAgent() string
GetCredentials(host string) (Credentials, error)
}
Provider is an interface which defines basic functions allowing access credentials/information required to authenticate against Couchbase.
type Static ¶
type Static struct {
UserAgent string
Credentials Credentials
}
Static implements the 'Provider' interface and always returns static credentials/information.
func (*Static) GetCredentials ¶
func (s *Static) GetCredentials(_ string) (Credentials, error)
func (*Static) GetUserAgent ¶
Click to show internal directories.
Click to hide internal directories.