k8s

package
v0.24.5 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2017 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler added in v0.24.0

func Handler(frontendHTTPHandler BackendAccess, cattleAddr, accessKey, secretKey string) (http.Handler, error)

Types

type BackendAccess added in v0.24.0

type BackendAccess interface {
	AuthAndLookup(req *http.Request) (*jwt.Token, string, error)
	ServeRemoteHTTP(token *jwt.Token, hostKey string, rw http.ResponseWriter, req *http.Request) error
}

type Lookup added in v0.24.0

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

func NewLookup added in v0.24.0

func NewLookup(clusterURL, accessKey, secretKey string) *Lookup

func (*Lookup) Lookup added in v0.24.0

func (c *Lookup) Lookup(input *http.Request) (*client.Cluster, bool, error)

Jump to

Keyboard shortcuts

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