appconf

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2023 License: MIT Imports: 7 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:"-"`
	TLSConfig *tls.Config `gcfg:"-"`
}

type KvmrunConfig

type KvmrunConfig struct {
	Common CommonParams
	Server grpcserver.ServerConf
}

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.

Jump to

Keyboard shortcuts

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