archivum

package
v0.0.0-...-881676d Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2023 License: NCSA Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeviceInfo

type DeviceInfo struct {
	Major, Minor uint32
}

type Metadata

type Metadata struct {
	FType      rune
	Path       string
	RealPath   string
	OctalMod   string
	Owner      string
	Group      string
	DeviceInfo *DeviceInfo
}

func Scan

func Scan(dir OperatingSystemFS, path string) (*Metadata, error)

type OSFileInfo

type OSFileInfo interface {
	fs.FileInfo

	Group() *user.Group
	Owner() *user.User
	DeviceInfo() *DeviceInfo
}

type OperatingSystemFS

type OperatingSystemFS interface {
	fs.FS

	Stat(name string) (OSFileInfo, error)
}

type UnixFS

type UnixFS struct {
	fs.FS
}

func NewUnixFS

func NewUnixFS(path string) UnixFS

func (UnixFS) Stat

func (fs UnixFS) Stat(name string) (OSFileInfo, error)

type UnixFileInfo

type UnixFileInfo struct {
	fs.FileInfo
	// contains filtered or unexported fields
}

func (UnixFileInfo) DeviceInfo

func (fi UnixFileInfo) DeviceInfo() *DeviceInfo

func (UnixFileInfo) Group

func (fi UnixFileInfo) Group() *user.Group

func (UnixFileInfo) Owner

func (fi UnixFileInfo) Owner() *user.User

Jump to

Keyboard shortcuts

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