commands

package
v0.0.0-...-a4f5910 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDefaultCommand

func NewDefaultCommand() *cobra.Command

NewDefaultCommand creates a new default command

Types

type Document

type Document struct {
	Header Header
	URL    string
	Rego   string
}

Document is a single policy document.

type Header struct {
	Title       string
	Description string
	Resources   []string
	MatchLabels string
	Anchor      string
	Parameters  []rego.Parameter
}

Header is the header comment block found on a Rego policy.

Jump to

Keyboard shortcuts

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