Documentation
¶
Index ¶
- func Label(ctx context.Context, obj metav1.Object, userLabelKey string, ...)
- func LabelActor(ctx context.Context, obj metav1.Object, action ActionType)
- func LabelCreator(ctx context.Context, obj metav1.Object)
- func UserActionLabel(ctx context.Context, action ActionType) map[string]string
- func UserInfoMap(ctx context.Context) map[string]string
- type ActionType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LabelActor ¶ added in v3.7.0
func LabelActor(ctx context.Context, obj metav1.Object, action ActionType)
func UserActionLabel ¶ added in v3.7.0
func UserActionLabel(ctx context.Context, action ActionType) 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 = "" )
Click to show internal directories.
Click to hide internal directories.