Exemple #1
0
func newRawProvider(spec environs.CloudSpec) (*rawProvider, error) {
	client, err := newClient(spec, ioutil.ReadFile, utils.RunCommand)
	if err != nil {
		return nil, errors.Annotate(err, "creating LXD client")
	}

	raw := &rawProvider{
		lxdCerts:     client,
		lxdConfig:    client,
		lxdInstances: client,
		lxdProfiles:  client,
		lxdImages:    client,
		Firewaller:   common.NewFirewaller(),
	}
	return raw, nil
}
Exemple #2
0
func newFirewaller(ecfg *environConfig) (common.Firewaller, error) {
	return common.NewFirewaller(), nil
}