files

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Root       string
	KeyName    string
	Source     string
	WithUpload bool
}

type Files

type Files interface {
	SetMetaData() error
	MetaDownload() error
	MetaUpload() error
	PublishMetaData() (cid string, err error)
	Download() error
	Upload() error
}

func New

func New(
	cfg Config,
	efs exofs.ExoFS,
	lfs localfs.LocalFS,
) Files

Jump to

Keyboard shortcuts

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