Versions in this module Expand all Collapse all v7 v7.0.1 Jul 27, 2022 v7.0.0 Feb 7, 2022 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) GetFileFromArchive(charmURL *charm.URL, filename string) (io.ReadCloser, error) + func (s *CharmStore) Latest(curls ...*charm.URL) ([]CharmRevision, error) + func (s *CharmStore) Meta(charmURL *charm.URL, result interface{}) (*charm.URL, 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) ResolveWithPreferredChannel(ref *charm.URL, channel params.Channel) (*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 github.com/juju/charmrepo github.com/juju/charmrepo/v6