command

package
v0.0.26 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2025 License: Apache-2.0 Imports: 0 Imported by: 1

Documentation

Index

Constants

View Source
const (
	OperatorCommandAppNameLabelKey  string = "kubescape.io/app-name"  // holds the app name label, which should execute the command (optional)
	OperatorCommandNodeNameLabelKey string = "kubescape.io/node-name" // holds the node name label, app running on this node name should execute the command (optional)

	// command types will be defined here
	OperatorCommandTypeRuntimeResponse OperatorCommandType = "RuntimeResponse"

	OperatorCommandTypeCreateRegistry OperatorCommandType = "CreateRegistry"
	OperatorCommandTypeUpdateRegistry OperatorCommandType = "UpdateRegistry"
	OperatorCommandTypeDeleteRegistry OperatorCommandType = "DeleteRegistry"
	OperatorCommandTypeCheckRegistry  OperatorCommandType = "CheckRegistry"

	OperatorCommandTypeOperatorAPI OperatorCommandType = "OperatorAPI"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type OperatorCommandType

type OperatorCommandType string

type ResponseAction

type ResponseAction string

ResponseCommand

const (
	ResponseActionKill    ResponseAction = "Kill"
	ResponseActionStop    ResponseAction = "Stop"
	ResponseActionPause   ResponseAction = "Pause"
	ResponseActionUnpause ResponseAction = "Unpause"
)

type ResponseCommand

type ResponseCommand struct {
	Namespace     string         `json:"namespace,omitempty"`
	PodName       string         `json:"podName,omitempty"`
	ContainerName string         `json:"containerName,omitempty"`
	Pid           *uint32        `json:"pid,omitempty"`
	Action        ResponseAction `json:"action,omitempty"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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