Documentation ¶
Overview ¶
Copyright 2020 The Operator-SDK Authors
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
TODO: Move the above implementation to the operator-frameowrk/api project to allow its re-usage. Any validator and SDK would ought to leverage on that.
Copyright 2020 The Operator-SDK Authors ¶
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
TODO: Move the above implementation to the operator-frameowrk/api project to allow its re-usage. Any validator and SDK would ought to leverage on that.
Index ¶
Constants ¶
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.