Versions in this module Expand all Collapse all v0 v0.2.0 Aug 27, 2018 v0.1.9 Aug 10, 2018 v0.1.8 Aug 8, 2018 Changes in this version type Metadata + func (m *Metadata) GetScreenshots() []string v0.1.7 Jul 20, 2018 v0.1.6 Jul 9, 2018 v0.1.5 Jul 4, 2018 v0.1.4 Jun 30, 2018 v0.1.3 Jun 30, 2018 v0.1.2 Jun 22, 2018 v0.1.1 Jun 19, 2018 v0.1.0 Jun 16, 2018 Changes in this version + const APIVersionV1 + const ClusterSchema + const TypeArray + const TypeBoolean + const TypeInteger + const TypeNumber + const TypePassword + const TypeString + func ValidateClusterConfTmpl(clusterTmpl *ClusterConfTemplate, input *ClusterUserConfig) error + type App struct + ClusterConfTemplate *ClusterConfTemplate + ConfigTemplate *ConfigTemplate + Files []BufferedFile + Metadata *Metadata + type BufferedFile struct + Data []byte + Name string + type ClusterConf struct + AdvancedActions []string + AppId string + BackupPolicy string + Description string + DisplayTabs struct{ ... } + Endpoints map[string]struct{ ... } + Env map[string]interface{} + GlobalUuid string + HealthCheck *HealthCheck + IncrementalBackupSupported *bool + Links map[string]string + MetadataRootAccess *bool + Monitor *Monitor + Name string + Nodes []Node + RenderJson string + Subnet string + UpgradePolicy []string + VersionId string + func (c ClusterConf) Validate() error + type ClusterConfTemplate struct + Raw string + func (c *ClusterConfTemplate) Render(input ClusterUserConfig) (ClusterConf, error) + type ClusterUserConfig interface + type ConfigTemplate struct + AllowedOperations []string + Changeable bool + Default interface{} + Description string + Key string + Limits map[string][]string + Max int + Min int + Multichoice bool + Pattern string + Port int + Properties []*ConfigTemplate + Range []interface{} + Raw string + Required bool + Separator string + Step int + Type string + func DecodeConfigJson(data []byte) (*ConfigTemplate, error) + func (c *ConfigTemplate) GetDefaultConfig() ClusterUserConfig + type HealthCheck struct + ActionCmd string + ActionTimeoutSec uint32 + CheckCmd string + Enable *bool + HealthyThreshold uint32 + IntervalSec uint32 + TimeoutSec uint32 + UnhealthyThreshold uint32 + type IndexFile struct + APIVersion string + Entries map[string]Versions + Generated time.Time + func LoadIndexFile(path string) (*IndexFile, error) + func NewIndexFile() *IndexFile + func (i *IndexFile) Merge(f *IndexFile) + func (i IndexFile) Add(md *Metadata, filename, baseURL, digest string) + func (i IndexFile) Get(name, version string) (*Version, error) + func (i IndexFile) Has(name, version string) bool + func (i IndexFile) SortEntries() + func (i IndexFile) WriteFile(dest string, mode os.FileMode) error + type Maintainer struct + Email string + Name string + type Metadata struct + ApiVersion string + AppVersion string + Description string + Home string + Icon string + Keywords []string + Maintainers []*Maintainer + Name string + Screenshots []string + Sources []string + Version string + func DecodePackageJson(data []byte) (*Metadata, error) + func (m *Metadata) GetApiVersion() string + func (m *Metadata) GetAppVersion() string + func (m *Metadata) GetDescription() string + func (m *Metadata) GetHome() string + func (m *Metadata) GetIcon() string + func (m *Metadata) GetKeywords() []string + func (m *Metadata) GetMaintainers() []*Maintainer + func (m *Metadata) GetName() string + func (m *Metadata) GetSources() []string + func (m *Metadata) GetVersion() string + type Monitor struct + Alarm []string + Cmd string + Display []string + Enable *bool + Groups map[string][]string + Items map[string]struct{ ... } + type Node struct + AdvancedActions []string + AgentInstalled *bool + CPU uint32 + Container struct{ ... } + Count uint32 + CustomMetadata map[string]interface{} + Env map[string]interface{} + GPU uint32 + HealthCheck *HealthCheck + Loadbalancer []struct{ ... } + Memory uint32 + Monitor *Monitor + Passphraseless string + Replica uint32 + Role string + ServerIDUpperBound uint32 + Services map[string]interface{} + UserAccess *bool + VerticalScalingPolicy string + Volume struct{ ... } + type Service struct + Cmd string + NodesToExecuteOn *uint32 + Order *uint32 + PostStartService *bool + PostStopService *bool + PreCheck string + ServiceParams map[string]interface{} + Timeout *uint32 + type ServiceParams struct + Params map[string]interface{} + type Version struct + Created time.Time + Digest string + Removed bool + URLs []string + func (h Version) GetUrls() []string + type Versions []*Version + func (c Versions) Len() int + func (c Versions) Less(a, b int) bool + func (c Versions) Swap(i, j int)