tunnelserver

package
v2.0.5-rc5+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2018 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Token  = "X-API-Tunnel-Token"
	Params = "X-API-Tunnel-Params"
)

Variables

This section is empty.

Functions

func NewTunnelServer

func NewTunnelServer(context *config.ScaledContext, authorizer *Authorizer) *remotedialer.Server

Types

type Authorizer

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

func NewAuthorizer

func NewAuthorizer(context *config.ScaledContext) *Authorizer

func (*Authorizer) Authorize

func (t *Authorizer) Authorize(req *http.Request) (*Client, bool, error)

func (*Authorizer) AuthorizeLocalNode

func (t *Authorizer) AuthorizeLocalNode(username, password string) (string, []string, *v3.Cluster, bool)

type Client

type Client struct {
	Cluster *v3.Cluster
	Node    *v3.Node
	Token   string
	Server  string
}

Jump to

Keyboard shortcuts

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