Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend interface { ReadIfModified(ctx context.Context, path string, version int64) (ReadReply, error) Read(ctx context.Context, path string) (ReadReply, error) GetMetadata(ctx context.Context, path string) (Metadata, error) SetTagsIf(ctx context.Context, path string, expected Version, t Tags) (Metadata, error) Write(ctx context.Context, path string, value []byte, t Tags) (Metadata, error) WriteIf(ctx context.Context, path string, value []byte, expected Version, t Tags) (Metadata, error) WriteIfNotExists(ctx context.Context, path string, value []byte, t Tags) (Metadata, error) Delete(ctx context.Context, path string) error DeleteIf(ctx context.Context, path string, expected Version) error // List returns an iterator over the objects in the bucket within the given // directory (path separator is '/'). Objects will be iterated over // lexicographically by name. // // Note: The returned iterator is not safe for concurrent operations without // explicit synchronization. List(ctx context.Context, dirPath string) (ListIter, error) }
Click to show internal directories.
Click to hide internal directories.