Documentation
¶
Index ¶
- func Bool(text string, data interface{}) (bool, error)
- func Error(name string, err error) error
- func Execute(text string, data interface{}) (string, error)
- func IsFuncError(err error) bool
- func Panic(name string, err error) error
- func RegisterFunc(key string, fn interface{})
- func String(text string, data interface{}) (string, error)
- func ValidateOutputPath(outputPath string) (string, error)
- type FuncError
- type Insight
- type Meta
- type Result
- type Severity
- type V1Beta2ToV1Beta3Result
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsFuncError ¶
func RegisterFunc ¶
func RegisterFunc(key string, fn interface{})
func ValidateOutputPath ¶ added in v0.29.0
ValidateOutputPath takes an output file path and returns it as an absolute path. It returns an error if the absolute path cannot be determined or if the parent directory does not exist.
Types ¶
type Insight ¶
type Result ¶
type Result struct {
Meta `json:",inline" yaml:",inline" hcl:",inline"`
Insight *Insight `json:"insight" yaml:"insight" hcl:"insight"`
Severity Severity `json:"severity" yaml:"severity" hcl:"severity"`
AnalyzerSpec string `json:"analyzerSpec" yaml:"analyzerSpec" hcl:"analyzerSpec"`
Variables map[string]interface{} `json:"variables,omitempty" yaml:"variables,omitempty" hcl:"variables,omitempty"`
Error string `json:"error,omitempty" yaml:"error,omitempty" hcl:"error,omitempty"`
InvolvedObject *corev1.ObjectReference `json:"involvedObject,omitempty" yaml:"involvedObject,omitempty" hcl:"involvedObject,omitempty"`
}
func FromAnalyzerResult ¶
func FromAnalyzerResult(input []*analyze.AnalyzeResult) []*Result
type V1Beta2ToV1Beta3Result ¶ added in v0.123.0
type V1Beta2ToV1Beta3Result struct {
TemplatedSpec string `yaml:"-"`
ValuesFile string `yaml:"-"`
Values map[string]interface{} `yaml:"-"`
}
V1Beta2ToV1Beta3Result holds the conversion results
func ConvertToV1Beta3 ¶ added in v0.123.0
func ConvertToV1Beta3(doc []byte) (*V1Beta2ToV1Beta3Result, error)
ConvertToV1Beta3 converts a v1beta2 preflight spec to v1beta3 format with templating
Click to show internal directories.
Click to hide internal directories.