gcptarget

package
v0.0.0-...-08e4202 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package gcptarget is a constraint framework target for FCV to use for integrating with the opa constraint framework.

Index

Constants

View Source
const Name = "validation.gcp.forsetisecurity.org"

Name is the target name for GCPTarget

Variables

This section is empty.

Functions

This section is empty.

Types

type GCPTarget

type GCPTarget struct {
}

GCPTarget is the constraint framework target for FCV

func New

func New() *GCPTarget

New returns a new GCPTarget

func (*GCPTarget) GetName

func (g *GCPTarget) GetName() string

GetName implements client.TargetHandler

func (*GCPTarget) HandleReview

func (g *GCPTarget) HandleReview(obj interface{}) (bool, interface{}, error)

HandleReview implements client.TargetHandler

func (*GCPTarget) HandleViolation

func (g *GCPTarget) HandleViolation(result *types.Result) error

HandleViolation implements client.TargetHandler

func (*GCPTarget) Library

func (g *GCPTarget) Library() *template.Template

Library implements client.TargetHandler

func (*GCPTarget) MatchSchema

func (g *GCPTarget) MatchSchema() apiextensions.JSONSchemaProps

MatchSchema implements client.MatchSchemaProvider

func (*GCPTarget) ProcessData

func (g *GCPTarget) ProcessData(obj interface{}) (bool, string, interface{}, error)

ProcessData implements client.TargetHandler

func (*GCPTarget) ValidateConstraint

func (g *GCPTarget) ValidateConstraint(constraint *unstructured.Unstructured) error

ValidateConstraint implements client.TargetHandler

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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