hashattr

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HashAttr

type HashAttr struct {
	Name string
}

HashAttr implements xattr specific methods

func New

func New(name string) HashAttr

New returns an initialised instance of HashAttr

func (*HashAttr) Get

func (attr *HashAttr) Get(path string) []byte

Get xattr value

func (*HashAttr) Reader

func (attr *HashAttr) Reader(input <-chan *pathwalk.File, output chan<- *hasher.FileHash, wg *sync.WaitGroup)

Reader goroutine

func (*HashAttr) Remove

func (attr *HashAttr) Remove(path string) error

Remove xattr

func (*HashAttr) Remover

func (attr *HashAttr) Remover(input <-chan *pathwalk.File, wg *sync.WaitGroup)

Remover goroutine

func (*HashAttr) Set

func (attr *HashAttr) Set(path string, data []byte) error

Set xattr value

func (*HashAttr) Writer

func (attr *HashAttr) Writer(input <-chan *hasher.FileHash, wg *sync.WaitGroup)

Writer goroutine

Jump to

Keyboard shortcuts

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