rolecollectionassignment

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IdentifierName

func IdentifierName(cr *v1alpha1.RoleCollectionAssignment) string

IdentifierName returns the identifier for the entity to be assigned to the rolecollection (username or groupname)

func Setup

func Setup(mgr ctrl.Manager, o controller.Options) error

Setup adds a controller that reconciles GlobalAccount managed resources.

Types

type RoleAssigner

type RoleAssigner interface {
	HasRole(ctx context.Context, origin, name, roleCollection string) (bool, error)
	AssignRole(ctx context.Context, origin, name, rolecollection string) error
	RevokeRole(ctx context.Context, origin, name, rolecollection string) error
}

type RoleAssignerMock

type RoleAssignerMock struct {
	CalledIdentifier *string
	// contains filtered or unexported fields
}

func (*RoleAssignerMock) AssignRole

func (u *RoleAssignerMock) AssignRole(ctx context.Context, origin, identifier, rolecollection string) error

func (*RoleAssignerMock) HasRole

func (u *RoleAssignerMock) HasRole(ctx context.Context, origin, identifier, roleCollection string) (bool, error)

func (*RoleAssignerMock) RevokeRole

func (u *RoleAssignerMock) RevokeRole(ctx context.Context, origin, identifier, rolecollection string) error

Jump to

Keyboard shortcuts

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