Documentation ¶
Index ¶
- type FileInfo
- func (f FileInfo) Dev() uint64
- func (f FileInfo) Gid() uint64
- func (fileinfo *FileInfo) HumanSize() string
- func (f FileInfo) Ino() uint64
- func (f FileInfo) IsDir() bool
- func (f FileInfo) ModTime() time.Time
- func (f FileInfo) Mode() os.FileMode
- func (f FileInfo) Name() string
- func (f FileInfo) Size() int64
- func (f FileInfo) Sys() any
- func (f FileInfo) Uid() uint64
- type Filesystem
- func (filesystem *Filesystem) GetPathname(pathnameId uint64) string
- func (filesystem *Filesystem) GetPathnameID(pathname string) uint64
- func (filesystem *Filesystem) ImporterBegin(location string) error
- func (filesystem *Filesystem) ImporterEnd() error
- func (filesystem *Filesystem) ImporterOpen(filename string) (io.ReadCloser, error)
- func (filesystem *Filesystem) ListDirectories() []string
- func (filesystem *Filesystem) ListFiles() []string
- func (filesystem *Filesystem) ListNonRegular() []string
- func (filesystem *Filesystem) ListStat() []string
- func (filesystem *Filesystem) Lookup(pathname string) (*FilesystemNode, error)
- func (filesystem *Filesystem) LookupChildren(pathname string) ([]string, error)
- func (filesystem *Filesystem) LookupInode(pathname string) (*FileInfo, bool)
- func (filesystem *Filesystem) LookupInodeForDirectory(pathname string) (*FileInfo, bool)
- func (filesystem *Filesystem) LookupInodeForFile(pathname string) (*FileInfo, bool)
- func (filesystem *Filesystem) NDirectories() uint64
- func (filesystem *Filesystem) NFiles() uint64
- func (filesystem *Filesystem) Scan(c chan<- int64, directory string, skip []string) error
- func (filesystem *Filesystem) Serialize() ([]byte, error)
- func (filesystem *Filesystem) Size() uint64
- type FilesystemNode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileInfo ¶
type FileInfo struct { Lname string `json:"Name" msgpack:"Name"` Lsize int64 `json:"Size" msgpack:"Size"` Lmode os.FileMode `json:"Mode" msgpack:"Mode"` LmodTime time.Time `json:"ModTime" msgpack:"ModTime"` Ldev uint64 `json:"Dev" msgpack:"Dev"` Lino uint64 `json:"Ino" msgpack:"Ino"` Luid uint64 `json:"Uid" msgpack:"Uid"` Lgid uint64 `json:"Gid" msgpack:"Gid"` }
func FileInfoFromStat ¶
func NewFileInfo ¶
type Filesystem ¶
type Filesystem struct { Root *FilesystemNode Inodes map[string]FileInfo Pathnames map[string]uint64 Symlinks map[string]string // contains filtered or unexported fields }
func NewFilesystem ¶
func NewFilesystem() *Filesystem
func NewFilesystemFromBytes ¶
func NewFilesystemFromBytes(serialized []byte) (*Filesystem, error)
func NewFilesystemFromScan ¶
func NewFilesystemFromScan(repository string, directory string) (*Filesystem, error)
func (*Filesystem) GetPathname ¶
func (filesystem *Filesystem) GetPathname(pathnameId uint64) string
func (*Filesystem) GetPathnameID ¶
func (filesystem *Filesystem) GetPathnameID(pathname string) uint64
func (*Filesystem) ImporterBegin ¶
func (filesystem *Filesystem) ImporterBegin(location string) error
func (*Filesystem) ImporterEnd ¶
func (filesystem *Filesystem) ImporterEnd() error
func (*Filesystem) ImporterOpen ¶
func (filesystem *Filesystem) ImporterOpen(filename string) (io.ReadCloser, error)
func (*Filesystem) ListDirectories ¶
func (filesystem *Filesystem) ListDirectories() []string
func (*Filesystem) ListFiles ¶
func (filesystem *Filesystem) ListFiles() []string
func (*Filesystem) ListNonRegular ¶
func (filesystem *Filesystem) ListNonRegular() []string
func (*Filesystem) ListStat ¶
func (filesystem *Filesystem) ListStat() []string
func (*Filesystem) Lookup ¶
func (filesystem *Filesystem) Lookup(pathname string) (*FilesystemNode, error)
func (*Filesystem) LookupChildren ¶
func (filesystem *Filesystem) LookupChildren(pathname string) ([]string, error)
func (*Filesystem) LookupInode ¶
func (filesystem *Filesystem) LookupInode(pathname string) (*FileInfo, bool)
func (*Filesystem) LookupInodeForDirectory ¶
func (filesystem *Filesystem) LookupInodeForDirectory(pathname string) (*FileInfo, bool)
func (*Filesystem) LookupInodeForFile ¶
func (filesystem *Filesystem) LookupInodeForFile(pathname string) (*FileInfo, bool)
func (*Filesystem) NDirectories ¶
func (filesystem *Filesystem) NDirectories() uint64
func (*Filesystem) NFiles ¶
func (filesystem *Filesystem) NFiles() uint64
func (*Filesystem) Scan ¶
func (filesystem *Filesystem) Scan(c chan<- int64, directory string, skip []string) error
func (*Filesystem) Serialize ¶
func (filesystem *Filesystem) Serialize() ([]byte, error)
func (*Filesystem) Size ¶
func (filesystem *Filesystem) Size() uint64
type FilesystemNode ¶
type FilesystemNode struct { Inode string Children map[string]*FilesystemNode // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.