Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Info ¶
type Info struct {
Name string `json:"name"`
Version string `json:"version"`
URL string `json:"url"`
Description string `json:"description,omitempty"`
Tags []string `json:"tags,omitempty"`
Icon string `json:"icon,omitempty"`
}
Info contains basic information about the pak that doesn't need to be fetched
type InstalledPak ¶
type InstalledPak struct {
Group string
Namespace string
PakURL string
PropertiesValues map[string]interface{}
Objects []*kubectl.Object
// Map of pod's name and its status
Statuses map[string]*kubectl.PodStatus
}
InstalledPak Represents an installed pak with a unique Group
type Pak ¶
type Pak struct {
Info `json:",inline"`
Properties []Property `json:"properties,omitempty"`
ResourceURLs []string `json:"resources"`
// Populated from resources
Templates []*template.Template `json:"-"`
}
Pak contains all the data and information that needed for installing it
func (*Pak) AddDefaultValues ¶
AddDefaultValues add default values for properties that not exists in values
func (*Pak) ExecuteTemplates ¶
ExecuteTemplates generate resources of a pak with given values
func (*Pak) ValidateValues ¶
ValidateValues validates given values with corresponding properties given values should be contain defaults - use MergeValuesWithDefaults before passing values to this function
type Property ¶
type Property struct {
Name string `json:"name"`
Type string `json:"type"`
Description string `json:"description,omitempty"`
Default interface{} `json:"default,omitempty"`
}
Property contains definition of every property that required for generating pak templates
type Repo ¶
type Repo struct {
URL string `json:""`
Name string `json:"name"`
Description string `json:"description,omitempty"`
Maintainer string `json:"maintainer,omitempty"`
Paks []*Info `json:"packages"`
}
Repo represents an index file that contains list of paks
func RepoFromBytes ¶
RepoFromBytes make *Repo from data
func RepoFromURL ¶
RepoFromURL fetches index file specified by url and returns a *Repo
func (*Repo) HasVersion ¶
HasVersion checks if repo contains the pak with specific version