flags

package
v0.0.0-...-9109040 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const TEST_MODE = "TEST_MODE"

Variables

View Source
var (
	Cpuprofile      = flag.String("cpuprofile", "", "write cpu profile to file")
	Compress        = flag.Bool("compress", false, "compress replies")
	Tsig            = flag.String("tsig", "", "use MD5 hmac tsig: keyname:base64")
	WebServerPort   = flag.Int("web-server-port", 5380, "The web server port")
	DnsServerPort   = flag.Int("server-port", 53, "The DNS server to start into")
	SetupResolvconf = flag.Bool("default-dns", true, "This DNS server will be the default server for this machine")
	ConfPath        = flag.String("conf-path", "conf/config.json", "The config file path ")
	SetupService    = flag.String("service", "", `Setup as service, starting with machine at boot
		docker = start as docker service,
		normal = start as normal service,
		uninstall = uninstall the service from machine `)

	Version             = flag.Bool("version", false, "Current version")
	HostMachineHostname = flag.String("host-machine-hostname", "host.docker", "The hostname to get host machine IP")
	Domain              = flag.String("domain", "docker", "Domain utilized to solver containers and services hostnames")

	Help = flag.Bool("help", false, "This message")
)

Functions

func DpsNetwork

func DpsNetwork() bool

func DpsNetworkAutoConnect

func DpsNetworkAutoConnect() bool

func GetRawCurrentVersion

func GetRawCurrentVersion() string

func IsTestVersion

func IsTestVersion() bool

func LogLevel

func LogLevel() string

func LogToFile

func LogToFile() string

func PublishServicePort

func PublishServicePort() bool

func RegisterContainerNames

func RegisterContainerNames() bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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