conf

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Version  = "0.1"
	ConfPath = "/etc/photon-mgmt"
	ConfFile = "photon-mgmt"
	TLSCert  = "cert/server.crt"
	TLSKey   = "cert/server.key"

	DefaultLogLevel   = "info"
	UseAuthentication = "true"

	DefaultIP        = "127.0.0.1"
	DefaultPort      = "5208"
	ListenUnixSocket = "true"

	UnixDomainSocketPath = "/run/photon-mgmt/photon-mgmt.sock"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	System  System  `mapstructure:"System"`
	Network Network `mapstructure:"Network"`
}

func Parse

func Parse() (*Config, error)

type Network

type Network struct {
	Listen           string
	ListenUnixSocket bool
	ListenVSock      bool
}

type System

type System struct {
	LogLevel          string `mapstructure:"LogLevel"`
	UseAuthentication bool   `mapstructure:"UseAuthentication"`
}

Jump to

Keyboard shortcuts

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