Documentation
¶
Index ¶
- func NewBackend(cfg *config.Config) (backends.ResourceBackend, error)
- type Backend
- func (b *Backend) DeleteResource(ctx context.Context, hash string) error
- func (b *Backend) GetResource(ctx context.Context, hash string) (io.ReadCloser, error)
- func (b *Backend) HasResource(ctx context.Context, hash string) (bool, error)
- func (b *Backend) HasResources(ctx context.Context, hashes []string) ([]string, error)
- func (b *Backend) UploadResource(ctx context.Context, hash string, r io.Reader, length int64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBackend ¶
func NewBackend(cfg *config.Config) (backends.ResourceBackend, error)
Types ¶
type Backend ¶
type Backend struct {
// contains filtered or unexported fields
}
func (*Backend) DeleteResource ¶
func (*Backend) GetResource ¶
func (*Backend) HasResource ¶
func (*Backend) HasResources ¶
Click to show internal directories.
Click to hide internal directories.