func (c *Client) ResourceMeta(id *charm.URL, name string, revision int) (params.Resource, error) {
	path := fmt.Sprintf("/%s/meta/resources/%s", id.Path(), name)
	if revision >= 0 {
		path += fmt.Sprintf("/%d", revision)
	}
	var result params.Resource
	if err := c.Get(path, &result); err != nil {
		return result, errgo.NoteMask(err, fmt.Sprintf("cannot get %q", path), isAPIError)
	}
	return result, nil
}
// ResourceMeta returns the metadata for the resource on charm id with the
// given name and revision. If the revision is negative, the latest version
// of the resource will be returned.
ResourceMeta returns the metadata for the resource on charm id with the
given name and revision. If the revision is negative, the latest version
of the resource will be returned.
// ResourceMeta returns the metadata for the resource on charm id with the // given name and revision . If the revision is negative the latest version // of the resource will be returned .
func (c *Client) ResourceMeta(id *charm.URL, name string, revision int) (params.Resource, error) {
	path := fmt.Sprintf("/%s/meta/resources/%s", id.Path(), name)
	if revision >= 0 {
		path += fmt.Sprintf("/%d", revision)
	}
	var result params.Resource
	if err := c.Get(path, &result); err != nil {
		return result, errgo.NoteMask(err, fmt.Sprintf("cannot get %q", path), isAPIError)
	}
	return result, nil
}
func ( c * Client ) ResourceMeta ( id * charm . URL , name string , revision int ) ( params . Resource , error ) { path := fmt . Sprintf ( " " , id . Path ( ) , name ) if revision >= 0 { path += fmt . Sprintf ( " " , revision ) } var result params . Resource if err := c . Get ( path , & result ) ; err != nil { return result , errgo . NoteMask ( err , fmt . Sprintf ( " " , path ) , isAPIError ) } return result , nil }
ResourceMeta returns the metadata for the resource on charm id with the
given name and revision.
ResourceMeta returns the metadata for the resource on charm id with the given name and revision .