Documentation
¶
Index ¶
- type Networking
- func (s *Networking) BootstrapAddress() string
- func (s *Networking) Close() error
- func (s *Networking) CopyFiles(t testing.TestingT, files map[string]string) error
- func (s *Networking) NewSession(reportPath string, cmdName string, verbose bool, cmd string) (*kssh.Session, error)
- func (s *Networking) PortForward(destAddr string, stopChan <-chan struct{}) (net.Addr, error)
- func (s *Networking) RunCommand(cmd string) (string, string, error)
- type NetworkingState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Networking ¶
type Networking struct {
IP string `json:"ip"` // IP inside a docker network
ApiServerPort string `json:"apiServerPort"`
SshPort string `json:"sshPort"` // SshPort is the local port that is forwarded into the docker container
StdOutFile string `json:"stdOutFile"`
StdErrFile string `json:"stdErrFile"`
// RemoteHost is a remote SSH target that can be directly connected to
RemoteHost *kssh.Host `json:"remoteHost,omitempty"`
sync.Mutex
// contains filtered or unexported fields
}
func (*Networking) BootstrapAddress ¶
func (s *Networking) BootstrapAddress() string
func (*Networking) Close ¶
func (s *Networking) Close() error
func (*Networking) NewSession ¶
func (*Networking) PortForward ¶
func (s *Networking) PortForward(destAddr string, stopChan <-chan struct{}) (net.Addr, error)
PortForward establishes an SSH tunnel from the local address to the destination address that is accessible by the remote host destAddr is the destination host:port that we want to access from the local port returns the bound local address when the tunnel is established
func (*Networking) RunCommand ¶
func (s *Networking) RunCommand(cmd string) (string, string, error)
type NetworkingState ¶
type NetworkingState struct {
ZoneEgress Networking `json:"zoneEgress"`
ZoneIngress Networking `json:"zoneIngress"`
KumaCp Networking `json:"kumaCp"`
}
Click to show internal directories.
Click to hide internal directories.