Documentation
¶
Index ¶
- Variables
- type Client
- func (c *Client) Download(hash, path string) (*File, error)
- func (c *Client) DownloadDirectory(hash, path, destDir string) error
- func (c *Client) DownloadManifest(hash string) (*api.Manifest, error)
- func (c *Client) DownloadRaw(hash string) (io.ReadCloser, error)
- func (c *Client) List(hash, prefix string) (*api.ManifestList, error)
- func (c *Client) MultipartUpload(hash string, uploader Uploader) (string, error)
- func (c *Client) TarUpload(hash string, uploader Uploader) (string, error)
- func (c *Client) Upload(file *File, manifest string) (string, error)
- func (c *Client) UploadDirectory(dir, defaultPath, manifest string) (string, error)
- func (c *Client) UploadManifest(m *api.Manifest) (string, error)
- func (c *Client) UploadRaw(r io.Reader, size int64) (string, error)
- type DirectoryUploader
- type File
- type FileUploader
- type UploadFn
- type Uploader
- type UploaderFunc
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultGateway = "http://localhost:8500" DefaultClient = NewClient(DefaultGateway) )
Functions ¶
This section is empty.