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" OperatorCommandTypeRuntimeUpdateRules OperatorCommandType = "RuntimeUpdateRules" 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"`
}
Click to show internal directories.
Click to hide internal directories.