processor

package
v1.5.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	DaemonSet             = "DaemonSet"
	Deployment            = "Deployment"
	Pod                   = "Pod"
	StatefulSet           = "StatefulSet"
	ReplicaSet            = "ReplicaSet"
	ReplicationController = "ReplicationController"
	Job                   = "Job"
	CronJob               = "CronJob"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Processor

type Processor struct {
	// contains filtered or unexported fields
}

func NewProcessor

func NewProcessor(kubeconfig string) (*Processor, error)

NewProcessor returns a new processor

func (*Processor) GeneratePSP

func (p *Processor) GeneratePSP(cssList []types.ContainerSecuritySpec, pssList []types.PodSecuritySpec) *v1beta1.PodSecurityPolicy

GeneratePSP generates Pod Security Policy

func (*Processor) GeneratePSPGrant added in v1.2.0

func (p *Processor) GeneratePSPGrant(cssList []types.ContainerSecuritySpec, pssList []types.PodSecuritySpec) ([]types.PSPGrant, string)

GeneratePSPGrant generates Pod Security Policies, Roles, RoleBindings for service accounts to use PSP

func (*Processor) GenerateReport

func (p *Processor) GenerateReport(cssList []types.ContainerSecuritySpec, pssList []types.PodSecuritySpec) *report.Report

GenerateReport generate a JSON report

func (*Processor) GetSecuritySpec

func (p *Processor) GetSecuritySpec() ([]types.ContainerSecuritySpec, []types.PodSecuritySpec, error)

GetSecuritySpec security posture

func (*Processor) GetServiceAccount added in v1.2.0

func (p *Processor) GetServiceAccount(ns, saName string) v1.ServiceAccount

func (*Processor) SetNamespace

func (p *Processor) SetNamespace(ns string)

Jump to

Keyboard shortcuts

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