role

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Role

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

Role -

func NewRole

func NewRole(
	role *rbacv1.Role,
	timeout time.Duration,
) *Role

NewRole returns an initialized Role

func (*Role) CreateOrPatch

func (r *Role) CreateOrPatch(
	ctx context.Context,
	h *helper.Helper,
) (ctrl.Result, error)

CreateOrPatch - creates or patches a role, reconciles after Xs if object won't exist.

func (*Role) Delete

func (r *Role) Delete(
	ctx context.Context,
	h *helper.Helper,
) error

Delete - delete a role

Jump to

Keyboard shortcuts

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