tunnel

package
v1.19.1 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Module        = "BCS-API-Tunnel-Module"
	RegisterToken = "BCS-API-Tunnel-Token"
	Params        = "BCS-API-Tunnel-Params"
	Cluster       = "BCS-API-Tunnel-ClusterId"

	KubeAgentModule   = "kube-agent"
	K8sDriverModule   = "k8s-driver"
	MesosDriverModule = "mesos-driver"
)

Variables

View Source
var (
	DefaultTunnelServer *websocketDialer.Server
)

Functions

func NewTunnelServer

func NewTunnelServer() *websocketDialer.Server

NewTunnelServer create websocket tunnel server

func StartPeerManager

func StartPeerManager(conf *config.ApiServConfig, dialerServer *websocketDialer.Server) error

Types

type PeerRDiscover

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

type RegisterCluster

type RegisterCluster struct {
	Address   string `json:"address"`
	UserToken string `json:"userToken"`
	CACert    string `json:"caCert"`
}

Jump to

Keyboard shortcuts

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