permissions

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2023 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Permission

type Permission string

Permission is a string containing write or read permissions on a Resource.

func Read

func Read(area Resource) Permission

Read permissions on given Resource.

func Write

func Write(area Resource) Permission

Write permissions on given Resource.

type Resource

type Resource string

Resource represents a resource that can be accessed.

const (
	Account       Resource = "account"
	Blocks        Resource = "blocks"
	Channels      Resource = "channels"
	Drive         Resource = "drive"
	Favorites     Resource = "favorites"
	Following     Resource = "following"
	Gallery       Resource = "gallery"
	GalleryLikes  Resource = "gallery-likes"
	Messaging     Resource = "messaging"
	Mutes         Resource = "mutes"
	Notes         Resource = "notes"
	Notifications Resource = "notifications"
	PageLikes     Resource = "page-likes"
	Pages         Resource = "pages"
	Reactions     Resource = "reactions"
	UserGroups    Resource = "user-groups"
	Votes         Resource = "votes"
)

Resource constants to make it easier to define permissions.

Jump to

Keyboard shortcuts

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