config

package
v0.0.0-...-169b2ab Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PathToConfigFile = "/.config/polycube/"
	ConfigFile       = "polycubectl_config.yaml"
)

Variables

This section is empty.

Functions

func LoadConfig

func LoadConfig() error

Types

type Config

type Config struct {
	Debug  bool   `yaml:"debug"`
	Expert bool   `yaml:"expert"`
	Url    string `yaml:"url"`
	// enables Workaround for urls (e.g. set peer=veth1 PUT /peer/ "veth1")
	SingleParameterWorkaround bool

	CACert string `yaml:"cacert"`
	Cert   string `yaml:"cert"`
	Key    string `yaml:"key"`
}

func GetConfig

func GetConfig() *Config

func NewDefaultConfig

func NewDefaultConfig() Config

Jump to

Keyboard shortcuts

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