Documentation ¶
Index ¶
Constants ¶
View Source
const ( TunnelConnectPath = "/api/v1/cluster/agent/connect" TunnelResponsePath = "/api/v1/cluster/agent/response" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Agent ¶
type Agent struct {
// contains filtered or unexported fields
}
func NewAgent ¶
func NewAgent(config *AgentConfig) *Agent
type AgentConfig ¶
type AgentConfig struct { Token string KubeConfig *config.KubeConfig ServerHost string ServerClient *httpclient.HttpClient }
func NewAgentConfig ¶
func NewAgentConfig(options *AgentOptions) (a *AgentConfig, err error)
type AgentOptions ¶
type ConnectOnSuccess ¶
type ConnectOnSuccess func()
type Tunnel ¶
type Tunnel interface { Run(stopCh <-chan struct{}) Receive() <-chan []byte Send(interface{}) }
type TunnelCallback ¶
type TunnelCallback interface {
OnSuccess()
}
Click to show internal directories.
Click to hide internal directories.