uploader

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CinodeDirMimeType = "application/cinode-dir"
)

Variables

View Source
var (
	ErrNotFound             = blenc.ErrNotFound
	ErrNotADirectory        = errors.New("entry is not a directory")
	ErrNotAFile             = errors.New("entry is not a file")
	ErrNotADirectoryOrAFile = errors.New("entry is neither a directory nor a regular file")
)

Functions

func UploadStaticDirectory

func UploadStaticDirectory(
	ctx context.Context,
	fsys fs.FS,
	cfs cinodefs.FS,
	opts ...Option,
) error

Types

type Option

type Option func(d *dirCompiler)

func BasePath

func BasePath(path ...string) Option

func CreateIndexFile

func CreateIndexFile(indexFile string) Option

Jump to

Keyboard shortcuts

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