models

package
v0.0.0-...-400b19d Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ReadmeKey                  = "readme"
	DefaultValuesKey           = "values"
	AdditionalDefaultValuesKey = "additional-values"
	SchemaKey                  = "schema"
	ChartYamlKey               = "chartYaml"
)

some constant strings used as keys in maps in several modules

Variables

This section is empty.

Functions

This section is empty.

Types

type AppRepository

type AppRepository struct {
	Namespace string `json:"namespace"`
	Name      string `json:"name"`
	URL       string `json:"url"`
	Type      string `json:"type"`
}

AppRepository holds the App repository basic details

type AppRepositoryInternal

type AppRepositoryInternal struct {
	Namespace           string `json:"namespace"`
	Name                string `json:"name"`
	URL                 string `json:"url"`
	Type                string `json:"type"`
	AuthorizationHeader string `bson:"-"`
}

AppRepositoryInternal holds the App repository details including auth

type Chart

type Chart struct {
	ID              string             `json:"ID" bson:"chart_id"`
	Name            string             `json:"name"`
	Repo            *AppRepository     `json:"repo"`
	Description     string             `json:"description"`
	Home            string             `json:"home"`
	Keywords        []string           `json:"keywords"`
	Maintainers     []chart.Maintainer `json:"maintainers"`
	Sources         []string           `json:"sources"`
	Icon            string             `json:"icon"`
	RawIcon         []byte             `json:"raw_icon" bson:"raw_icon"`
	IconContentType string             `json:"icon_content_type" bson:"icon_content_type,omitempty"`
	Category        string             `json:"category"`
	ChartVersions   []ChartVersion     `json:"chartVersions"`
}

Chart is a higher-level representation of a chart package

type ChartCategory

type ChartCategory struct {
	Name  string `json:"name"`
	Count int    `json:"count"`
}

ChartCategory is the representation of the chart category query Note "name" and "count" names are not columns but select aliases

type ChartFiles

type ChartFiles struct {
	ID                      string `bson:"file_id"`
	Readme                  string
	DefaultValues           string
	AdditionalDefaultValues map[string]string
	Schema                  string
	Repo                    *AppRepository
	Digest                  string
}

ChartFiles holds the README and default values for a given chart version

func (ChartFiles) Value

func (a ChartFiles) Value() (driver.Value, error)

Allow to convert ChartFiles to a sql JSON

type ChartIconString

type ChartIconString struct {
	Chart
	RawIcon string `json:"raw_icon" bson:"raw_icon"`
}

ChartIconString is a higher-level representation of a chart package TODO(andresmgot) Replace this type when the icon is stored as a binary

type ChartVersion

type ChartVersion struct {
	Version    string    `json:"version"`
	AppVersion string    `json:"app_version"`
	Created    time.Time `json:"created"`
	Digest     string    `json:"digest"`
	URLs       []string  `json:"urls"`
	// The following three fields get set with the URL paths to the respective
	// chart files (as opposed to the similar fields on ChartFiles which
	// contain the actual content).
	Readme                  string            `json:"readme" bson:"-"`
	DefaultValues           string            `json:"values" bson:"-"`
	AdditionalDefaultValues map[string]string `json:"additional_values" bson:"-"`
	Schema                  string            `json:"schema" bson:"-"`
}

ChartVersion is a representation of a specific version of a chart

Jump to

Keyboard shortcuts

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