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 ErrUploadNotFound = errgo.Newf("upload not found") + var ServerURL = "https://api.jujucharms.com/charmstore" + func IsAuthorizationError(err error) bool + type Client struct + func New(p Params) *Client + func (c *Client) AddDockerResource(id *charm.URL, resourceName string, imageName, digest string) (revision int, err error) + func (c *Client) Channel() params.Channel + func (c *Client) DisableStats() + func (c *Client) Do(req *http.Request, path string) (*http.Response, error) + func (c *Client) DoWithBody(req *http.Request, path string, body io.ReadSeeker) (*http.Response, error) + func (c *Client) DoWithResponse(method string, path string, val, result interface{}) error + func (c *Client) DockerResourceDownloadInfo(id *charm.URL, resourceName string) (*params.DockerInfoResponse, error) + func (c *Client) DockerResourceUploadInfo(id *charm.URL, resourceName string) (*params.DockerInfoResponse, error) + func (c *Client) Get(path string, result interface{}) error + func (c *Client) GetArchive(id *charm.URL) (r io.ReadCloser, eid *charm.URL, hash string, size int64, err error) + func (c *Client) GetResource(id *charm.URL, name string, revision int) (result ResourceData, err error) + func (c *Client) ListResources(id *charm.URL) ([]params.Resource, error) + func (c *Client) Meta(id *charm.URL, result interface{}) (*charm.URL, error) + func (c *Client) Publish(id *charm.URL, channels []params.Channel, resources map[string]int) error + func (c *Client) Put(path string, val interface{}) error + func (c *Client) PutCommonInfo(id *charm.URL, info map[string]interface{}) error + func (c *Client) PutExtraInfo(id *charm.URL, info map[string]interface{}) error + func (c *Client) PutWithResponse(path string, val, result interface{}) error + func (c *Client) ResourceMeta(id *charm.URL, name string, revision int) (params.Resource, error) + func (c *Client) ResumeUploadResource(uploadId string, id *charm.URL, name, path string, file io.ReaderAt, ...) (revision int, err error) + func (c *Client) ServerURL() string + func (c *Client) SetHTTPHeader(header http.Header) + func (c *Client) StatsUpdate(req params.StatsUpdateRequest) error + func (c *Client) UploadBundle(id *charm.URL, b charm.Bundle) (*charm.URL, error) + func (c *Client) UploadBundleWithRevision(id *charm.URL, b charm.Bundle, promulgatedRevision int) error + func (c *Client) UploadCharm(id *charm.URL, ch charm.Charm) (*charm.URL, error) + func (c *Client) UploadCharmWithRevision(id *charm.URL, ch charm.Charm, promulgatedRevision int) error + func (c *Client) UploadResource(id *charm.URL, name, path string, file io.ReaderAt, size int64, ...) (revision int, err error) + func (c *Client) WithChannel(channel params.Channel) *Client + func (cs *Client) Latest(curls []*charm.URL) ([]params.CharmRevision, error) + func (cs *Client) Log(typ params.LogType, level params.LogLevel, message string, urls ...*charm.URL) error + func (cs *Client) Login() error + func (cs *Client) WhoAmI() (*params.WhoAmIResponse, error) + type Params struct + Auth macaroon.Slice + BakeryClient *httpbakery.Client + HTTPClient *http.Client + Password string + URL string + User string + VisitWebPage func(url *url.URL) error + type Progress interface + Error func(err error) + Finalizing func() + Start func(uploadId string, expires time.Time) + Transferred func(total int64) + type ReadSeekCloser interface + type ResourceData struct + Hash string Other modules containing this package gopkg.in/juju/charmrepo.v4