Versions in this module Expand all Collapse all v4 v4.1.1 Dec 5, 2018 v4.1.0 Sep 6, 2018 Changes in this version + const JujuMetadataHTTPHeader + func BundleNotFound(url string) error + func CharmNotFound(url string) error + func InvalidPath(path string) error + func IsInvalidPathError(err error) bool + func NewBundleAtPath(path string) (charm.Bundle, *charm.URL, error) + func NewCharmAtPath(path, series string) (charm.Charm, *charm.URL, error) + func NewCharmAtPathForceSeries(path, series string, force bool) (charm.Charm, *charm.URL, error) + func ReadBundleFile(path string) (*charm.BundleData, error) + type CharmRevision struct + Err error + Revision int + type CharmStore struct + func NewCharmStore(p NewCharmStoreParams) *CharmStore + func NewCharmStoreFromClient(client *csclient.Client) *CharmStore + func (s *CharmStore) Client() *csclient.Client + func (s *CharmStore) Get(curl *charm.URL, archivePath string) (*charm.CharmArchive, error) + func (s *CharmStore) GetBundle(curl *charm.URL, archivePath string) (charm.Bundle, error) + func (s *CharmStore) Latest(curls ...*charm.URL) ([]CharmRevision, error) + func (s *CharmStore) Resolve(ref *charm.URL) (*charm.URL, []string, error) + func (s *CharmStore) ResolveWithChannel(ref *charm.URL) (*charm.URL, params.Channel, []string, error) + func (s *CharmStore) URL() string + func (s *CharmStore) WithJujuAttrs(attrs map[string]string) *CharmStore + func (s *CharmStore) WithTestMode() *CharmStore + type EventResponse struct + Digest string + Errors []string + Kind string + Revision int + Time string + Warnings []string + type InfoResponse struct + CanonicalURL string + Digest string + Errors []string + Revision int + Sha256 string + Warnings []string + type Interface interface + Get func(curl *charm.URL, archivePath string) (*charm.CharmArchive, error) + GetBundle func(curl *charm.URL, archivePath string) (charm.Bundle, error) + Resolve func(ref *charm.URL) (canonRef *charm.URL, supportedSeries []string, err error) + type NewCharmStoreParams struct + BakeryClient *httpbakery.Client + Password string + URL string + User string + type NotFoundError struct + func (e *NotFoundError) Error() string + type ResourceResult struct + Err error + Resources []resource.Resource Other modules containing this package gopkg.in/juju/charmrepo.v3