importer

package
v0.4.25-alpha Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2025 License: ISC Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Backends

func Backends() []string

func Register

func Register(name string, backend func(string) (Importer, error))

Types

type ExtendedAttributes

type ExtendedAttributes struct {
	Name  string
	Value []byte
}

type Importer

type Importer interface {
	Origin() string
	Type() string
	Root() string
	Scan() (<-chan *ScanResult, error)
	NewReader(string) (io.ReadCloser, error)
	NewExtendedAttributeReader(string, string) (io.ReadCloser, error)
	GetExtendedAttributes(string) ([]ExtendedAttributes, error)
	Close() error
}

func NewImporter

func NewImporter(location string) (Importer, error)

type ScanError

type ScanError struct {
	Pathname string
	Err      error
}

type ScanRecord

type ScanRecord struct {
	Pathname           string
	Target             string
	FileInfo           objects.FileInfo
	ExtendedAttributes []string
	FileAttributes     uint32
	IsXattr            bool
}

type ScanResult

type ScanResult struct {
	Record *ScanRecord
	Error  *ScanError
}

func NewScanError

func NewScanError(pathname string, err error) *ScanResult

func NewScanRecord

func NewScanRecord(pathname, target string, fileinfo objects.FileInfo, xattr []string) *ScanResult

func NewScanXattr

func NewScanXattr(pathname string, fileinfo objects.FileInfo) *ScanResult

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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