Versions in this module Expand all Collapse all v1 v1.8.23 Feb 11, 2019 v1.8.22 Feb 11, 2019 Changes in this version + var ErrNoFeedUpdatesFound = errors.New("No updates found for this feed") + var ErrUnauthorized = errors.New("unauthorized") + func GetClientTrace(traceMsg, metricPrefix, ruid string, tn *time.Time) *httptrace.ClientTrace + type Client struct + Gateway string + func NewClient(gateway string) *Client + func (c *Client) CreateFeedWithManifest(request *feed.Request) (string, error) + func (c *Client) Download(hash, path string) (*File, error) + func (c *Client) DownloadDirectory(hash, path, destDir, credentials string) error + func (c *Client) DownloadFile(hash, path, dest, credentials string) error + func (c *Client) DownloadManifest(hash string) (*api.Manifest, bool, error) + func (c *Client) DownloadRaw(hash string) (io.ReadCloser, bool, error) + func (c *Client) GetFeedRequest(query *feed.Query, manifestAddressOrDomain string) (*feed.Request, error) + func (c *Client) List(hash, prefix, credentials string) (*api.ManifestList, error) + func (c *Client) MultipartUpload(hash string, uploader Uploader) (string, error) + func (c *Client) QueryFeed(query *feed.Query, manifestAddressOrDomain string) (io.ReadCloser, error) + func (c *Client) TarUpload(hash string, uploader Uploader, defaultPath string, toEncrypt bool) (string, error) + func (c *Client) UpdateFeed(request *feed.Request) error + func (c *Client) Upload(file *File, manifest string, toEncrypt bool) (string, error) + func (c *Client) UploadDirectory(dir, defaultPath, manifest string, toEncrypt bool) (string, error) + func (c *Client) UploadManifest(m *api.Manifest, toEncrypt bool) (string, error) + func (c *Client) UploadRaw(r io.Reader, size int64, toEncrypt bool) (string, error) + type DirectoryUploader struct + Dir string + func (d *DirectoryUploader) Upload(upload UploadFn) error + type File struct + func Open(path string) (*File, error) + type FileUploader struct + File *File + func (f *FileUploader) Upload(upload UploadFn) error + type UploadFn func(file *File) error + type Uploader interface + Upload func(UploadFn) error + type UploaderFunc func(UploadFn) error + func (u UploaderFunc) Upload(upload UploadFn) error