Documentation ¶
Index ¶
- Variables
- type MetadataStorer
- type XattrMeta
- func (x XattrMeta) DeleteAttribute(bucket, object, attribute string) error
- func (x XattrMeta) DeleteAttributes(bucket, object string) error
- func (x XattrMeta) ListAttributes(bucket, object string) ([]string, error)
- func (x XattrMeta) RetrieveAttribute(bucket, object, attribute string) ([]byte, error)
- func (x XattrMeta) StoreAttribute(bucket, object, attribute string, value []byte) error
- func (x XattrMeta) Test(path string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNoSuchKey is returned when the key does not exist. ErrNoSuchKey = errors.New("no such key") )
Functions ¶
This section is empty.
Types ¶
type MetadataStorer ¶
type MetadataStorer interface { // RetrieveAttribute retrieves the value of a specific attribute for an object or a bucket. // Returns the value of the attribute, or an error if the attribute does not exist. RetrieveAttribute(bucket, object, attribute string) ([]byte, error) // StoreAttribute stores the value of a specific attribute for an object or a bucket. // If attribute already exists, new attribute should replace existing. // Returns an error if the operation fails. StoreAttribute(bucket, object, attribute string, value []byte) error // DeleteAttribute removes the value of a specific attribute for an object or a bucket. // Returns an error if the operation fails. DeleteAttribute(bucket, object, attribute string) error // ListAttributes lists all attributes for an object or a bucket. // Returns list of attribute names, or an error if the operation fails. ListAttributes(bucket, object string) ([]string, error) // DeleteAttributes removes all attributes for an object or a bucket. // Returns an error if the operation fails. DeleteAttributes(bucket, object string) error }
MetadataStorer defines the interface for managing metadata. When object == "", the operation is on the bucket.
type XattrMeta ¶
type XattrMeta struct{}
func (XattrMeta) DeleteAttribute ¶
DeleteAttribute removes the value of a specific attribute for an object in a bucket.
func (XattrMeta) DeleteAttributes ¶
DeleteAttributes is not implemented for xattr since xattrs are automatically removed when the file is deleted.
func (XattrMeta) ListAttributes ¶
ListAttributes lists all attributes for an object in a bucket.
func (XattrMeta) RetrieveAttribute ¶
RetrieveAttribute retrieves the value of a specific attribute for an object in a bucket.
func (XattrMeta) StoreAttribute ¶
StoreAttribute stores the value of a specific attribute for an object in a bucket.
Click to show internal directories.
Click to hide internal directories.