package
Version:
v0.0.14
Opens a new window with list of versions in this module.
Published: Jul 30, 2020
License: MIT
Opens a new window with license information.
Imports: 13
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Shadow struct {
Options *options.DaemonOptions
}
Shadow shadow
func Create(options *options.DaemonOptions) (shadow Shadow)
Create create shadow
func (s *Shadow) Inbound(exposePort, podName, remoteIP string, credential *util.SSHCredential) (err error)
Inbound mapping local port from cluster
func (s *Shadow) Outbound(name, podIP string, credential *util.SSHCredential, cidrs []string, cli exec.CliInterface) (err error)
Outbound start vpn connection
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
Source Files
¶
Click to show internal directories.
Click to hide internal directories.