universal

package
v2.13.2 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

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) CopyFiles

func (s *Networking) CopyFiles(t testing.TestingT, files map[string]string) error

CopyFiles copies a set of files to the local host

func (*Networking) NewSession

func (s *Networking) NewSession(reportPath string, cmdName string, verbose bool, cmd string) (*kssh.Session, error)

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"`
}

Jump to

Keyboard shortcuts

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