cmd

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2025 License: AGPL-3.0 Imports: 30 Imported by: 0

Documentation

Overview

Package cmd contains run cobra command factory function.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(levelVar *slog.LevelVar) (*cobra.Command, error)

New creates new cobra command for exec command.

Types

type Check added in v0.4.0

type Check struct {
	// Textual explanation of the check result.
	Details string `json:"details,omitempty" mapstructure:"details,omitempty" yaml:"details,omitempty"`

	// The ID of the checker.
	// It identifies the method of check, not the execution of the check.
	ID string `json:"id" mapstructure:"id" yaml:"id"`

	// The result of the check.
	// A true value of the passed property indicates a successful check, while a false
	// value indicates a failure.
	Passed bool `json:"passed" mapstructure:"passed" yaml:"passed"`
}

Check is the result of a particular inspection.

type Compliance added in v0.4.0

type Compliance struct {
	// Results of individual checks.
	Checks []Check `json:"checks,omitempty" mapstructure:"checks,omitempty" yaml:"checks,omitempty"`

	// Compliance check timestamp in Unix time
	Timestamp int64 `json:"timestamp" mapstructure:"timestamp" yaml:"timestamp"`
}

Compliance is the result of the extension's k6 compliance checks.

Directories

Path Synopsis
Package main contains the main function for k6registry CLI tool.
Package main contains the main function for k6registry CLI tool.

Jump to

Keyboard shortcuts

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