test

package
v0.0.0-...-23dbee4 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mapper

type Mapper struct {
	// AppNameForServiceAccountFunc is the function called when
	// AppNameForServiceAccount is used.
	AppNameForServiceAccountFunc func(types.UID) (string, error)
}

Mapper is a dummy rbac mapper used in testing

func (*Mapper) AppNameForServiceAccount

func (m *Mapper) AppNameForServiceAccount(t types.UID) (string, error)

AppNameForServiceAccount implements the Mapper interface and calls the AppNameForServiceAccountFunc field when defined. Otherwise returns a not found error

Jump to

Keyboard shortcuts

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