storage

package
v0.0.0-...-4fa15db Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2024 License: MIT Imports: 3 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 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)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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