parsed

package
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseCmd added in v0.3.0

func ParseCmd(cmdX interface{}) ([]string, error)

func ParseForward

func ParseForward(forward string) (*jsonmsg.Forward, error)

ParseForward parses "8080:127.0.0.1:80[/tcp]"

Types

type HTTP added in v0.4.0

type HTTP struct {
	Listen string
}

type Host

type Host struct {
	Cmd           []string
	VIP           net.IP
	Ports         []*jsonmsg.Forward
	HTTP          HTTP
	SOCKS         SOCKS
	Loopback      Loopback
	StateDir      StateDir
	Aliases       []string
	WriteEtcHosts bool
}

type Loopback added in v0.4.0

type Loopback struct {
	Disable bool
}

type ParsedManifest

type ParsedManifest struct {
	Raw             *manifest.Manifest
	Hosts           map[string]*Host
	PublicHostPorts []*jsonmsg.IPPortProto
	Routes          []jsonmsg.Route
	NameServers     []jsonmsg.NameServer
}

func New

func New(raw *manifest.Manifest) (*ParsedManifest, error)

type SOCKS added in v0.4.0

type SOCKS struct {
	Listen string
}

type StateDir added in v0.4.0

type StateDir struct {
	PathOnAgent string
	Disable     bool
}

Jump to

Keyboard shortcuts

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