fileid

package
v0.0.0-...-4655df8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 27, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DisableTestMode

func DisableTestMode()

DisableTestMode re-enables normal operation.

func EnableTestMode

func EnableTestMode()

EnableTestMode swaps out the real implementation for a test-friendly mock.

Types

type Attribute

type Attribute struct {
	// contains filtered or unexported fields
}

Attribute is an interface for managing exctended attributes.

var UUID, Hash, URL Attribute

func (Attribute) Get

func (a Attribute) Get(path string) ([]byte, error)

Get gets the fileid attribute for a file

func (Attribute) GetByFid

func (a Attribute) GetByFid(mnt fs.RootDir, fid *lustre.Fid) ([]byte, error)

GetByFid fetches attribute by root and FID.

func (Attribute) Set

func (a Attribute) Set(p string, fileID []byte) error

Set sets a fileid attribute on a file

func (Attribute) String

func (a Attribute) String() string

func (Attribute) Update

func (a Attribute) Update(p string, fileID []byte) error

Update updates an existing fileid attribute with a new value

func (Attribute) UpdateByFid

func (a Attribute) UpdateByFid(mnt fs.RootDir, fid *lustre.Fid, fileID []byte) error

UpdateByFid updates an existing fileid attribute with a new value

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL