Help us shape the future of Go! Take the 2026 Go Developer Survey

farconverter

package
v0.22.1 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 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(cmd *cobra.Command, args []string) error

Types

type FalcoAuditRule

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

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
}

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