authproxy

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2020 License: Apache-2.0 Imports: 18 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Proxy

type Proxy struct {
	Provider provider.Provider
	Config   ProxyConfig
}

Proxy represents the authproxy instance

func NewWithProvider

func NewWithProvider(provider provider.Provider, cfg ProxyConfig) *Proxy

NewWithProvider returns a new proxy instance using a provider implementation as backend

func (*Proxy) ListenAndServe

func (p *Proxy) ListenAndServe() error

ListenAndServe starts the proxy

type ProxyConfig

type ProxyConfig struct {
	HTTPAddr        string
	HTTPPrivateAddr string
	TLSCert         string
	TLSKey          string
	TLSClientCA     string
	LogJSON         bool
	LogLevel        string
}

ProxyConfig represents a the proxy configuration parameters

func NewConfiguration

func NewConfiguration() ProxyConfig

NewConfiguration returns a new default configuration

Jump to

Keyboard shortcuts

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