package cmd
import "github.com/open-policy-agent/opa/cmd"
Index ¶
- Variables
- func Command(rootCommand *cobra.Command, brand string) *cobra.Command
- func UserAgent(agent string)
- type ExitError
Variables ¶
var RootCommand = Command(nil, "OPA")
Backwards compatibility definition. Newer code should use Command.
Functions ¶
func Command ¶
func UserAgent ¶
func UserAgent(agent string)
UserAgent lets you override the OPA UA sent with all the HTTP requests. It's another vanity thing -- if you build your own version of OPA, you may want to adjust this. NOTE(sr): Caution: Please consider this experimental, I have the hunch that we'll find a better way to make this adjustment in the future.
Types ¶
type ExitError ¶
type ExitError struct { Exit int // contains filtered or unexported fields }
func (*ExitError) Error ¶
func (*ExitError) Unwrap ¶
Source Files ¶
bench.go build.go capabilities.go check.go commands.go deps.go doc.go eval.go exec.go filters.go flags.go fmt.go inspect.go oracle.go parse.go refactor.go run.go sign.go test.go utils.go version.go
Directories ¶
Path | Synopsis |
---|---|
cmd/formats | |
cmd/internal |
- Version
- v1.7.1 (latest)
- Published
- Jul 31, 2025
- Platform
- linux/amd64
- Imports
- 76 packages
- Last checked
- 2 hours ago –
Tools for package owners.