Documentation ¶
Index ¶
Constants ¶
View Source
const ( LanguageCodeEn = "en" LanguageCodeZh = "zh" )
View Source
const MetadataFilename = "extension.yaml"
Variables ¶
View Source
var Categories = []string{
"kubernetes", "storage", "devops", "monitoring", "logging", "security", "database",
}
Functions ¶
func CreateAppChart ¶ added in v0.2.0
func LoadApplicationClass ¶ added in v0.2.0
Types ¶
type ApplicationClass ¶ added in v0.2.0
type ApplicationClass struct { ApplicationClassGroup string `json:"applicationClassGroup,omitempty"` Name string `json:"name,omitempty"` Provisioner string `json:"provisioner,omitempty"` Parameters map[string]string `json:"parameters,omitempty"` AppVersion string `json:"appVersion,omitempty"` PackageVersion string `json:"packageVersion,omitempty"` Icon string `json:"icon,omitempty"` Description Locales `json:"description,omitempty"` Maintainer *chart.Maintainer `json:"maintainer,omitempty"` }
type Extension ¶
func (*Extension) ToKubernetesResources ¶
type LanguageCode ¶
type LanguageCode string
type Locales ¶
type Locales map[LanguageCode]string
type Metadata ¶
type Metadata struct { APIVersion string `json:"apiVersion" validate:"required"` // The name of the chart. Required. Name string `json:"name" validate:"required"` Version string `json:"version" validate:"required"` DisplayName Locales `json:"displayName" validate:"required"` Description Locales `json:"description" validate:"required"` Category string `json:"category" validate:"required"` Keywords []string `json:"keywords,omitempty"` Home string `json:"home,omitempty"` Sources []string `json:"sources,omitempty"` KubeVersion string `json:"kubeVersion,omitempty"` KSVersion string `json:"ksVersion,omitempty"` Maintainers []*chart.Maintainer `json:"maintainers,omitempty"` Provider map[LanguageCode]*chart.Maintainer `json:"provider" validate:"required"` StaticFileDirectory string `json:"staticFileDirectory" validate:"required"` Icon string `json:"icon" validate:"required"` Screenshots []string `json:"screenshots,omitempty"` Dependencies []*chart.Dependency `json:"dependencies,omitempty"` }
func LoadMetadata ¶
Click to show internal directories.
Click to hide internal directories.