tunnelserver

package
v2.2.7-ent-rc2+incompa... Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2019 License: Apache-2.0 Imports: 29 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 NewPeerManager

func NewPeerManager(ctx context.Context, context *config.ScaledContext, dialer *remotedialer.Server) (peermanager.PeerManager, error)

func NewTunnelServer

func NewTunnelServer(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