models

package
v0.0.0-...-7aa05ff Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Field

type Field struct {
	Name          string        `json:"name"`
	Description   string        `json:"description"`
	Type          string        `json:"type"`
	DisplayName   string        `json:"display_name"`
	ManifestKey   string        `json:"manifest_key"`
	Value         string        `json:"value"`
	Properties    []Field       `json:"properties"`
	Items         *Field        `json:"items"`
	Enum          []interface{} `json:"enum"`
	Suggestions   []interface{} `json:"x-suggestions"`
	Required      []string      `json:"required"`
	FileExtension string        `json:"fileExtension"`
	Immutable     bool          `json:"immutable"`

	// number validation
	Minimum          *float64 `json:"minimum"`
	Maximum          *float64 `json:"maximum"`
	ExclusiveMinimum *bool    `json:"exclusiveMinimum"`
	ExclusiveMaximum *bool    `json:"exclusiveMaximum"`
	MultipleOf       *float64 `json:"multipleOf"`

	// string validation
	MinLength *int    `json:"minLength"`
	MaxLength *int    `json:"maxLength"`
	Pattern   *string `json:"pattern"`
}

type HelmRelease

type HelmRelease struct {
	Name           string                 `json:"name"`
	Namespace      string                 `json:"namespace"`
	Chart          string                 `json:"chart"`
	Version        string                 `json:"version"`
	Revision       string                 `json:"revision"`
	Values         map[string]interface{} `json:"values"`
	Sources        []*TemplateSource      `json:"sources"`
	ContainsSchema bool                   `json:"containsSchema"`
}

type HelmReleaseSchema

type HelmReleaseSchema struct {
	RootField Field `json:"root"`
}

type Template

type Template struct {
	Name            string       `json:"name"`
	Manifest        string       `json:"manifest"`
	RootField       Field        `json:"root"`
	Created         string       `json:"created"`
	Edited          string       `json:"edited"`
	Modules         []dto.Module `json:"modules"`
	Version         string       `json:"version"`
	ResolvedVersion string       `json:"resolvedVersion"`
	IconURL         string       `json:"iconURL"`

	HelmChartMetadata *helm.Metadata `json:"helmChartMetadata"`
	RawSchema         []byte         `json:"rawSchema"`

	Files     []*chart.File `json:"files"`
	Templates []*chart.File `json:"templates"`
	CRDs      []*chart.File `json:"crds"`

	Dependencies []*Template `json:"dependencies"`
	Condition    string      `json:"condition"`
}

type TemplateSource

type TemplateSource struct {
	URL     string `json:"repo"`
	Path    string `json:"path"`
	Version string `json:"version"`
	Full    string `json:"full"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL