Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultWorkers = 5 DefaultVSAExpiration = "168h" // 7 days DefaultEffectiveTime = "now" DefaultStrictMode = true DefaultFallbackEnabled = true )
Constants for default values
Variables ¶
View Source
var ValidateCmd *cobra.Command
Functions ¶
func NewValidateCmd ¶
func NewValidateVSACmd ¶ added in v0.8.39
func ValidatePolicyCmd ¶
Types ¶
type InputValidationFunc ¶
type OutputFormatter ¶ added in v0.8.44
type OutputFormatter interface {
PrintJSON(writer io.Writer) error
PrintText(writer io.Writer) error
}
OutputFormatter defines the interface for objects that can be formatted for output
type ResultType ¶ added in v0.8.44
type ResultType int
ResultType represents the classification of a component validation result
const ( ResultTypeError ResultType = iota ResultTypeFallback ResultTypeVSASuccess ResultTypeVSAFailure ResultTypeUnexpected )
type UnifiedResultAdapter ¶ added in v0.8.44
type UnifiedResultAdapter struct {
// contains filtered or unexported fields
}
UnifiedResultAdapter adapts VSAValidationResult to OutputFormatter interface
type VSAReport ¶ added in v0.8.44
type VSAReport struct {
Timestamp string `json:"timestamp"`
TotalResults int `json:"total_results"`
SuccessCount int `json:"success_count"`
FailureCount int `json:"failure_count"`
FallbackCount int `json:"fallback_count,omitempty"`
Results []vsa.ComponentResult `json:"results"`
OverallSuccess bool `json:"overall_success"`
}
VSAReport represents the output structure for VSA validation results
Click to show internal directories.
Click to hide internal directories.