shadowclonefs

package module
v0.0.0-...-b210645 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

README

shadowclonefs

Provide a metadata-only copy of a filesystem or filesystem tree

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FSObjectMetadata

type FSObjectMetadata struct {
	// Error reading this file
	Error   error
	Name    string
	Mode    uint32
	Dev     uint64
	Inode   uint64
	Nlink   uint64
	Uid     uint32
	Gid     uint32
	Rdev    int32
	Atim    unix.Timespec
	Mtim    unix.Timespec
	Ctim    unix.Timespec
	Size    int64
	Blocks  int64
	Blksize int32
	Flags   uint32
	Gen     uint32
}

func DeserializeFSObjectMetadata

func DeserializeFSObjectMetadata(input []byte) (FSObjectMetadata, error)

func FileMetadata

func FileMetadata(filename string) (FSObjectMetadata, error)

func (*FSObjectMetadata) Serialize

func (fom *FSObjectMetadata) Serialize() ([]byte, error)

type MultiHash

type MultiHash struct {
	MD5    string `json:"md5"`
	SHA1   string `json:"sha1"`
	SHA256 string `json:"sha256"`
	SHA512 string `json:"sha512"`
}

func CalculateHashes

func CalculateHashes(r io.Reader) (MultiHash, error)

Jump to

Keyboard shortcuts

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