v1beta1

package
v0.20.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PoliciesFromPaths

func PoliciesFromPaths(paths []string) ([]k8s.PolicyInterface, error)

PoliciesFromPaths returns a slice of policies from the given paths

Types

type Metadata

type Metadata struct {
	Name        string            `yaml:"name"`
	Annotations map[string]string `yaml:"annotations"`
}

type PolicyFile

type PolicyFile struct {
	APIVersion string         `yaml:"apiVersion"`
	Kind       string         `yaml:"kind"`
	Metadata   Metadata       `yaml:"metadata"`
	Spec       k8s.PolicySpec `yaml:"spec"`
}

PolicyFile is the structure of the policy file

func (PolicyFile) GetDefaultActions added in v0.19.0

func (p PolicyFile) GetDefaultActions() []string

func (PolicyFile) GetDescription added in v0.19.0

func (p PolicyFile) GetDescription() string

func (PolicyFile) GetName added in v0.19.0

func (p PolicyFile) GetName() string

func (PolicyFile) GetRules added in v0.19.0

func (p PolicyFile) GetRules() []k8s.Rule

func (PolicyFile) GetScope added in v0.19.0

func (p PolicyFile) GetScope() []string

func (PolicyFile) Validate

func (p PolicyFile) Validate() error

Jump to

Keyboard shortcuts

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