Versions in this module Expand all Collapse all v0 v0.0.6 Oct 12, 2021 Changes in this version + var DefaultConfig = Config + var DefaultRemotes = map[string]Remote + var ErrNotLinux = fmt.Errorf("Can't connect to a local LXD server on a non-Linux system") + var ImagesRemote = Remote + var LocalRemote = Remote + var StaticRemotes = map[string]Remote + var UbuntuDailyRemote = Remote + var UbuntuRemote = Remote + type Config struct + Aliases map[string]string + ConfigDir string + DefaultRemote string + ProjectOverride string + PromptPassword func(filename string) (string, error) + Remotes map[string]Remote + UserAgent string + func LoadConfig(path string) (*Config, error) + func NewConfig(configDir string, defaults bool) *Config + func (c *Config) ConfigPath(paths ...string) string + func (c *Config) CookiesPath(remote string) string + func (c *Config) CopyGlobalCert(src string, dst string) error + func (c *Config) GenerateClientCertificate() error + func (c *Config) GetImageServer(name string) (lxd.ImageServer, error) + func (c *Config) GetInstanceServer(name string) (lxd.InstanceServer, error) + func (c *Config) GlobalConfigPath(paths ...string) string + func (c *Config) HasClientCertificate() bool + func (c *Config) ParseRemote(raw string) (string, string, error) + func (c *Config) SaveConfig(path string) error + func (c *Config) SaveCookies() + func (c *Config) ServerCertPath(remote string) string + type Remote struct + Addr string + AuthType string + Domain string + Global bool + Project string + Protocol string + Public bool + Static bool