clusterauthorizer

package
v0.0.0-...-898015a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

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

func (a *Authorizer) NewSystemOrConfiguredProxy() func(*http.Request) (*url.URL, error)

NewSystemOrConfiguredProxy creates the proxy URL based on the config. (specific/default proxy)

func (*Authorizer) Token

func (a *Authorizer) Token() (string, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL