staticrbac

package
v0.0.0-...-167e9fd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 14, 2023 License: GPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

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 (impl *StaticRbacAuthorizer) CheckContextOperationAuthorized(ctx context.Context, operation string, target string) error

func (*StaticRbacAuthorizer) GetAssignments

func (impl *StaticRbacAuthorizer) GetAssignments(ctx context.Context) (map[string][]string, error)

func (*StaticRbacAuthorizer) Init

func (impl *StaticRbacAuthorizer) Init(userFiles []string, roleFiles []string, scanIntervalMs int) error

func (*StaticRbacAuthorizer) PopulateUserRoles

func (impl *StaticRbacAuthorizer) PopulateUserRoles(ctx context.Context, user *model.User) error

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL