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 NewDefaultConfig ¶
func NewDefaultConfig() Config
Click to show internal directories.
Click to hide internal directories.