Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage interface { AddFile(ctx context.Context, r io.ReadSeeker, name string, replace bool) (int, error) DeleteFile(ctx context.Context, name string, version int) error Meta(ctx context.Context, name string, version int) (Meta, error) ListVersions(ctx context.Context, name string) ([]string, error) GetLatestVersion(ctx context.Context, name string) (int, error) List(ctx context.Context, prefix string) ([]string, error) Close() Used(ctx context.Context) (int, error) Capacity() int Id() string Kvdb() kvdb.KVDB ContextConfig() Context UpdateCapacity(size uint64) Config() *structureSpec.Storage }
Click to show internal directories.
Click to hide internal directories.