controller

package
v1.16.2 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	client.Client
	MessageLayer messagelayer.MessageLayer
}

func (*Controller) GetRoleReferenceRules

func (c *Controller) GetRoleReferenceRules(ctx context.Context, roleRef rbacv1.RoleRef, bindingNamespace string) ([]rbacv1.PolicyRule, error)

GetRoleReferenceRules attempts to resolve the RoleBinding or ClusterRoleBinding.

func (*Controller) Reconcile

func (*Controller) SetupWithManager

func (c *Controller) SetupWithManager(ctx context.Context, mgr controllerruntime.Manager) error

SetupWithManager creates a controller and register to controller manager.

func (*Controller) VisitRulesFor

func (c *Controller) VisitRulesFor(ctx context.Context, user user.Info, namespace string, acc *policyv1alpha1.ServiceAccountAccess)

type PolicyMatcher

type PolicyMatcher struct {
	// contains filtered or unexported fields
}

type PolicyRequestVisitor

type PolicyRequestVisitor struct {
	AuthPolicy []controllerruntime.Request
}

Jump to

Keyboard shortcuts

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