permission

package
v2.19.1 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ListAllSpaces is the hardcoded name for the list all spaces permission
	ListAllSpaces string = "Drives.List"
	// CreateSpace is the hardcoded name for the create space permission
	CreateSpace string = "Drives.Create"
	// WritePublicLink is the hardcoded name for the PublicLink.Write permission
	WritePublicLink string = "PublicLink.Write"
	// WriteShare is the hardcoded name for the Shares.Write permission
	WriteShare string = "Shares.Write"
	// ListFavorites is the hardcoded name for the Favorites.List permission
	ListFavorites string = "Favorites.List"
	// WriteFavorites is the hardcoded name for the Favorites.Write permission
	WriteFavorites string = "Favorites.Write"
	// DeleteReadOnlyPassword is the hardcoded name for the ReadOnlyPublicLinkPassword.Delete permission
	DeleteReadOnlyPassword string = "ReadOnlyPublicLinkPassword.Delete"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager interface {
	CheckPermission(permission string, subject string, ref *provider.Reference) bool
}

Manager defines the interface for the permission service driver

Directories

Path Synopsis
manager

Jump to

Keyboard shortcuts

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