commands

package
v0.7.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DuplicatePolicyFailure = errors.New("duplicate rule names found")
View Source
var FilepathDirUnexpected = errors.New("filepath given is a Dir. We expect a path to a file")
View Source
var FilepathValueEmpty = errors.New("given filepath value is empty")
View Source
var InvalidPolicyPath = errors.New("invalid policy path")
View Source
var PolicyFailure = errors.New("your policy failed")
View Source
var UnmatchedQuery = errors.New("your given query did not yield any matches")

Functions

func UnmarshalYamlMap added in v0.5.1

func UnmarshalYamlMap(in map[string]string) (map[string]interface{}, error)

func WalkTemplatePath added in v0.7.3

func WalkTemplatePath(templatePath string) (map[string]io.ReadCloser, error)

WalkTemplatePath - walk a given template path to read all of the templates (even nested templates) into a map

Types

type EvalCommand added in v0.2.0

type EvalCommand struct {
	Writer    io.Writer
	Template  string   `short:"t" long:"template" description:"path to yaml template you would like to render"`
	Values    []string `short:"c" long:"values" description:"path to values file(s) you would like to use for rendering"`
	Policy    string   `short:"p" long:"policy" description:"path to rego policies to evaluate against rendered templates"`
	Namespace string   `short:"n" long:"namespace" description:"policy namespace to query for rules"`
	Verbose   bool     `short:"v" long:"verbose" description:"prints tracing output to stdout"`
}

func (*EvalCommand) Execute added in v0.2.0

func (s *EvalCommand) Execute(args []string) error

type RenderCommand

type RenderCommand struct {
	Writer   io.Writer
	Template string   `short:"t" long:"template" description:"path to yaml template you would like to render"`
	Values   []string `short:"c" long:"values" description:"path to values file(s) you would like to use for rendering"`
}

func (*RenderCommand) Execute

func (s *RenderCommand) Execute(args []string) error

type VersionCommand added in v0.2.0

type VersionCommand struct {
	Version   string
	Buildtime string
	Platform  string
}

func (*VersionCommand) Execute added in v0.2.0

func (s *VersionCommand) Execute(args []string) error

Jump to

Keyboard shortcuts

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