Documentation ¶
Index ¶
Constants ¶
View Source
const ( JSONAlpha1 = "json-alpha1" Text = "text" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Result ¶
type Result struct { Passed bool `json:"passed"` Outputs []output `json:"outputs"` }
Result represents the final result
func NewResult ¶
func NewResult() *Result
NewResult return a new result object which starts with passed == true since has no errors
func (*Result) AddManifestResults ¶
func (o *Result) AddManifestResults(results ...apierrors.ManifestResult)
AddManifestResults adds warnings and errors in results to Results.
func (*Result) PrintWithFormat ¶
PrintWithFormat prints output to w in format, and exits if some object in output is not in a passing state.
Click to show internal directories.
Click to hide internal directories.