Documentation
¶
Index ¶
- func FormatErrors(errs validator.ValidationErrors) error
- func NewValidator(opts ...ValidatorOpts) *validator.Validate
- type DependencyType
- type Helm
- type HelmChart
- type HelmChartDependency
- type HelmChartImage
- type HelmRepository
- type Metadata
- type SchemaVersion
- type Systemd
- type SystemdExtension
- type ValidatorOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatErrors ¶
func FormatErrors(errs validator.ValidationErrors) error
func NewValidator ¶
func NewValidator(opts ...ValidatorOpts) *validator.Validate
Types ¶
type DependencyType ¶
type DependencyType string
const ( DependencyTypeExtension DependencyType = "sysext" DependencyTypeHelm DependencyType = "helm" )
type Helm ¶
type Helm struct {
Charts []*HelmChart `yaml:"charts" validate:"dive"`
Repositories []*HelmRepository `yaml:"repositories" validate:"dive"`
}
type HelmChart ¶
type HelmChart struct {
Name string `yaml:"name,omitempty"`
Chart string `yaml:"chart" validate:"required"`
Version string `yaml:"version" validate:"required"`
Namespace string `yaml:"namespace,omitempty"`
Repository string `yaml:"repository,omitempty"`
Values map[string]any `yaml:"values,omitempty"`
DependsOn []HelmChartDependency `yaml:"dependsOn,omitempty" validate:"dive"`
Images []HelmChartImage `yaml:"images,omitempty"`
}
func (*HelmChart) ExtensionDependencies ¶
func (*HelmChart) GetInlineValues ¶
func (*HelmChart) GetRepositoryName ¶
type HelmChartDependency ¶
type HelmChartDependency struct {
Name string `yaml:"name" validate:"required"`
Type DependencyType `yaml:"type" validate:"required,oneof=sysext helm"`
}
type HelmChartImage ¶
type HelmRepository ¶
type SchemaVersion ¶
type SchemaVersion string
const SchemaV0 SchemaVersion = "v0"
func LoadSchemaVersion ¶
func LoadSchemaVersion(data []byte) (SchemaVersion, error)
type Systemd ¶
type Systemd struct {
Extensions []SystemdExtension `yaml:"extensions,omitempty" validate:"dive"`
}
type SystemdExtension ¶
type ValidatorOpts ¶
func WithCustomValidations ¶
func WithCustomValidations(customValidations map[string]validator.Func) ValidatorOpts
func WithYAMLFieldNames ¶
func WithYAMLFieldNames() ValidatorOpts
Click to show internal directories.
Click to hide internal directories.