Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Shutdown ¶
func Shutdown(o ObjectStorage)
Types ¶
type ObjectStorage ¶
type ObjectStorage interface { // Description of the object storage. String() string // Get the data for the given object specified by key. Get(inode uint64, off int64, key *[]byte) ([]byte, error) // Put data read from a reader to an object specified by key. Put(inode uint64, key []byte, data []byte, size int64) error // Delete a object. Delete(inode uint64, key string) error }
ObjectStorage is the interface for object storage. all of these API should be idempotent.
func CreateStorage ¶
func CreateStorage(addr string) (ObjectStorage, error)
type Shutdownable ¶
type Shutdownable interface {
Shutdown()
}
Click to show internal directories.
Click to hide internal directories.