Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authorizer ¶
type Authorizer struct {
// contains filtered or unexported fields
}
func New ¶
func New(secretConfigurator configobserver.Configurator, configurator configobserver.Interface) *Authorizer
New creates a new Authorizer, whose purpose is to auth requests for outgoing traffic.
func (*Authorizer) Authorize ¶
func (a *Authorizer) Authorize(req *http.Request) error
Authorize adds the necessary auth header to the request, depending on the config. (BasicAuth/Token)
func (*Authorizer) NewSystemOrConfiguredProxy ¶
NewSystemOrConfiguredProxy creates the proxy URL based on the config. (specific/default proxy)
func (*Authorizer) Token ¶
func (a *Authorizer) Token() (string, error)
Click to show internal directories.
Click to hide internal directories.