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 }
func newFirewaller(ecfg *environConfig) (common.Firewaller, error) { return common.NewFirewaller(), nil }