Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CheckResult ¶
type CheckResult struct { ID string `json:"id"` Message string `json:"message"` Severity checks.Severity `json:"severity"` Builtin bool `json:"builtin"` Path string `json:"path"` Status CheckStatus `json:"status"` Failed map[string][]string `json:"failed"` Passed map[string][]string `json:"passed"` Skipped map[string][]string `json:"skipped"` Errors []string `json:"errors"` TotalFailed int `json:"totalFailed"` TotalPassed int `json:"totalPassed"` TotalSkipped int `json:"totalSkipped"` }
func NewCheckResult ¶
func NewCheckResult(c checks.Check) *CheckResult
func (*CheckResult) AddError ¶
func (r *CheckResult) AddError(err error)
func (*CheckResult) AddFailed ¶
func (r *CheckResult) AddFailed(obj unstructured.Unstructured)
func (*CheckResult) AddPassed ¶
func (r *CheckResult) AddPassed(obj unstructured.Unstructured)
func (*CheckResult) AddSkipped ¶
func (r *CheckResult) AddSkipped(obj unstructured.Unstructured)
func (*CheckResult) UpdateStatus ¶
func (r *CheckResult) UpdateStatus()
type CheckStatus ¶
type CheckStatus int
const ( StatusPassed CheckStatus = iota StatusSkipped StatusFailed StatusError )
func (CheckStatus) MarshalJSON ¶
func (s CheckStatus) MarshalJSON() ([]byte, error)
func (CheckStatus) String ¶
func (s CheckStatus) String() string
Click to show internal directories.
Click to hide internal directories.