common

package
v0.0.0-...-51de09c Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrFileHashMismatch = errors.New("file hash mismatch")
)
View Source
var (
	ErrFileOrFolderNotSpecified = errors.New("file or folder not specified")
)

Functions

func GetFile

func GetFile(filePath, folder string, index int) (file string, err error)

func Traversal

func Traversal(folder string, action func(*Manifest, *Chunk, io.Reader) error) (err error)

Types

type Chunk

type Chunk struct {
	Name string
	Hash string
}

type Manifest

type Manifest struct {
	Name string
	Hash struct {
		Algorithm string
		Value     string
	}
	Chunks []*Chunk
}

Jump to

Keyboard shortcuts

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