cli

package
v0.0.0-...-cad7f9d Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2026 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Overview

Package cli implements the compliance check command line interface

Package cli implements the compliance check command line interface

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FillCheckFlags

func FillCheckFlags(flagSet *pflag.FlagSet, checkArgs *CheckParams)

FillCheckFlags fills the check command flags

func FillLoadFlags

func FillLoadFlags(flagSet *pflag.FlagSet, loadArgs *LoadParams)

FillLoadFlags fills the load command flags with the provided parameters

func RunCheck

func RunCheck(log log.Component, config config.Component, _ secrets.Component, statsdComp statsd.Component, checkArgs *CheckParams, compression logscompression.Component, ipc ipc.Component) error

RunCheck runs a check

func RunLoad

func RunLoad(_ log.Component, _ config.Component, loadArgs *LoadParams) error

RunLoad runs a config load

Types

type CheckParams

type CheckParams struct {
	Args []string

	Framework         string
	File              string
	Verbose           bool
	Report            bool
	OverrideRegoInput string
	DumpReports       string
}

CheckParams needs to be exported because the compliance subcommand is tightly coupled to this subcommand and tests need to be able to access this type.

type LoadParams

type LoadParams struct {
	ConfType string
	ProcPid  int
}

LoadParams contains parameters for the compliance load command

Jump to

Keyboard shortcuts

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