generator

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2020 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator struct {
}

func NewGenerator

func NewGenerator() (*Generator, error)

func (*Generator) FromPodObjString

func (pg *Generator) FromPodObjString(podObjString string) (string, error)

func (*Generator) GeneratePSP

func (pg *Generator) GeneratePSP(cssList []types.ContainerSecuritySpec,
	pssList []types.PodSecuritySpec,
	namespace, serverGitVersion string) *policyv1beta1.PodSecurityPolicy

func (*Generator) GeneratePSPFormYamls added in v1.6.0

func (pg *Generator) GeneratePSPFormYamls(yamls []string) (*policyv1beta1.PodSecurityPolicy, error)

func (*Generator) GeneratePSPWithName added in v1.2.0

func (pg *Generator) GeneratePSPWithName(
	cssList []types.ContainerSecuritySpec,
	pssList []types.PodSecuritySpec,
	namespace, serverGitVersion, pspName string) *policyv1beta1.PodSecurityPolicy

GeneratePSP generate Pod Security Policy

func (*Generator) GetSecuritySpecFromPodSpec

func (pg *Generator) GetSecuritySpecFromPodSpec(metadata types.Metadata, namespace string, spec corev1.PodSpec, sa *corev1.ServiceAccount) ([]types.ContainerSecuritySpec, types.PodSecuritySpec)

func (*Generator) LoadYaml added in v1.7.0

func (pg *Generator) LoadYaml(yamlFile string) ([]types.ContainerSecuritySpec, []types.PodSecuritySpec, error)

Jump to

Keyboard shortcuts

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