generator

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2019 License: Apache-2.0 Imports: 14 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 string,
	serverGitVersion string) *v1beta1.PodSecurityPolicy

GeneratePSP generate Pod Security Policy

func (*Generator) GetSecuritySpecFromPodSpec

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

Jump to

Keyboard shortcuts

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