Versions in this module Expand all Collapse all v3 v3.0.1 Oct 19, 2018 v3.0.0 Sep 5, 2018 Changes in this version + const JujuMetadataHTTPHeader + var CacheDir string + var LegacyStore = &LegacyCharmStore + 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 + Sha256 string + 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) (charm.Charm, error) + func (s *CharmStore) GetBundle(curl *charm.URL) (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) (charm.Charm, error) + GetBundle func(curl *charm.URL) (charm.Bundle, error) + Resolve func(ref *charm.URL) (canonRef *charm.URL, supportedSeries []string, err error) + func InferRepository(ref *charm.URL, charmStoreParams NewCharmStoreParams, localRepoPath string) (Interface, error) + func LegacyInferRepository(ref *charm.URL, localRepoPath string) (repo Interface, err error) + func NewLocalRepository(path string) (Interface, error) + type LegacyCharmStore struct + BaseURL string + func (s *LegacyCharmStore) BranchLocation(curl *charm.URL) string + func (s *LegacyCharmStore) CharmURL(location string) (*charm.URL, error) + func (s *LegacyCharmStore) Event(curl *charm.URL, digest string) (*EventResponse, error) + func (s *LegacyCharmStore) Get(curl *charm.URL) (charm.Charm, error) + func (s *LegacyCharmStore) GetBundle(curl *charm.URL) (charm.Bundle, error) + func (s *LegacyCharmStore) Info(curls ...charm.Location) ([]*InfoResponse, error) + func (s *LegacyCharmStore) Latest(curls ...*charm.URL) ([]CharmRevision, error) + func (s *LegacyCharmStore) Resolve(ref *charm.URL) (*charm.URL, []string, error) + func (s *LegacyCharmStore) WithAuthAttrs(authAttrs string) Interface + func (s *LegacyCharmStore) WithJujuAttrs(jujuAttrs string) Interface + func (s *LegacyCharmStore) WithTestMode(testMode bool) Interface + type LocalRepository struct + Path string + func (r *LocalRepository) Get(curl *charm.URL) (charm.Charm, error) + func (r *LocalRepository) GetBundle(curl *charm.URL) (charm.Bundle, error) + func (r *LocalRepository) Resolve(ref *charm.URL) (*charm.URL, []string, error) + type NewCharmStoreParams struct + BakeryClient *httpbakery.Client + HTTPClient *http.Client + Password string + URL string + User string + VisitWebPage func(url *url.URL) error + 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.v4