Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage interface { Get(ctx context.Context, name string) (io.ReadCloser, error) Delete(ctx context.Context, name string, ignoreNotExists bool) error Put(ctx context.Context, name string, digest string, in io.ReadSeeker) error PutWithChunk(ctx context.Context, name string, digest string, size int, chunkSize int, in io.ReaderAt) error SeekRead(ctx context.Context, name string, start int64) (io.ReadCloser, error) CreateChunkWrite(ctx context.Context, name string) (string, error) ChunkWrite(ctx context.Context, name string, transactionID string, info *stotypes.ChunkInfo) error CompleteChunkWrite(ctx context.Context, name string, transactionID string, chunkList []*stotypes.ChunkInfo) error Move(ctx context.Context, src, dest string) error GetSize(ctx context.Context, name string) (int64, error) GetDigest(ctx context.Context, name string) (string, error) }
Click to show internal directories.
Click to hide internal directories.