Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTemplateBuilder ¶
func GetTemplateBuilder(config *kotsv1beta1.Config) (*template.Builder, error)
Types ¶
type GVKDoc ¶
type GVKDoc struct { Kind string `yaml:"kind" json:"kind" validate:"required"` APIVersion string `yaml:"apiVersion" json:"apiVersion"` Metadata GVKMetadata `yaml:"metadata" json:"metadata"` }
type GVKMetadata ¶
type LintExpression ¶
type LintExpression struct { Rule string `json:"rule"` Type string `json:"type"` Message string `json:"message"` Path string `json:"path"` Positions []LintExpressionItemPosition `json:"positions"` }
type LintExpressionItemLinePosition ¶
type LintExpressionItemLinePosition struct {
Line int `json:"line"`
}
type LintExpressionItemPosition ¶
type LintExpressionItemPosition struct {
Start LintExpressionItemLinePosition `json:"start"`
}
type LintExpressionsByRule ¶
type LintExpressionsByRule []LintExpression
func (LintExpressionsByRule) Len ¶
func (a LintExpressionsByRule) Len() int
func (LintExpressionsByRule) Less ¶
func (a LintExpressionsByRule) Less(i, j int) bool
func (LintExpressionsByRule) Swap ¶
func (a LintExpressionsByRule) Swap(i, j int)
type OPALintExpression ¶
type RenderTemplateError ¶
type RenderTemplateError struct {
// contains filtered or unexported fields
}
func (RenderTemplateError) Error ¶
func (r RenderTemplateError) Error() string
func (RenderTemplateError) Match ¶
func (r RenderTemplateError) Match() string
type SpecFile ¶
type SpecFile struct { Name string `json:"name"` Path string `json:"path"` Content string `json:"content"` DocIndex int `json:"docIndex,omitempty"` AllowDuplicates bool `json:"allowDuplicates"` // kotskinds can be duplicated if they are coming from secrets or configmaps Children SpecFiles `json:"children"` }
type SpecFiles ¶
type SpecFiles []SpecFile
func SpecFilesFromTarGz ¶
func (SpecFiles) FindAndValidateConfig ¶
func (files SpecFiles) FindAndValidateConfig() (*kotsv1beta1.Config, string, error)
Click to show internal directories.
Click to hide internal directories.