Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrObjectNotFound = errors.New("object not found")
)
Functions ¶
This section is empty.
Types ¶
type GetObjectOptions ¶
type MemoryConfig ¶
type Storage ¶
type Storage interface { // PutObject stores the object data for the given key PutObject(ctx context.Context, key string, object []byte) error // GetObject returns the object data for the given key GetObject(ctx context.Context, key string) ([]byte, bool, error) // ListObjects returns a list of object keys that match the given prefix ListObjectKeys(ctx context.Context, prefix string) ([]string, error) // Key returns the object key for the given shard and version Key(shard string, dekID string) string // Latest returns the object key for the latest version of the given workspace Latest(shard string) string }
func NewMemory ¶
func NewMemory(config MemoryConfig) (Storage, error)
Click to show internal directories.
Click to hide internal directories.