Documentation ¶
Index ¶
- Constants
- func BalanceNode(f io.Reader, bufDs ipld.DAGService, cidBuilder cid.Builder) (node ipld.Node, err error)
- func BuildFileNode(item Finfo, bufDs ipld.DAGService, cidBuilder cid.Builder) (node ipld.Node, err error)
- func BuildFileNodeV0(f *os.File, bufDs ipld.DAGService) (node ipld.Node, err error)
- func ExistDir(path string) bool
- func FileWalkAsync(args []string) chan Finfo
- func FileWalkAsyncWithIgnore(args []string, ignore []string) chan Finfo
- func FileWalkSync(args []string) (fileList []string, err error)
- func RandPort() string
- type FileSlice
- type Finfo
Constants ¶
View Source
const ( RandPortMin = 4000 RandPortMax = 65000 )
View Source
const UnixfsChunkSize uint64 = 1 << 20
View Source
const UnixfsLinksPerLevel = 1 << 10
Variables ¶
This section is empty.
Functions ¶
func BalanceNode ¶ added in v0.0.7
func BuildFileNode ¶
func BuildFileNodeV0 ¶ added in v0.0.3
BuildFileNodeV0 - build ipld with cid v0
func FileWalkAsync ¶
func FileWalkAsyncWithIgnore ¶ added in v0.0.11
func FileWalkSync ¶
Types ¶
type FileSlice ¶
type FileSlice struct {
// contains filtered or unexported fields
}
func NewFileSlice ¶ added in v0.0.3
Click to show internal directories.
Click to hide internal directories.