advisor

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Advisor

type Advisor struct {
	OPAModulePolicy *ast.Module
	// contains filtered or unexported fields
}

func NewAdvisor

func NewAdvisor(kubeconfig string) (*Advisor, error)

Create an podSecurityPolicy advisor instance

func (*Advisor) GetPodSecurityPolicy

func (advisor *Advisor) GetPodSecurityPolicy() *v1beta1.PodSecurityPolicy

func (*Advisor) PrintOPAPolicy

func (advisor *Advisor) PrintOPAPolicy() string

func (*Advisor) PrintPodSecurityPolicy

func (advisor *Advisor) PrintPodSecurityPolicy() error

func (*Advisor) PrintPodSecurityPolicyWithGrants

func (advisor *Advisor) PrintPodSecurityPolicyWithGrants() error

func (*Advisor) PrintReport

func (advisor *Advisor) PrintReport()

func (*Advisor) Process

func (advisor *Advisor) Process(namespace string, excludeNamespaces []string, OPAformat string, OPAdefaultRule bool) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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