permdata

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: 7 Imported by: 0

Documentation

Index

Constants

View Source
const DeleteCloudUserPermDetail = "delete from cloud_user_perm_detail"
View Source
const DeleteExpireContainerPerm = `` /* 212-byte string literal not displayed */
View Source
const InsertCloudUserPermDetail = "insert into cloud_user_perm_detail"
View Source
const SelectCloudUserPermDetail = "select name,cluster_name,ent,detail_id,username,resource_type,group_name from cloud_user_perm_detail"
View Source
const SelectContainerData = `select container_name,app_name,service_name,create_user,cluster_name,resource_name,entname from cloud_container`
View Source
const SelectUserResourcePerm = `select user_name, group_name, name,cluster_name,ent from cloud_user_perm where resource_type=?`
View Source
const UpdateCloudUserPermDetail = "update cloud_user_perm_detail"

Variables

This section is empty.

Functions

func MakeContainerData

func MakeContainerData()

* 生成用户容器权限数据

Types

type CloudContainer

type CloudContainer struct {
	//容器名称
	ContainerName string
	//应用名称
	AppName string
	//服务名称
	ServiceName string
	//集群名称
	ClusterName string
	// 资源名称
	ResourceName string
	// 创建用户
	CreateUser string
	// 环境名称
	Entname string
}

2018-01-15 15:20:35.5687711 +0800 CST

type CloudUserPermDetail

type CloudUserPermDetail struct {
	//
	DetailId int64
	//
	Username string
	//
	ResourceType string
	//
	GroupName string
	//
	Name string
	//
	ClusterName string
	//
	Ent string
}

2018-11-28 10:00:06.9680777 +0800 CST

Jump to

Keyboard shortcuts

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