Documentation
¶
Index ¶
Constants ¶
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 ¶
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
type ChartIconString ¶
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