package
0.12.0
Repository: https://github.com/katanomi/pkg.git
Documentation: pkg.go.dev

# Functions

NotEmptyKeyValueOptionValidation require to have at least one key/value pair.
RegisterFlags register flags.
RegisterSetup register setup function.
RequiredKeyValueOptionValidation requires a non-empty values for key and value in all pairs for KeyValueOption.
ValuesValidationOptionsFrom returns the value of the envValuesValidationKey key on the ctx.
WithValuesValidationOpts returns a copy of parent in which the []ValuesValidateOption is set.

# Constants

BranchesCoverageMetric coverage branches rule.
LinesCoverageMetric coverage lines rule.
PassedTestsRateMetric test result passed rate rule.
No description provided by the author

# Variables

AutomatedTestResultDefaultParser AutomatedTestResult default parser.

# Structs

CLIPathOption adds a generic option to store different cli paths.
CodeLinterOption quality gate options for tasks of codeLinter type.
CommandOption describe command option.
ContainerImagesOption describe container images option.
ContextOption describe the work dir to execute the command.
DependencyReposOption describe dependency repo option.
DeployRepositoryOption describe deploy repo option.
EnvFlagsOption describe env flags option.
ExitCodeOption adds a generic option to store different cli paths.
KatanomiPathOption describe katanomi path option.
KeyValueListOption describe a key=value array set.
Log Log related options.
QualityGateOption describe quality gate option.
QualityGateRulesOption describe quality gate rules option.
ReportPathOption describe report path option.
ReportPathsByTypesOption is the option for multiple report types with its report paths.
ReportTypeOption describe report type option.
RESTClientGetterOption is the generic client option for k8s client.
ResultPathOption describe result path option.
ResultsOCIContainerImageBuildURLOption describe ociContainerImageBuild-url option Deprecated: use ContainerImageOption result store mechanism instead.
ScanFlagsOption describe scan flags option.
SourcePathOption describe source path option.
ToolImageOption describe tool image option.
UnitTestQuaityGateOption unittest quaity gate option.
UnitTestReportOption unittest report option.
VulnScanMetricsOption describe quality gate option.
VulnScanOption quality gate options for tasks of vulnerability type.

# Interfaces

FlagRegister flag register interface.
SetupRegister setup register interface.

# Type aliases

KeyValueOptionValidationFunc simple validation function to check the whole.
MetricType define quaity gate rules.