farconverter

package
v0.24.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Convert

func Convert(_ *cobra.Command, args []string) error

Types

type FalcoAuditRule

type FalcoAuditRule struct {
	APIVersion string             `yaml:"apiVersion"`
	Kind       string             `yaml:"kind"`
	Metadata   Metadata           `yaml:"metadata"`
	Spec       FalcoAuditRuleSpec `yaml:"spec"`
}

FalcoAuditRule is a structure to encode FalcoAuditRules custom resources.

type FalcoAuditRuleSpec

type FalcoAuditRuleSpec struct {
	RequiredEngineVersion         int                      `yaml:"requiredEngineVersion,omitempty"`
	RequiredK8sAuditPluginVersion string                   `yaml:"requiredK8sAuditPluginVersion,omitempty"`
	Rules                         []FalcoAuditRuleSpecRule `yaml:"rules"`
}

type FalcoAuditRuleSpecRule

type FalcoAuditRuleSpecRule struct {
	Rule  Rule  `yaml:"rule,omitempty"`
	Macro Macro `yaml:"macro,omitempty"`
	List  List  `yaml:"list,omitempty"`
}

type List

type List struct {
	Name  string `yaml:"name"`
	Items []any  `yaml:"items"`
}

type Macro

type Macro struct {
	Name      string `yaml:"name"`
	Condition string `yaml:"condition"`
}

type Metadata

type Metadata struct {
	Name string `yaml:"name"`
}

type RawRule

type RawRule map[string]any

RawRule represents decoded rules in Falco format.

type Rule

type Rule struct {
	Name      string `yaml:"name"`
	Condition string `yaml:"condition"`
	Desc      string `yaml:"desc"`
	Output    string `yaml:"output"`
	Priority  string `yaml:"priority"`
	Enabled   bool   `yaml:"enabled,omitempty"`
	Tags      []any  `yaml:"tags,omitempty"`
	Source    string `yaml:"source,omitempty"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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