Documentation ¶
Index ¶
- type Option
- type Permission
- func (p *Permission) CheckAppAction(identityInfo apistructs.IdentityInfo, appID uint64, action string) error
- func (p *Permission) CheckAppConfig(identityInfo apistructs.IdentityInfo, appID uint64, action string) error
- func (p *Permission) CheckBranchAction(identityInfo apistructs.IdentityInfo, appIDStr, branch, action string) error
- func (p *Permission) CheckRuntimeBranch(identityInfo apistructs.IdentityInfo, appID uint64, branch string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*Permission)
func WithBranchRule ¶
func WithBranchRule(branchRule *branchrule.BranchRule) Option
func WithBundle ¶
type Permission ¶
type Permission struct {
// contains filtered or unexported fields
}
func (*Permission) CheckAppAction ¶
func (p *Permission) CheckAppAction(identityInfo apistructs.IdentityInfo, appID uint64, action string) error
CheckAppAction 校验用户在应用下是否有 ${action} 权限
func (*Permission) CheckAppConfig ¶
func (p *Permission) CheckAppConfig(identityInfo apistructs.IdentityInfo, appID uint64, action string) error
CheckAppConfig 校验用户在应用配置管理下是否有 ${action} 权限
func (*Permission) CheckBranchAction ¶
func (p *Permission) CheckBranchAction(identityInfo apistructs.IdentityInfo, appIDStr, branch, action string) error
CheckBranch 校验用户在 应用对应分支 下是否有 ${action} 权限
func (*Permission) CheckRuntimeBranch ¶
func (p *Permission) CheckRuntimeBranch(identityInfo apistructs.IdentityInfo, appID uint64, branch string, action string) error
Click to show internal directories.
Click to hide internal directories.