Documentation ¶
Overview ¶
Package rbac is dao layer API to help service center manage account, policy and role info
Index ¶
- Variables
- func AccountExist(ctx context.Context, name string) (bool, error)
- func CreateAccount(ctx context.Context, a *rbacframe.Account) error
- func DeleteAccount(ctx context.Context, name string) (bool, error)
- func EditAccount(ctx context.Context, a *rbacframe.Account) error
- func GetAccount(ctx context.Context, name string) (*rbacframe.Account, error)
- func GetRole(ctx context.Context, role string) *rbacframe.Role
- func ListAccount(ctx context.Context) ([]*rbacframe.Account, int64, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCanNotEdit = errors.New("account can not be edited")
View Source
var ErrDuplicated = errors.New("account is duplicated")
Functions ¶
func CreateAccount ¶
CreateAccount save 2 kv 1. account info
func EditAccount ¶
CreateAccount save 2 kv 1. account info
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.