fs

package
v0.0.0-...-fa57f66 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2021 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FilesystemName = "credentialfs"
)

nolint:revive

Variables

This section is empty.

Functions

This section is empty.

Types

type Filesystem

type Filesystem interface {
	// Start serving files in background (mount)
	Start() error

	// Stop background serving (unmount)
	Stop() error

	BindData(
		ctx context.Context,
		at string,
		data []byte,
		penaltyDuration *time.Duration,
		permitDuration *time.Duration,
	) error
}

func CreateFilesystem

func CreateFilesystem(
	ctx context.Context,
	mountPoint string,
	authHandler security.AuthorizationHandler,
	defaultPenaltyDuration time.Duration,
	defaultPermitDuration time.Duration,
) (_ Filesystem, err error)

Jump to

Keyboard shortcuts

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