creator

package
v4.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

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

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

func LabelCreator

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

func UserActionLabel

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

func UserInfoMap

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

Types

type ActionType

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

Jump to

Keyboard shortcuts

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