Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PermissionInterface ¶
type PermissionInterface interface { SetUserGroupPermission(supplierAccount, gourpID string, permission *metadata.PrivilegeUserGroup) error GetUserGroupPermission(supplierAccount, groupID string) (*metadata.GroupPrivilege, error) GetUserPermission(supplierAccount, userName string) (*metadata.Gprivilege, error) }
PermissionInterface the permission methods
func NewPermission ¶
func NewPermission(params types.ContextParams, client apimachinery.ClientSetInterface) PermissionInterface
NewPermission create a new permission instance
type RolePermission ¶
type RolePermission interface { CreatePermission(supplierAccount, objID, propertyID string, data []string) error GetPermission(supplierAccount, objID, propertyID string) (interface{}, error) }
RolePermission role permission
func NewRole ¶
func NewRole(params types.ContextParams, client apimachinery.ClientSetInterface) RolePermission
NewRole create a new role instance
type UserGroupInterface ¶
type UserGroupInterface interface { CreateUserGroup(supplierAccount string, userGroup *metadata.UserGroup) error DeleteUserGroup(supplierAccount, groupID string) error UpdateUserGroup(supplierAccount, groupID string, data mapstr.MapStr) error SearchUserGroup(supplierAccount string, cond condition.Condition) ([]metadata.UserGroup, error) }
UserGroupInterface the permission user groups methods
func NewUserGroup ¶
func NewUserGroup(params types.ContextParams, client apimachinery.ClientSetInterface) UserGroupInterface
NewUserGroup create a user group instance
Click to show internal directories.
Click to hide internal directories.