diskstorage

package
v0.0.0-...-f17fd0b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 26, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

type Storage struct {
}

func (*Storage) Close

func (s *Storage) Close() error

func (*Storage) EnumerateBlobs

func (s *Storage) EnumerateBlobs(ctx context.Context,
	dest chan<- blob.SizedRef,
	after string) error

func (*Storage) FetchBlob

func (s *Storage) FetchBlob(context.Context, blob.Ref) (blob io.ReadCloser, size uint32, err error)

func (*Storage) ReceiveBlob

func (s *Storage) ReceiveBlob(ctx context.Context, br, fl blob.Ref, source io.Reader) (blob.SizedRef, error)

func (*Storage) RemoveBlobs

func (s *Storage) RemoveBlobs(ctx context.Context, blobs []blob.Ref) error

func (*Storage) ResetStorageGeneration

func (s *Storage) ResetStorageGeneration() error

func (*Storage) StatBlobs

func (s *Storage) StatBlobs(ctx context.Context, blobs []blob.Ref, fn func(blob.SizedRef) error) error

func (*Storage) StorageGeneration

func (s *Storage) StorageGeneration() (initTime time.Time, random string, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL