client/lxd_profiles.go
func (r *ProtocolLXD) GetProfile(name string) (*api.Profile, string, error) {
	profile := api.Profile{}

	// Fetch the raw value
	etag, err := r.queryStruct("GET", fmt.Sprintf("/profiles/%s", url.QueryEscape(name)), nil, "", &profile)
	if err != nil {
		return nil, "", err
	}

	return &profile, etag, nil
}
func (r *ProtocolLXD) GetProfile(name string) (*api.Profile, string, error) {
	profile := api.Profile{}

	// Fetch the raw value
	etag, err := r.queryStruct("GET", fmt.Sprintf("/profiles/%s", url.QueryEscape(name)), nil, "", &profile)
	if err != nil {
		return nil, "", err
	}

	return &profile, etag, nil
}
func ( r * ProtocolLXD ) GetProfile ( name string ) ( * api . Profile , string , error ) { profile := api . Profile { } // Fetch the raw value etag , err := r . queryStruct ( " " , fmt . Sprintf ( " " , url . QueryEscape ( name ) ) , nil , " " , & profile ) if err != nil { return nil , " " , err } return & profile , etag , nil }
// GetProfile returns a Profile entry for the provided name
GetProfile returns a Profile entry for the provided name