Documentation ¶
Overview ¶
Package memxattr provides a default, in-memory extended attribute implementation.
Index ¶
- type SimpleExtendedAttributes
- func (x *SimpleExtendedAttributes) GetXattr(opts *vfs.GetXattrOptions) (string, error)
- func (x *SimpleExtendedAttributes) ListXattr(size uint64) ([]string, error)
- func (x *SimpleExtendedAttributes) RemoveXattr(name string) error
- func (x *SimpleExtendedAttributes) SetXattr(opts *vfs.SetXattrOptions) error
- func (x *SimpleExtendedAttributes) StateFields() []string
- func (x *SimpleExtendedAttributes) StateLoad(stateSourceObject state.Source)
- func (x *SimpleExtendedAttributes) StateSave(stateSinkObject state.Sink)
- func (x *SimpleExtendedAttributes) StateTypeName() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SimpleExtendedAttributes ¶
type SimpleExtendedAttributes struct {
// contains filtered or unexported fields
}
SimpleExtendedAttributes implements extended attributes using a map of names to values.
+stateify savable
func (*SimpleExtendedAttributes) GetXattr ¶
func (x *SimpleExtendedAttributes) GetXattr(opts *vfs.GetXattrOptions) (string, error)
GetXattr returns the value at 'name'.
func (*SimpleExtendedAttributes) ListXattr ¶
func (x *SimpleExtendedAttributes) ListXattr(size uint64) ([]string, error)
ListXattr returns all names in xattrs.
func (*SimpleExtendedAttributes) RemoveXattr ¶
func (x *SimpleExtendedAttributes) RemoveXattr(name string) error
RemoveXattr removes the xattr at 'name'.
func (*SimpleExtendedAttributes) SetXattr ¶
func (x *SimpleExtendedAttributes) SetXattr(opts *vfs.SetXattrOptions) error
SetXattr sets 'value' at 'name'.
func (*SimpleExtendedAttributes) StateFields ¶
func (x *SimpleExtendedAttributes) StateFields() []string
func (*SimpleExtendedAttributes) StateLoad ¶
func (x *SimpleExtendedAttributes) StateLoad(stateSourceObject state.Source)
func (*SimpleExtendedAttributes) StateSave ¶
func (x *SimpleExtendedAttributes) StateSave(stateSinkObject state.Sink)
func (*SimpleExtendedAttributes) StateTypeName ¶
func (x *SimpleExtendedAttributes) StateTypeName() string
Click to show internal directories.
Click to hide internal directories.