user

package
v0.0.0-...-fa598d4 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckPermission

func CheckPermission(userId string, p Permission) bool

CheckPermission : check permission in all roles of account

func DeleteUser

func DeleteUser(uid string)

Delete user's group policies

func GetRoles

func GetRoles(uid string)

func OverwriteRoles

func OverwriteRoles(userId string, newRoles [][]string)

OverwriteRoles : assign roles to specific user

Types

type Permission

type Permission struct {
	Zone   string
	Action string
	Domain string
}

Permission : where ,do what ,in which domain

Jump to

Keyboard shortcuts

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