v1beta1

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 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

func (p PolicyFile) GetDefaultActions() []string

func (PolicyFile) GetDescription

func (p PolicyFile) GetDescription() string

func (PolicyFile) GetName

func (p PolicyFile) GetName() string

func (PolicyFile) GetRules

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

func (PolicyFile) GetScope

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