ipfs2dir

package
v0.0.0-...-1578c0a Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2016 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SeenEntityCount      statDataType = iota
	SeenFileCount                     = iota
	ProcessedEntityCount              = iota
	SkippedEntityCount                = iota
)

Variables

This section is empty.

Functions

func RunTask

func RunTask(task *SyncTask)

func SyncDir

func SyncDir(shell *shell.Shell, srcHash string, target string, stat *StatData)

Types

type StatData

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

func (*StatData) Increment

func (s *StatData) Increment(whatToIncrement statDataType)

func (*StatData) Print

func (s *StatData) Print()

func (*StatData) Read

func (s *StatData) Read(whatToRead statDataType) uint64

type SyncTask

type SyncTask struct {
	Shell     *shell.Shell
	DstParent string
	Src       *shell.LsLink
	Stat      *StatData
}

func Execute

func Execute(t *SyncTask) []*SyncTask

Jump to

Keyboard shortcuts

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