veinfs

package
v0.0.0-...-b5b2af5 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Bit  Size = 1
	Byte      = Bit << 3
	KB        = Byte << 10
	MB        = KB << 10
	GB        = MB << 10
	TB        = GB << 10
)

Variables

This section is empty.

Functions

func Walk

func Walk(image api.Image, rootPath string, walkFunc WalkFunc) error

Types

type FileInfo

type FileInfo struct {
	Md5        string      // md5
	Sha256     string      // sha256
	Uid        uint32      // uid bits
	Gid        uint32      // gid bits
	ELF        bool        // elf file
	UserFile   bool        // user file
	Hidden     bool        // hidden file
	Temporary  bool        // temporary file
	Perm       os.FileMode // permission bits
	Type       os.FileMode // type bits: dir/symlink/namedPipe/socket/device/charDevice
	CreateTime time.Time   // create time
	ModifyTime time.Time   // modify time
	AccessTime time.Time   // access time
	// contains filtered or unexported fields
}

func NewFileInfo

func NewFileInfo(image api.Image, path string, info ...os.FileInfo) (*FileInfo, error)

type Size

type Size uint64

func NewSize

func NewSize(text string) (Size, error)

func (Size) String

func (s Size) String() string

type WalkFunc

type WalkFunc func(info *FileInfo, err error) error

type WithFileInfo

type WithFileInfo func(image api.Image, fileInfo *FileInfo) (*FileInfo, error)

Jump to

Keyboard shortcuts

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