vfs

package
v0.0.0-...-6fcdc86 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrDenied = errors.New("denied")
View Source
var ErrInvalid = errors.New("invalid")
View Source
var ErrReserved = errors.New("reserved")

Functions

func Resolve

func Resolve(vPath string, user *db.User, action db.Action) (realPath string, err error)

func ResolveSingleUser

func ResolveSingleUser(vPath string) (realPath string, err error)

func Setup

func Setup(policies PolicyStore, rootFolder string)

Types

type PolicyStore

type PolicyStore interface {
	GetPolicies(path string, username string, action db.Action) []db.Policy
}

Jump to

Keyboard shortcuts

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