metadata

package
v0.0.0-...-d2a410c Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

type Node struct {
	Ino     uint64            `json:"ino"`
	Mode    uint32            `json:"mode"`
	Size    int64             `json:"size"`
	Value   string            `json:"value,omitempty"`
	Dirents map[string]uint64 `json:"dirents,omitempty"`
}

func (*Node) IsDir

func (n *Node) IsDir() bool

func (*Node) IsLnk

func (n *Node) IsLnk() bool

func (*Node) IsReg

func (n *Node) IsReg() bool

func (*Node) Stat

func (n *Node) Stat(stat *syscall.Stat_t)

type Tree

type Tree struct {
	// contains filtered or unexported fields
}

func (*Tree) Build

func (t *Tree) Build(root string, toValue func(path string) string) error

func (*Tree) Dump

func (t *Tree) Dump() ([]byte, error)

func (*Tree) GetHash

func (t *Tree) GetHash(path string) (hash string, errc int)
func (t *Tree) GetLink(path string) (lnk string, errc int)

func (*Tree) ListDir

func (t *Tree) ListDir(path string) (names []string)

func (*Tree) Load

func (t *Tree) Load(data []byte) error

func (*Tree) NewNode

func (t *Tree) NewNode(stat *syscall.Stat_t) *Node

func (*Tree) Restore

func (t *Tree) Restore(filename string) error

func (*Tree) Save

func (t *Tree) Save(filename string) error

func (*Tree) Stat

func (t *Tree) Stat(path string, stat *syscall.Stat_t) error

Jump to

Keyboard shortcuts

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