creator

package
v3.7.1 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2025 License: Apache-2.0 Imports: 7 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Label

func Label(ctx context.Context, obj metav1.Object, userLabelKey string, userEmailLabelKey string, preferredUsernameLabelKey string, action ActionType)

func LabelActor added in v3.7.0

func LabelActor(ctx context.Context, obj metav1.Object, action ActionType)

func LabelCreator added in v3.7.0

func LabelCreator(ctx context.Context, obj metav1.Object)

func UserActionLabel added in v3.7.0

func UserActionLabel(ctx context.Context, action ActionType) map[string]string

func UserInfoMap added in v3.5.0

func UserInfoMap(ctx context.Context) map[string]string

Types

type ActionType added in v3.7.0

type ActionType string
const (
	ActionUpdate    ActionType = "Update"
	ActionSuspend   ActionType = "Suspend"
	ActionStop      ActionType = "Stop"
	ActionTerminate ActionType = "Terminate"
	ActionResume    ActionType = "Resume"
	ActionNone      ActionType = ""
)

Jump to

Keyboard shortcuts

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