lxd/db/profiles.go
func ProfileToAPI(profile *Profile) *api.Profile {
	p := &api.Profile{
		Name:   profile.Name,
		UsedBy: profile.UsedBy,
	}
	p.Description = profile.Description
	p.Config = profile.Config
	p.Devices = profile.Devices

	return p
}
func ProfileToAPI(profile *Profile) *api.Profile {
	p := &api.Profile{
		Name:   profile.Name,
		UsedBy: profile.UsedBy,
	}
	p.Description = profile.Description
	p.Config = profile.Config
	p.Devices = profile.Devices

	return p
}
func ProfileToAPI ( profile * Profile ) * api . Profile { p := & api . Profile { Name : profile . Name , UsedBy : profile . UsedBy , } p . Description = profile . Description p . Config = profile . Config p . Devices = profile . Devices return p }
// ProfileToAPI is a convenience to convert a Profile db struct into
// an API profile struct.
ProfileToAPI is a convenience to convert a Profile db struct into an API profile struct .