Documentation ¶
Index ¶
- Constants
- type StaticRbac
- type StaticRbacAuthorizer
- func (impl *StaticRbacAuthorizer) AddRoleToUser(user *model.User, role string)
- func (impl *StaticRbacAuthorizer) CheckContextOperationAuthorized(ctx context.Context, operation string, target string) error
- func (impl *StaticRbacAuthorizer) GetAssignments(ctx context.Context) (map[string][]string, error)
- func (impl *StaticRbacAuthorizer) Init(userFiles []string, roleFiles []string, scanIntervalMs int) error
- func (impl *StaticRbacAuthorizer) PopulateUserRoles(ctx context.Context, user *model.User) error
- func (impl *StaticRbacAuthorizer) RemoveRoleFromUser(user *model.User, role string)
- func (impl *StaticRbacAuthorizer) StartScanningFiles()
- func (impl *StaticRbacAuthorizer) StopScanningFiles()
- func (impl *StaticRbacAuthorizer) UpdateRoleMap(newRoleMap map[string][]string)
- func (impl *StaticRbacAuthorizer) UpdateUserMap(newUserMap map[string][]string)
Constants ¶
View Source
const DEFAULT_SCAN_INTERVAL_MS = 60000
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StaticRbac ¶
type StaticRbac struct {
// contains filtered or unexported fields
}
func NewStaticRbac ¶
func NewStaticRbac(srv *server.Server) *StaticRbac
func (*StaticRbac) Init ¶
func (auth *StaticRbac) Init(cfg module.ModuleConfig) error
func (*StaticRbac) IsRunning ¶
func (auth *StaticRbac) IsRunning() bool
func (*StaticRbac) PrerequisiteModules ¶
func (auth *StaticRbac) PrerequisiteModules() []string
func (*StaticRbac) Start ¶
func (auth *StaticRbac) Start() error
func (*StaticRbac) Stop ¶
func (auth *StaticRbac) Stop() error
type StaticRbacAuthorizer ¶
type StaticRbacAuthorizer struct {
// contains filtered or unexported fields
}
func NewStaticRbacAuthorizer ¶
func NewStaticRbacAuthorizer(srv *server.Server) *StaticRbacAuthorizer
func (*StaticRbacAuthorizer) AddRoleToUser ¶
func (impl *StaticRbacAuthorizer) AddRoleToUser(user *model.User, role string)
func (*StaticRbacAuthorizer) CheckContextOperationAuthorized ¶
func (*StaticRbacAuthorizer) GetAssignments ¶
func (*StaticRbacAuthorizer) Init ¶
func (impl *StaticRbacAuthorizer) Init(userFiles []string, roleFiles []string, scanIntervalMs int) error
func (*StaticRbacAuthorizer) PopulateUserRoles ¶
func (*StaticRbacAuthorizer) RemoveRoleFromUser ¶
func (impl *StaticRbacAuthorizer) RemoveRoleFromUser(user *model.User, role string)
func (*StaticRbacAuthorizer) StartScanningFiles ¶
func (impl *StaticRbacAuthorizer) StartScanningFiles()
func (*StaticRbacAuthorizer) StopScanningFiles ¶
func (impl *StaticRbacAuthorizer) StopScanningFiles()
func (*StaticRbacAuthorizer) UpdateRoleMap ¶
func (impl *StaticRbacAuthorizer) UpdateRoleMap(newRoleMap map[string][]string)
func (*StaticRbacAuthorizer) UpdateUserMap ¶
func (impl *StaticRbacAuthorizer) UpdateUserMap(newUserMap map[string][]string)
Click to show internal directories.
Click to hide internal directories.