contract

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const DirSeparator = "/"
View Source
const ExtStorageBasePath = "/ext"
View Source
const IntStorageBasePath = "/int"
View Source
const ThisDirectory = "."

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Source  string
	Target  string
	Orphans Orphans
	Include []string
	Exclude []string
	Run     []string
}

type File

type File struct {
	Name string
	Path string
	Dir  string
	Rel  string
	Size int64
}

type FileWalker

type FileWalker func(file *File) error

type IO

type IO interface {
	Input
	Output
}

type Input

type Input interface {
	Write([]byte) (int, error)
}

type Orphans

type Orphans string
const (
	Orphans_Download Orphans = "download"
	Orphans_Delete   Orphans = "delete"
	Orphans_Ignore   Orphans = "ignore"
)

type Output

type Output interface {
	Read([]byte) (int, error)
}

Jump to

Keyboard shortcuts

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