providers

package
v0.0.0-...-dbde7e4 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultPermissions = []string{"file.read", "file.read-content", "file.create", "file.update", "file.delete"}
)

Functions

This section is empty.

Types

type JsonFileProvider

type JsonFileProvider struct {
	// contains filtered or unexported fields
}

func NewJsonFileProvider

func NewJsonFileProvider(hashAlgo, alternateHashAlgo string, users ...map[string]models.User) *JsonFileProvider

func (*JsonFileProvider) Login

func (p *JsonFileProvider) Login(username, pass string) (*fs.AuthenticationResponse, error)

func (*JsonFileProvider) Register

func (p *JsonFileProvider) Register(user models.User)

type UserProvider

type UserProvider interface {
	Login(user, pass string) (*fs.AuthenticationResponse, error)
	Register(user models.User)
}

Jump to

Keyboard shortcuts

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