userperm

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const QUERY = `  (user_name like "%?" or user_name like "%?," or user_name like ",%?," or user_name like ",%?")`
View Source
const SelectCloudUserPerm = "" /* 197-byte string literal not displayed */

Variables

This section is empty.

Functions

func CheckPerm

func CheckPerm(name string, cluster string, ent string, data util.Lock) bool

2018-08-24 16:08 检查用户拥有权限的资源是存存在

func GetResourceName

func GetResourceName(tp string, user string) util.Lock
2018-08-24 16:00

获取资源名称

func GetUserGroups

func GetUserGroups(username string) []string

Types

type CloudUserPerm

type CloudUserPerm struct {
	//
	ResourceType string
	//
	LastModifyTime string
	//
	LastModifyUser string
	//
	Ent string
	//
	Description string
	//
	ParentUser string
	//
	Name string
	//
	UserName string
	//
	ResourceName string
	//
	SubUser string
	//
	CreateUser string
	//
	CreateTime string
	//
	ClusterName string
	//
	PermId int64
	//
	GroupName string
}

2018-08-23 08:38:08.9273685 +0800 CST

Jump to

Keyboard shortcuts

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