Documentation ¶
Index ¶
- func NewDefaultCommand() *cobra.Command
- func NewDefaultJSONOutputManager() *jsonOutputManager
- func NewDefaultStdOutputManager(color bool) *stdOutputManager
- func NewDefaultTAPOutputManager() *tapOutputManager
- func NewDefaultTableOutputManager() *tableOutputManager
- func NewJSONOutputManager(l *log.Logger) *jsonOutputManager
- func NewParseCommand(ctx context.Context) *cobra.Command
- func NewPullCommand(ctx context.Context) *cobra.Command
- func NewPushCommand(ctx context.Context, logger *log.Logger) *cobra.Command
- func NewStdOutputManager(l *log.Logger, color bool) *stdOutputManager
- func NewTAPOutputManager(l *log.Logger) *tapOutputManager
- func NewTableOutputManager(w io.Writer) *tableOutputManager
- func NewTestCommand(ctx context.Context) *cobra.Command
- func NewVerifyCommand(ctx context.Context) *cobra.Command
- func ValidOutputs() []string
- type CheckResult
- type OutputManager
- type Result
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDefaultCommand ¶
NewDefaultCommand creates the default command
func NewDefaultJSONOutputManager ¶
func NewDefaultJSONOutputManager() *jsonOutputManager
func NewDefaultStdOutputManager ¶
func NewDefaultStdOutputManager(color bool) *stdOutputManager
NewDefaultStdOutputManager instantiates a new instance of stdOutputManager using the default logger.
func NewDefaultTAPOutputManager ¶
func NewDefaultTAPOutputManager() *tapOutputManager
NewDefaultTAPOutputManager instantiates a new instance of tapOutputManager using the default logger.
func NewDefaultTableOutputManager ¶
func NewDefaultTableOutputManager() *tableOutputManager
NewDefaultTableOutputManager instantiates a new instance of tableOutputManager
func NewJSONOutputManager ¶
func NewParseCommand ¶
NewParseCommand creates a parse command. This command can be used for printing structured inputs from unstructured configuration inputs.
func NewPullCommand ¶
NewPullCommand creates a new pull command to allow users to download individual policies
func NewPushCommand ¶
NewPushCommand creates a new push command which allows users to push bundles to an OCI registry
func NewStdOutputManager ¶
NewStdOutputManager constructs an instance of stdOutputManager given a logger instance.
func NewTAPOutputManager ¶
NewTAPOutputManager constructs an instance of stdOutputManager given a logger instance.
func NewTableOutputManager ¶
NewTableOutputManager constructs an instance of tableOutputManager given a io.Writer.
func NewTestCommand ¶
NewTestCommand creates a new test command
func NewVerifyCommand ¶
NewVerifyCommand creates a new verify command which allows users to validate their rego unit tests
func ValidOutputs ¶
func ValidOutputs() []string
ValidOutputs returns the available output formats for reporting tests
Types ¶
type CheckResult ¶
CheckResult describes the result of a conftest evaluation. warning and failure "errors" produced by rego should be considered separate from other classes of exceptions.
type OutputManager ¶
type OutputManager interface { Put(cr CheckResult) error Flush() error }
OutputManager controls how results of the `ccheck` evaluation will be recorded and reported to the end user.
func GetOutputManager ¶
func GetOutputManager() OutputManager