Documentation
¶
Index ¶
- Constants
- Variables
- type Actionner
- func (a Actionner) CheckParameters(action *rules.Action) error
- func (a Actionner) Checks(event *events.Event, _ *rules.Action) error
- func (a Actionner) Information() models.Information
- func (a Actionner) Init() error
- func (a Actionner) Parameters() models.Parameters
- func (a Actionner) Run(event *events.Event, action *rules.Action) (utils.LogLine, *models.Data, error)
- func (a Actionner) RunWithClient(client k8s.Client, event *events.Event, action *rules.Action) (utils.LogLine, *models.Data, error)
- type Parameters
Constants ¶
View Source
const ( Name string = "drain" Category string = "kubernetes" Description string = "Drain a node" Source string = "syscalls, k8s_audit" Continue bool = true UseContext bool = false AllowOutput bool = false RequireOutput bool = false Permissions string = `` /* 311-byte string literal not displayed */ Example string = `- action: Drain the node actionner: kubernetes:drain ` )
Variables ¶
View Source
var (
RequiredOutputFields = []string{"k8s.ns.name", "k8s.pod.name"}
)
Functions ¶
This section is empty.
Types ¶
type Actionner ¶
type Actionner struct{}
func (Actionner) Information ¶
func (a Actionner) Information() models.Information
func (Actionner) Parameters ¶
func (a Actionner) Parameters() models.Parameters
type Parameters ¶
type Parameters struct { MinHealthyReplicas string `mapstructure:"min_healthy_replicas" validate:"omitempty,is_absolut_or_percent"` WaitPeriodExcludedNamespaces []string `mapstructure:"wait_period_excluded_namespaces" validate:"omitempty"` IgnoreErrors bool `mapstructure:"ignore_errors" validate:"omitempty"` IgnoreDaemonsets bool `mapstructure:"ignore_daemonsets" validate:"omitempty"` IgnoreStatefulSets bool `mapstructure:"ignore_statefulsets" validate:"omitempty"` MaxWaitPeriod int `mapstructure:"max_wait_period" validate:"omitempty"` }
Click to show internal directories.
Click to hide internal directories.