permission

package
v1.29.0-mobile.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2018 License: BSD-2-Clause Imports: 4 Imported by: 2

Documentation

Index

Constants

View Source
const Custodian = "custodian"
View Source
const Owner = "root"
View Source
const Read = "view"
View Source
const Write = "upload"

Variables

This section is empty.

Functions

func GroupIDFromUserID

func GroupIDFromUserID(userID string, secret string) (string, error)

func UserIDFromGroupID

func UserIDFromGroupID(groupID string, secret string) (string, error)

Types

type Client added in v1.29.0

type Client interface {
	GetUserPermissions(ctx context.Context, requestUserID string, targetUserID string) (Permissions, error)
}

type Permission added in v1.29.0

type Permission map[string]interface{}

type Permissions added in v1.29.0

type Permissions map[string]Permission

func FixOwnerPermissions added in v1.29.0

func FixOwnerPermissions(permissions Permissions) Permissions

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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