connect

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Shadow

type Shadow struct {
	Options *options.DaemonOptions
}

Shadow shadow

func Create

func Create(options *options.DaemonOptions) (shadow Shadow)

Create create shadow

func (*Shadow) Inbound

func (s *Shadow) Inbound(exposePort, podName, remoteIP string, credential *util.SSHCredential) (err error)

Inbound mapping local port from cluster

func (*Shadow) Outbound

func (s *Shadow) Outbound(name, podIP string, credential *util.SSHCredential, cidrs []string, cli exec.CliInterface) (err error)

Outbound start vpn connection

type ShadowInterface

type ShadowInterface interface {
	Inbound(exposePort, podName, remoteIP string, credential *util.SSHCredential) (err error)
	Outbound(name, podIP string, credential *util.SSHCredential, cidrs []string, exec exec.CliInterface) (err error)
}

ShadowInterface shadow interface

Jump to

Keyboard shortcuts

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