proxy

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHostIp

func GetHostIp() (string, error)

func GetUserHomeDir

func GetUserHomeDir() (string, error)

func InsideBox

func InsideBox() bool

Types

type Proxy

type Proxy struct {
	// contains filtered or unexported fields
}

func NewProxy

func NewProxy(logResponse bool) (*Proxy, error)

func (*Proxy) AddFwd

func (p *Proxy) AddFwd(chMsg []sshclient.StartCh) ([]byte, error)

func (*Proxy) Exit

func (p *Proxy) Exit() error

func (*Proxy) ListPorts

func (p *Proxy) ListPorts(chMsg sshclient.StartCh) ([]byte, error)

func (*Proxy) MakeRequest

func (p *Proxy) MakeRequest(path string, params ...[]byte) ([]byte, error)

func (*Proxy) RemoveAllFwd

func (p *Proxy) RemoveAllFwd(chMsg sshclient.StartCh) ([]byte, error)

func (*Proxy) RemoveFwd

func (p *Proxy) RemoveFwd(chMsg []sshclient.StartCh) ([]byte, error)

func (*Proxy) Restart

func (p *Proxy) Restart() ([]byte, error)

func (*Proxy) RestartContainer

func (p *Proxy) RestartContainer(rb types.RestartBody) ([]byte, error)

func (*Proxy) Start

func (p *Proxy) Start() error

func (*Proxy) Status

func (p *Proxy) Status() bool

func (*Proxy) Stop

func (p *Proxy) Stop() ([]byte, error)

func (*Proxy) WgStatus

func (p *Proxy) WgStatus() ([]byte, error)

Jump to

Keyboard shortcuts

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