kcfg

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommonParams

type CommonParams struct {
	CertDir   string `gcfg:"cert-dir"`
	CACrt     string `gcfg:"-"`
	CAKey     string `gcfg:"-"`
	ServerCrt string `gcfg:"-"`
	ServerKey string `gcfg:"-"`
	ClientCrt string `gcfg:"-"`
	ClientKey string `gcfg:"-"`
}

type KvmrunConfig

type KvmrunConfig struct {
	Common CommonParams
	Server ServerParams
}

KvmrunConfig represents the Kvmrun configuration.

func NewConfig

func NewConfig(p string) (*KvmrunConfig, error)

NewConfig reads and parses the configuration file and returns a new instance of KvmrunConfig on success.

type ServerParams

type ServerParams struct {
	Bindings  []string `gcfg:"listen"`
	BindAddrs []net.IP `gcfg:"-"`
}

Jump to

Keyboard shortcuts

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