Documentation
¶
Overview ¶
This is a FLEXible file which can be used by both client and daemon. * Teehee.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Version = "0.0.1"
* Please increment the version number every time you change the API. * * Version 0.0.1: ping
Functions ¶
func Debugf ¶
func Debugf(format string, args ...interface{})
Debugf sends to the logger registered via SetLogger the string resulting from running format and args through Sprintf, but only if debugging was enabled via SetDebug.
func Logf ¶
func Logf(format string, args ...interface{})
Logf sends to the logger registered via SetLogger the string resulting from running format and args through Sprintf.
func SaveConfig ¶
SaveConfig writes the provided configuration to $HOME/.lxd/config.yaml.
Types ¶
type Client ¶
type Client struct { Remote *RemoteConfig // contains filtered or unexported fields }
Client can talk to a lxd daemon.
type Config ¶
type Config struct { // TestOption is used only for testing purposes. TestOption string `yaml:"test-option,omitempty"` // DefaultRemote holds the remote daemon name from the Remotes map // that the client should communicate with by default. // If empty it defaults to "local". DefaultRemote string `yaml:"default-remote"` // Remotes defines a map of remote daemon names to the details for // communication with the named daemon. // The implicit "local" remote is always available and communicates // with the local daemon over a unix socket. Remotes map[string]RemoteConfig `yaml:"remotes"` // ListenAddr defines an alternative address for the local daemon // to listen on. If empty, the daemon will listen only on the local // unix socket address. ListenAddr string `yaml:"listen-addr"` }
Config holds settings to be used by a client or daemon.
func LoadConfig ¶
LoadConfig reads the configuration from $HOME/.lxd/config.yaml.
type RemoteConfig ¶
type RemoteConfig struct {
Addr string `yaml:"addr"`
}
RemoteConfig holds details for communication with a remote daemon.