winch

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2019 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NoAuth tokenauth.Source = nil
)

Functions

This section is empty.

Types

type AuthFactory

type AuthFactory struct {
	// contains filtered or unexported fields
}

func NewAuthFactory

func NewAuthFactory(listenAddress string, mux *http.ServeMux) *AuthFactory

func (*AuthFactory) Get

func (f *AuthFactory) Get(configSource *pb.AuthSource) (tokenauth.Source, error)

type Pac

type Pac struct {
	PAC []byte
	// contains filtered or unexported fields
}

Pac is a handler that serves auto generated PAC file based on mapping routes.

func NewPacFromFlags

func NewPacFromFlags(winchHostPort string) (pac *Pac, err error)

func (*Pac) ServeHTTP

func (p *Pac) ServeHTTP(resp http.ResponseWriter, req *http.Request)

type StaticRoutes

type StaticRoutes struct {
	// contains filtered or unexported fields
}

func NewStaticRoutes

func NewStaticRoutes(factory *AuthFactory, mapperConfig *pb.MapperConfig, authConfig *pb.AuthConfig) (*StaticRoutes, error)

func (*StaticRoutes) GRPC

func (r *StaticRoutes) GRPC() []kedge_map.RouteGetter

func (*StaticRoutes) HTTP

func (r *StaticRoutes) HTTP() []kedge_map.RouteGetter

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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