Documentation ¶
Index ¶
Constants ¶
View Source
const ( // BasicPrefix is the prefix for the HTTP basic authentication. BasicPrefix = "Basic " // TokenPrefix is the prefix for the HTTP token/bearer authentication. TokenPrefix = "Bearer " )
Variables ¶
View Source
var Manager = new(manager)
Manager handle login/logout handlers.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { URI string `yaml:"URI"` // Can take the form of: // - "Basic <base64 encoded username:passwd>" // - "Bearer <token>" // An empty value means there no authentication at all // or that credentials are stored elsewhere Auth string `yaml:"Auth,omitempty"` Insecure bool `yaml:"Insecure"` }
Config holds credential configuration for a service.
Click to show internal directories.
Click to hide internal directories.