Help us shape the future of Go! Take the 2026 Go Developer Survey

opa

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddOPAOpts

func AddOPAOpts(cmd *cobra.Command)

AddOPAOpts adds command line options for OPA to a command

Types

type OPA

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

OPA represents an OpenPolicyAgent query instance

func FromFlags

func FromFlags(flags *flag.FlagSet) (*OPA, error)

FromFlags creates an OPA query ready to run

func (*OPA) Run

func (o *OPA) Run(obj interface{}) (interface{}, error)

func (*OPA) RunFile

func (o *OPA) RunFile(path string) (bool, []string, error)

Jump to

Keyboard shortcuts

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