Documentation ¶
Index ¶
- Variables
- func MatchChannel(channels []string, channel string) bool
- func MatchClient(clients []string, client string) bool
- type Blls
- type Group
- func (a *Group) AddUserAndOrg(ctx context.Context, users []string, groups []string)
- func (a *Group) BatchAdd(ctx context.Context, groups []tpl.GroupBody) error
- func (a *Group) BatchAddMember(ctx context.Context, kind, uid string) error
- func (a *Group) BatchAddMembers(ctx context.Context, kind, uid string, users []string) (*tpl.BoolRes, error)
- func (a *Group) CheckExists(ctx context.Context, kind, uid string) (*tpl.BoolRes, error)
- func (a *Group) Delete(ctx context.Context, kind, uid string) (*tpl.BoolRes, error)
- func (a *Group) List(ctx context.Context, args *tpl.GroupsURL) (*tpl.GroupsRes, error)
- func (a *Group) ListLables(ctx context.Context, args *tpl.GroupPaginationURL) (*tpl.MyLabelsRes, error)
- func (a *Group) ListMembers(ctx context.Context, args *tpl.GroupPaginationURL) (*tpl.GroupMembersRes, error)
- func (a *Group) ListSettings(ctx context.Context, args *tpl.MySettingsQueryURL) (*tpl.MySettingsRes, error)
- func (a *Group) RemoveMembers(ctx context.Context, args *tpl.GroupMembersURL) (*tpl.BoolRes, error)
- func (a *Group) Update(ctx context.Context, kind, uid string, body *tpl.GroupUpdateBody) (*tpl.GroupRes, error)
- type Label
- func (a *Label) Assign(ctx context.Context, args *tpl.ProductLabelURL, body *tpl.UsersGroupsBody) (*tpl.LabelReleaseInfoRes, error)
- func (a *Label) CleanUp(ctx context.Context, args *tpl.ProductLabelURL) (*tpl.BoolRes, error)
- func (a *Label) Create(ctx context.Context, product string, args *tpl.LabelBody) (*tpl.LabelInfoRes, error)
- func (a *Label) CreateRule(ctx context.Context, args *tpl.ProductLabelURL, body *tpl.LabelRuleBody) (*tpl.LabelRuleInfoRes, error)
- func (a *Label) Delete(ctx context.Context, product, label string) (*tpl.BoolRes, error)
- func (a *Label) DeleteGroup(ctx context.Context, args *tpl.ProductLabelUIDURL) (*tpl.BoolRes, error)
- func (a *Label) DeleteRule(ctx context.Context, args *tpl.ProductLabelHIDURL) (*tpl.BoolRes, error)
- func (a *Label) DeleteUser(ctx context.Context, args *tpl.ProductLabelUIDURL) (*tpl.BoolRes, error)
- func (a *Label) List(ctx context.Context, args *tpl.ProductPaginationURL) (*tpl.LabelsInfoRes, error)
- func (a *Label) ListGroups(ctx context.Context, args *tpl.ProductLabelURL) (*tpl.LabelGroupsInfoRes, error)
- func (a *Label) ListRules(ctx context.Context, args *tpl.ProductLabelURL) (*tpl.LabelRulesInfoRes, error)
- func (a *Label) ListUsers(ctx context.Context, args *tpl.ProductLabelURL) (*tpl.LabelUsersInfoRes, error)
- func (a *Label) Offline(ctx context.Context, product, label string) (*tpl.BoolRes, error)
- func (a *Label) Recall(ctx context.Context, args *tpl.ProductLabelURL, body *tpl.RecallBody) (*tpl.BoolRes, error)
- func (a *Label) Update(ctx context.Context, product, label string, body *tpl.LabelUpdateBody) (*tpl.LabelInfoRes, error)
- func (a *Label) UpdateRule(ctx context.Context, args *tpl.ProductLabelHIDURL, body *tpl.LabelRuleBody) (*tpl.LabelRuleInfoRes, error)
- type Module
- func (a *Module) Create(ctx context.Context, product string, body *tpl.NameDescBody) (*tpl.ModuleInfoRes, error)
- func (a *Module) List(ctx context.Context, args *tpl.ProductPaginationURL) (*tpl.ModulesInfoRes, error)
- func (a *Module) Offline(ctx context.Context, product string, module string) (*tpl.BoolRes, error)
- func (a *Module) Update(ctx context.Context, product string, module string, body *tpl.ModuleUpdateBody) (*tpl.ModuleInfoRes, error)
- type OperationLog
- type Product
- func (a *Product) Create(ctx context.Context, args *tpl.NameDescBody) (*tpl.ProductRes, error)
- func (a *Product) Delete(ctx context.Context, product string) (*tpl.BoolRes, error)
- func (a *Product) List(ctx context.Context, args *tpl.Pagination) (*tpl.ProductsRes, error)
- func (a *Product) Offline(ctx context.Context, product string) (*tpl.BoolRes, error)
- func (a *Product) Statistics(ctx context.Context, product string) (*tpl.ProductStatisticsRes, error)
- func (a *Product) Update(ctx context.Context, product string, body *tpl.ProductUpdateBody) (*tpl.ProductRes, error)
- type Setting
- func (a *Setting) Assign(ctx context.Context, args *tpl.ProductModuleSettingURL, ...) (*tpl.SettingReleaseInfoRes, error)
- func (a *Setting) CleanUp(ctx context.Context, args *tpl.ProductModuleSettingURL) (*tpl.BoolRes, error)
- func (a *Setting) Create(ctx context.Context, args *tpl.ProductModuleURL, body *tpl.SettingBody) (*tpl.SettingInfoRes, error)
- func (a *Setting) CreateRule(ctx context.Context, args *tpl.ProductModuleSettingURL, ...) (*tpl.SettingRuleInfoRes, error)
- func (a *Setting) DeleteGroup(ctx context.Context, args *tpl.ProductModuleSettingUIDURL) (*tpl.BoolRes, error)
- func (a *Setting) DeleteRule(ctx context.Context, args *tpl.ProductModuleSettingHIDURL) (*tpl.BoolRes, error)
- func (a *Setting) DeleteUser(ctx context.Context, args *tpl.ProductModuleSettingUIDURL) (*tpl.BoolRes, error)
- func (a *Setting) Get(ctx context.Context, args *tpl.ProductModuleSettingURL) (*tpl.SettingInfoRes, error)
- func (a *Setting) List(ctx context.Context, args *tpl.ProductModuleURL) (*tpl.SettingsInfoRes, error)
- func (a *Setting) ListByProduct(ctx context.Context, args *tpl.ProductPaginationURL) (*tpl.SettingsInfoRes, error)
- func (a *Setting) ListGroups(ctx context.Context, args *tpl.ProductModuleSettingURL) (*tpl.SettingGroupsInfoRes, error)
- func (a *Setting) ListRules(ctx context.Context, args *tpl.ProductModuleSettingURL) (*tpl.SettingRulesInfoRes, error)
- func (a *Setting) ListUsers(ctx context.Context, args *tpl.ProductModuleSettingURL) (*tpl.SettingUsersInfoRes, error)
- func (a *Setting) Offline(ctx context.Context, args *tpl.ProductModuleSettingURL) (*tpl.BoolRes, error)
- func (a *Setting) Push(ctx context.Context, event, content string, users []string, ...)
- func (a *Setting) PushAllAsync(ctx context.Context, event string, mySetting *dto.MySetting)
- func (a *Setting) PushAsync(ctx context.Context, event, content string, users []string, ...)
- func (a *Setting) Recall(ctx context.Context, args *tpl.ProductModuleSettingURL, body *tpl.RecallBody) (*tpl.BoolRes, error)
- func (a *Setting) RollbackGroupSetting(ctx context.Context, args *tpl.ProductModuleSettingUIDURL) (*tpl.BoolRes, error)
- func (a *Setting) RollbackUserSetting(ctx context.Context, args *tpl.ProductModuleSettingUIDURL) (*tpl.BoolRes, error)
- func (a *Setting) Update(ctx context.Context, args *tpl.ProductModuleSettingURL, ...) (*tpl.SettingInfoRes, error)
- func (a *Setting) UpdateRule(ctx context.Context, args *tpl.ProductModuleSettingHIDURL, ...) (*tpl.SettingRuleInfoRes, error)
- type UrbsAcAcl
- func (a *UrbsAcAcl) Add(ctx context.Context, subject string, object string, permission string) error
- func (a *UrbsAcAcl) AddByReq(ctx context.Context, args *tpl.UrbsAcAclURL, req *tpl.UrbsAcAclAddBody) error
- func (a *UrbsAcAcl) Check(ctx context.Context, object string, permission string) error
- func (a *UrbsAcAcl) CheckAdmin(ctx context.Context, object string) error
- func (a *UrbsAcAcl) CheckSuperAdmin(ctx context.Context) error
- func (a *UrbsAcAcl) CheckViewer(ctx context.Context) error
- func (a *UrbsAcAcl) Delete(ctx context.Context, args *tpl.UrbsAcAclURL, req *tpl.UrbsAcAclAddBody) error
- func (a *UrbsAcAcl) FindOne(ctx context.Context, subject, object, permission string) (*schema.UrbsAcAcl, error)
- func (a *UrbsAcAcl) FindUsersByObject(ctx context.Context, object string) ([]*tpl.User, error)
- func (a *UrbsAcAcl) FindUsersByObjects(ctx context.Context, objects []string) (map[string][]*tpl.User, error)
- func (a *UrbsAcAcl) Update(ctx context.Context, body *tpl.UidsBody, object string) error
- type UrbsAcUser
- func (a *UrbsAcUser) Add(ctx context.Context, body *tpl.UrbsAcUsersBody) error
- func (a *UrbsAcUser) DeleteByUID(ctx context.Context, uid string) error
- func (a *UrbsAcUser) List(ctx context.Context, args *tpl.ConsolePagination) (*tpl.UrbsAcUserListRes, error)
- func (a *UrbsAcUser) Search(ctx context.Context, key string) (*tpl.UrbsAcUserListRes, error)
- func (a *UrbsAcUser) UpdateByUID(ctx context.Context, name, uid string) error
- type User
- func (a *User) ApplyRules(ctx context.Context, product string, body *tpl.ApplyRulesBody) (*tpl.BoolRes, error)
- func (a *User) BatchAdd(ctx context.Context, users []string) (*tpl.BoolRes, error)
- func (a *User) CheckExists(ctx context.Context, uid string) (*tpl.BoolRes, error)
- func (a *User) List(ctx context.Context, args *tpl.Pagination) (*tpl.UsersRes, error)
- func (a *User) ListLables(ctx context.Context, args *tpl.UIDPaginationURL) (*tpl.MyLabelsRes, error)
- func (a *User) ListSettings(ctx context.Context, args *tpl.UIDPaginationURL) (*tpl.MySettingsRes, error)
- func (a *User) ListSettingsUnionAll(ctx *gear.Context, args *tpl.MySettingsQueryURL) (*tpl.MySettingsRes, error)
- func (a *User) RefreshCachedLables(ctx context.Context, uid string) (*tpl.UserRes, error)
Constants ¶
This section is empty.
Variables ¶
var (
// TccSettingRecall ...
TccSettingRecall = "setting.recall"
)
Functions ¶
func MatchChannel ¶ added in v0.9.0
MatchChannel ...
func MatchClient ¶ added in v0.9.0
MatchClient ...
Types ¶
type Blls ¶
type Blls struct { User *User Group *Group Product *Product Label *Label Module *Module Setting *Setting OperationLog *OperationLog UrbsAcAcl *UrbsAcAcl UrbsAcUser *UrbsAcUser // contains filtered or unexported fields }
Blls ...
type Group ¶ added in v0.2.0
type Group struct {
// contains filtered or unexported fields
}
Group ...
func (*Group) AddUserAndOrg ¶ added in v0.6.0
AddUserAndOrg ...
func (*Group) BatchAddMember ¶ added in v0.2.0
BatchAddMember ...
func (*Group) BatchAddMembers ¶ added in v0.2.0
func (a *Group) BatchAddMembers(ctx context.Context, kind, uid string, users []string) (*tpl.BoolRes, error)
BatchAddMembers 批量给群组添加成员,如果用户未加入系统,则会自动加入
func (*Group) CheckExists ¶ added in v0.2.0
CheckExists ...
func (*Group) ListLables ¶ added in v0.2.0
func (a *Group) ListLables(ctx context.Context, args *tpl.GroupPaginationURL) (*tpl.MyLabelsRes, error)
ListLables ...
func (*Group) ListMembers ¶ added in v0.2.0
func (a *Group) ListMembers(ctx context.Context, args *tpl.GroupPaginationURL) (*tpl.GroupMembersRes, error)
ListMembers ...
func (*Group) ListSettings ¶ added in v0.2.0
func (a *Group) ListSettings(ctx context.Context, args *tpl.MySettingsQueryURL) (*tpl.MySettingsRes, error)
ListSettings ...
func (*Group) RemoveMembers ¶ added in v0.2.0
RemoveMembers ...
type Label ¶ added in v0.2.0
type Label struct {
// contains filtered or unexported fields
}
Label ...
func (*Label) Assign ¶ added in v0.2.0
func (a *Label) Assign(ctx context.Context, args *tpl.ProductLabelURL, body *tpl.UsersGroupsBody) (*tpl.LabelReleaseInfoRes, error)
Assign 把标签批量分配给用户或群组
func (*Label) Create ¶ added in v0.2.0
func (a *Label) Create(ctx context.Context, product string, args *tpl.LabelBody) (*tpl.LabelInfoRes, error)
Create ...
func (*Label) CreateRule ¶ added in v0.3.0
func (a *Label) CreateRule(ctx context.Context, args *tpl.ProductLabelURL, body *tpl.LabelRuleBody) (*tpl.LabelRuleInfoRes, error)
CreateRule ...
func (*Label) DeleteGroup ¶ added in v0.4.0
func (a *Label) DeleteGroup(ctx context.Context, args *tpl.ProductLabelUIDURL) (*tpl.BoolRes, error)
DeleteGroup ...
func (*Label) DeleteRule ¶ added in v0.3.0
DeleteRule ...
func (*Label) DeleteUser ¶ added in v0.4.0
DeleteUser ...
func (*Label) List ¶ added in v0.2.0
func (a *Label) List(ctx context.Context, args *tpl.ProductPaginationURL) (*tpl.LabelsInfoRes, error)
List 返回产品下的标签列表
func (*Label) ListGroups ¶ added in v0.3.0
func (a *Label) ListGroups(ctx context.Context, args *tpl.ProductLabelURL) (*tpl.LabelGroupsInfoRes, error)
ListGroups ...
func (*Label) ListRules ¶ added in v0.3.0
func (a *Label) ListRules(ctx context.Context, args *tpl.ProductLabelURL) (*tpl.LabelRulesInfoRes, error)
ListRules ...
func (*Label) ListUsers ¶ added in v0.3.0
func (a *Label) ListUsers(ctx context.Context, args *tpl.ProductLabelURL) (*tpl.LabelUsersInfoRes, error)
ListUsers ...
func (*Label) Recall ¶ added in v0.3.0
func (a *Label) Recall(ctx context.Context, args *tpl.ProductLabelURL, body *tpl.RecallBody) (*tpl.BoolRes, error)
Recall 批量撤销对用户或群组设置的产品环境标签
func (*Label) Update ¶ added in v0.2.0
func (a *Label) Update(ctx context.Context, product, label string, body *tpl.LabelUpdateBody) (*tpl.LabelInfoRes, error)
Update ...
func (*Label) UpdateRule ¶ added in v0.3.0
func (a *Label) UpdateRule(ctx context.Context, args *tpl.ProductLabelHIDURL, body *tpl.LabelRuleBody) (*tpl.LabelRuleInfoRes, error)
UpdateRule ...
type Module ¶ added in v0.2.0
type Module struct {
// contains filtered or unexported fields
}
Module ...
func (*Module) Create ¶ added in v0.2.0
func (a *Module) Create(ctx context.Context, product string, body *tpl.NameDescBody) (*tpl.ModuleInfoRes, error)
Create 指定产品创建功能模块
func (*Module) List ¶ added in v0.2.0
func (a *Module) List(ctx context.Context, args *tpl.ProductPaginationURL) (*tpl.ModulesInfoRes, error)
List 读取指定产品的功能模块
type OperationLog ¶ added in v0.3.0
type OperationLog struct {
// contains filtered or unexported fields
}
OperationLog table `operation_log`
func (*OperationLog) Add ¶ added in v0.3.0
func (a *OperationLog) Add(ctx context.Context, object string, action string, body *dto.OperationLogContent) error
Add ...
func (*OperationLog) AddItem ¶ added in v0.6.0
func (a *OperationLog) AddItem(ctx context.Context, obj *operationLogAdd) error
AddItem ...
func (*OperationLog) List ¶ added in v0.3.0
func (a *OperationLog) List(ctx context.Context, object string, req *tpl.ConsolePagination) (*tpl.OperationLogListRes, error)
List 返回操作日志列表
type Product ¶ added in v0.2.0
type Product struct {
// contains filtered or unexported fields
}
Product ...
func (*Product) Create ¶ added in v0.2.0
func (a *Product) Create(ctx context.Context, args *tpl.NameDescBody) (*tpl.ProductRes, error)
Create 创建产品
func (*Product) List ¶ added in v0.2.0
func (a *Product) List(ctx context.Context, args *tpl.Pagination) (*tpl.ProductsRes, error)
List 返回产品列表
func (*Product) Statistics ¶ added in v0.3.0
func (a *Product) Statistics(ctx context.Context, product string) (*tpl.ProductStatisticsRes, error)
Statistics 返回产品的统计数据
type Setting ¶ added in v0.2.0
type Setting struct {
// contains filtered or unexported fields
}
Setting ...
func (*Setting) Assign ¶ added in v0.2.0
func (a *Setting) Assign(ctx context.Context, args *tpl.ProductModuleSettingURL, body *tpl.UsersGroupsBody) (*tpl.SettingReleaseInfoRes, error)
Assign 批量为用户或群组设置产品功能模块配置项
func (*Setting) CleanUp ¶ added in v0.6.0
func (a *Setting) CleanUp(ctx context.Context, args *tpl.ProductModuleSettingURL) (*tpl.BoolRes, error)
CleanUp ...
func (*Setting) Create ¶ added in v0.2.0
func (a *Setting) Create(ctx context.Context, args *tpl.ProductModuleURL, body *tpl.SettingBody) (*tpl.SettingInfoRes, error)
Create 创建指定产品功能模块配置项
func (*Setting) CreateRule ¶ added in v0.3.0
func (a *Setting) CreateRule(ctx context.Context, args *tpl.ProductModuleSettingURL, body *tpl.SettingRuleBody) (*tpl.SettingRuleInfoRes, error)
CreateRule ...
func (*Setting) DeleteGroup ¶ added in v0.4.0
func (a *Setting) DeleteGroup(ctx context.Context, args *tpl.ProductModuleSettingUIDURL) (*tpl.BoolRes, error)
DeleteGroup ...
func (*Setting) DeleteRule ¶ added in v0.3.0
func (a *Setting) DeleteRule(ctx context.Context, args *tpl.ProductModuleSettingHIDURL) (*tpl.BoolRes, error)
DeleteRule ...
func (*Setting) DeleteUser ¶ added in v0.4.0
func (a *Setting) DeleteUser(ctx context.Context, args *tpl.ProductModuleSettingUIDURL) (*tpl.BoolRes, error)
DeleteUser ...
func (*Setting) Get ¶ added in v0.2.0
func (a *Setting) Get(ctx context.Context, args *tpl.ProductModuleSettingURL) (*tpl.SettingInfoRes, error)
Get ...
func (*Setting) List ¶ added in v0.2.0
func (a *Setting) List(ctx context.Context, args *tpl.ProductModuleURL) (*tpl.SettingsInfoRes, error)
List ...
func (*Setting) ListByProduct ¶ added in v0.3.0
func (a *Setting) ListByProduct(ctx context.Context, args *tpl.ProductPaginationURL) (*tpl.SettingsInfoRes, error)
ListByProduct ...
func (*Setting) ListGroups ¶ added in v0.3.0
func (a *Setting) ListGroups(ctx context.Context, args *tpl.ProductModuleSettingURL) (*tpl.SettingGroupsInfoRes, error)
ListGroups ...
func (*Setting) ListRules ¶ added in v0.3.0
func (a *Setting) ListRules(ctx context.Context, args *tpl.ProductModuleSettingURL) (*tpl.SettingRulesInfoRes, error)
ListRules ...
func (*Setting) ListUsers ¶ added in v0.3.0
func (a *Setting) ListUsers(ctx context.Context, args *tpl.ProductModuleSettingURL) (*tpl.SettingUsersInfoRes, error)
ListUsers ...
func (*Setting) Offline ¶ added in v0.2.0
func (a *Setting) Offline(ctx context.Context, args *tpl.ProductModuleSettingURL) (*tpl.BoolRes, error)
Offline 下线指定产品功能模块配置项
func (*Setting) Push ¶ added in v0.5.0
func (a *Setting) Push(ctx context.Context, event, content string, users []string, groups []*urbssetting.GroupKindUID)
Push ...
func (*Setting) PushAllAsync ¶ added in v0.5.0
PushAllAsync ...
func (*Setting) PushAsync ¶ added in v0.5.0
func (a *Setting) PushAsync(ctx context.Context, event, content string, users []string, groups []*urbssetting.GroupKindUID)
PushAsync ...
func (*Setting) Recall ¶ added in v0.3.0
func (a *Setting) Recall(ctx context.Context, args *tpl.ProductModuleSettingURL, body *tpl.RecallBody) (*tpl.BoolRes, error)
Recall ...
func (*Setting) RollbackGroupSetting ¶ added in v0.4.0
func (a *Setting) RollbackGroupSetting(ctx context.Context, args *tpl.ProductModuleSettingUIDURL) (*tpl.BoolRes, error)
RollbackGroupSetting ...
func (*Setting) RollbackUserSetting ¶ added in v0.4.0
func (a *Setting) RollbackUserSetting(ctx context.Context, args *tpl.ProductModuleSettingUIDURL) (*tpl.BoolRes, error)
RollbackUserSetting ...
func (*Setting) Update ¶ added in v0.2.0
func (a *Setting) Update(ctx context.Context, args *tpl.ProductModuleSettingURL, body *tpl.SettingUpdateBody) (*tpl.SettingInfoRes, error)
Update 更新指定产品功能模块配置项
func (*Setting) UpdateRule ¶ added in v0.3.0
func (a *Setting) UpdateRule(ctx context.Context, args *tpl.ProductModuleSettingHIDURL, body *tpl.SettingRuleBody) (*tpl.SettingRuleInfoRes, error)
UpdateRule ...
type UrbsAcAcl ¶ added in v0.3.0
type UrbsAcAcl struct {
// contains filtered or unexported fields
}
UrbsAcAcl ...
func (*UrbsAcAcl) Add ¶ added in v0.3.0
func (a *UrbsAcAcl) Add(ctx context.Context, subject string, object string, permission string) error
Add ...
func (*UrbsAcAcl) AddByReq ¶ added in v0.3.0
func (a *UrbsAcAcl) AddByReq(ctx context.Context, args *tpl.UrbsAcAclURL, req *tpl.UrbsAcAclAddBody) error
AddByReq ...
func (*UrbsAcAcl) CheckAdmin ¶ added in v0.3.0
CheckAdmin ...
func (*UrbsAcAcl) CheckSuperAdmin ¶ added in v0.3.0
CheckSuperAdmin ...
func (*UrbsAcAcl) CheckViewer ¶ added in v0.3.0
CheckViewer ...
func (*UrbsAcAcl) Delete ¶ added in v0.4.0
func (a *UrbsAcAcl) Delete(ctx context.Context, args *tpl.UrbsAcAclURL, req *tpl.UrbsAcAclAddBody) error
Delete ...
func (*UrbsAcAcl) FindOne ¶ added in v0.3.0
func (a *UrbsAcAcl) FindOne(ctx context.Context, subject, object, permission string) (*schema.UrbsAcAcl, error)
FindOne ...
func (*UrbsAcAcl) FindUsersByObject ¶ added in v0.3.0
FindUsersByObject ...
type UrbsAcUser ¶ added in v0.3.0
type UrbsAcUser struct {
// contains filtered or unexported fields
}
UrbsAcUser ...
func (*UrbsAcUser) Add ¶ added in v0.3.0
func (a *UrbsAcUser) Add(ctx context.Context, body *tpl.UrbsAcUsersBody) error
Add ...
func (*UrbsAcUser) DeleteByUID ¶ added in v0.4.0
func (a *UrbsAcUser) DeleteByUID(ctx context.Context, uid string) error
DeleteByUID ...
func (*UrbsAcUser) List ¶ added in v0.3.0
func (a *UrbsAcUser) List(ctx context.Context, args *tpl.ConsolePagination) (*tpl.UrbsAcUserListRes, error)
List 返回用户列表
func (*UrbsAcUser) Search ¶ added in v0.3.0
func (a *UrbsAcUser) Search(ctx context.Context, key string) (*tpl.UrbsAcUserListRes, error)
Search ...
func (*UrbsAcUser) UpdateByUID ¶ added in v0.4.0
func (a *UrbsAcUser) UpdateByUID(ctx context.Context, name, uid string) error
UpdateByUID ...
type User ¶ added in v0.2.0
type User struct {
// contains filtered or unexported fields
}
User ...
func (*User) ApplyRules ¶ added in v0.10.0
func (a *User) ApplyRules(ctx context.Context, product string, body *tpl.ApplyRulesBody) (*tpl.BoolRes, error)
ApplyRules ...
func (*User) CheckExists ¶ added in v0.2.0
CheckExists ...
func (*User) ListLables ¶ added in v0.2.0
func (a *User) ListLables(ctx context.Context, args *tpl.UIDPaginationURL) (*tpl.MyLabelsRes, error)
ListLables ...
func (*User) ListSettings ¶ added in v0.2.0
func (a *User) ListSettings(ctx context.Context, args *tpl.UIDPaginationURL) (*tpl.MySettingsRes, error)
ListSettings ...
func (*User) ListSettingsUnionAll ¶ added in v0.2.0
func (a *User) ListSettingsUnionAll(ctx *gear.Context, args *tpl.MySettingsQueryURL) (*tpl.MySettingsRes, error)
ListSettingsUnionAll ...