perms

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2020 License: MIT Imports: 2 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 AttachUserPrefixToContext added in v1.0.5

func AttachUserPrefixToContext(ctx context.Context, env environment.Env) context.Context

func UserPrefixCacheKey added in v1.0.4

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

func UserPrefixFromContext added in v1.0.5

func UserPrefixFromContext(ctx context.Context) string

Types

type UserGroupPerm

type UserGroupPerm struct {
	UserID  string
	GroupID string
	Perms   int
}

func AnonymousUserPermissions

func AnonymousUserPermissions() *UserGroupPerm

func GroupAuthPermissions

func GroupAuthPermissions(groupID string) *UserGroupPerm

Jump to

Keyboard shortcuts

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