Documentation ¶
Index ¶
- func Sha1Digest(r io.Reader) string
- type DownloadError
- type Driver
- type Record
- type Table
- func (t *Table) Delete(digest string) error
- func (t *Table) Download(digest string) (io.ReadCloser, error)
- func (t *Table) Drop() error
- func (t *Table) Has(digest string) (bool, error)
- func (t *Table) List() (*sql.Rows, error)
- func (t *Table) Upload(digest string, r io.Reader) (*Record, error)
- func (t *Table) UploadEx(r io.ReadSeeker) (*Record, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Sha1Digest ¶
Sha1Digest calculates the sha1 digest for the io.Reader
Types ¶
type DownloadError ¶
DownloadError represents an error that occurs when downloading a blob.
func (DownloadError) Error ¶
func (e DownloadError) Error() string
Error returns a string representation of the DownloadError.
type Driver ¶
type Driver struct {
// contains filtered or unexported fields
}
type Table ¶
type Table struct { Name string // contains filtered or unexported fields }
func (*Table) Download ¶
func (t *Table) Download(digest string) (io.ReadCloser, error)
Download a blob in a blob table with the specific digest
Click to show internal directories.
Click to hide internal directories.