Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend interface {
UploadWithReader(hash string, r io.Reader) error
DownloadWithWriter(hash string, w io.WriterAt) error
VerifyHash(hash string) (bool, error)
// TODO Replace []string with output channel
List(prefix string, action func(key string)) ([]string, error)
}
func GetDefaultClient ¶
Click to show internal directories.
Click to hide internal directories.