policy

package
v0.1.0-alpha.4 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2018 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Options)

Option is a functional option used to pass in arguments to a Policy.

type Options

type Options struct {
	Pipeline *pipeline.Pipeline
	Tasks    map[string]*task.Task
}

Options defines the set of options available to a Policy.

type Policy

type Policy interface {
	Compliance(*metadata.Metadata, ...Option) Report
	Pipeline(*pipeline.Pipeline) Option
	Tasks(map[string]*task.Task) Option
}

Policy is an interface that policies must implement.

type Report

type Report struct {
	Errors []error
}

Report summarizes the compliance of a policy.

func (Report) Valid

func (r Report) Valid() bool

Valid checks if a report is valid.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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