makerbac

package
v0.0.0-...-ea3a733 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type For

type For interface {
	ImpersonateConfig(f *rest.ImpersonationConfig)
	Subject() rbacv1.Subject
}

func ForGroup

func ForGroup(name string) For

func ForServiceAccount

func ForServiceAccount(namespace, name string) For

func ForUser

func ForUser(name string) For

func ForUserOrServiceAccount

func ForUserOrServiceAccount(name string) (For, error)

type MakeRBAC

type MakeRBAC struct {
	Name        string
	For         For
	MissingOnly bool

	Visitor resource.Visitor
	Writer  io.Writer

	Config *rest.Config
}

func (*MakeRBAC) Run

func (m *MakeRBAC) Run(ctx context.Context) error

Jump to

Keyboard shortcuts

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