commands

package
v0.42.1 Latest Latest
Warning

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

Go to latest
Published: May 8, 2023 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDefaultCommand

func NewDefaultCommand() *cobra.Command

NewDefaultCommand creates the default command

func NewFormatCommand added in v0.24.0

func NewFormatCommand() *cobra.Command

NewFormatCommand creates a format command. This command can be used for formatting Rego files.

func NewParseCommand

func NewParseCommand() *cobra.Command

NewParseCommand creates a parse command. This command can be used for printing structured inputs from unstructured configuration inputs.

func NewPluginCommand

func NewPluginCommand(ctx context.Context) *cobra.Command

NewPluginCommand creates a new plugin command

func NewPluginInstallCommand

func NewPluginInstallCommand(ctx context.Context) *cobra.Command

NewPluginInstallCommand creates the install plugin subcommand

func NewPullCommand

func NewPullCommand(ctx context.Context) *cobra.Command

NewPullCommand creates a new pull command to allow users to download individual policies.

func NewPushCommand

func NewPushCommand(ctx context.Context, logger *log.Logger) *cobra.Command

NewPushCommand creates a new push command which allows users to push bundles to an OCI registry.

func NewTestCommand

func NewTestCommand(ctx context.Context) *cobra.Command

NewTestCommand creates a new test command.

func NewVerifyCommand

func NewVerifyCommand(ctx context.Context) *cobra.Command

NewVerifyCommand creates a new verify command which allows users to validate their rego unit tests.

Types

type TestRun

type TestRun struct {
	Compiler *ast.Compiler
	Store    storage.Store
}

TestRun stores the compiler and store for a test run.

Jump to

Keyboard shortcuts

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