label

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name          string = "label"
	Category      string = "kubernetes"
	Description   string = "Add, modify or delete the labels of the pod/node"
	Source        string = "syscalls"
	Continue      bool   = true
	UseContext    bool   = false
	AllowOutput   bool   = false
	RequireOutput bool   = false
	Permissions   string = `` /* 185-byte string literal not displayed */

	Example string = `- action: Label the pod
  actionner: kubernetes:label
  parameters:
    level: pod
    labels:
      suspicious: "true"
`
)

Variables

View Source
var (
	RequiredOutputFields = []string{"k8s.ns.name", "k8s.pod.name"}
)

Functions

This section is empty.

Types

type Actionner

type Actionner struct{}

func Register

func Register() *Actionner

func (Actionner) CheckParameters

func (a Actionner) CheckParameters(action *rules.Action) error

func (Actionner) Checks

func (a Actionner) Checks(event *events.Event, _ *rules.Action) error

func (Actionner) Information

func (a Actionner) Information() models.Information

func (Actionner) Init

func (a Actionner) Init() error

func (Actionner) Parameters

func (a Actionner) Parameters() models.Parameters

func (Actionner) Run

func (a Actionner) Run(event *events.Event, action *rules.Action) (utils.LogLine, *models.Data, error)

type Parameters

type Parameters struct {
	Labels map[string]string `mapstructure:"labels" validate:"required"`
	Level  string            `mapstructure:"level" validate:"omitempty"`
}

Jump to

Keyboard shortcuts

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