perms

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: May 8, 2020 License: MIT Imports: 3 Imported by: 8

Documentation

Index

Constants

View Source
const (
	NONE         = 0o0
	OWNER_READ   = 0o0400
	OWNER_WRITE  = 0o0200
	OWNER_EXEC   = 0o0100
	GROUP_READ   = 0o040
	GROUP_WRITE  = 0o020
	GROUP_EXEC   = 0o010
	OTHERS_READ  = 0o04
	OTHERS_WRITE = 0o02
	OTHERS_EXEC  = 0o01
	ALL          = 0o0777
)

Variables

This section is empty.

Functions

func UserPrefixCacheKey added in v1.0.4

func UserPrefixCacheKey(ctx context.Context, env environment.Env, key string) (string, error)

Types

type UserGroupPerm

type UserGroupPerm struct {
	UserID  string
	GroupID string
	Perms   int
}

func AnonymousUserPermissions

func AnonymousUserPermissions() *UserGroupPerm

func GroupAuthPermissions

func GroupAuthPermissions(g *tables.Group) *UserGroupPerm

Jump to

Keyboard shortcuts

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