Documentation ¶
Index ¶
- func DeleteCatalog(db *gorm.DB, environmentId, name string)
- type Base
- type Bindings
- type Catalog
- type CatalogCollection
- type CatalogError
- type CatalogModel
- type CatalogResource
- type File
- type FileModel
- type Question
- type RancherCompose
- type Template
- type TemplateCollection
- type TemplateModel
- type TemplateResource
- type TemplateVersionResource
- type Version
- type VersionModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Catalog ¶
type CatalogCollection ¶
type CatalogCollection struct { client.Collection Data []CatalogResource `json:"data,omitempty"` }
type CatalogError ¶
type CatalogModel ¶
type CatalogResource ¶
type File ¶
type Question ¶
type Question struct { Variable string `json:"variable" yaml:"variable,omitempty"` Label string `json:"label" yaml:"label,omitempty"` Description string `json:"description" yaml:"description,omitempty"` Type string `json:"type" yaml:"type,omitempty"` Required bool `json:"required" yaml:"required,omitempty"` Default string `json:"default" yaml:"default,omitempty"` Group string `json:"group" yaml:"group,omitempty"` MinLength int `json:"minLength" yaml:"min_length,omitempty"` MaxLength int `json:"maxLength" yaml:"max_length,omitempty"` Min int `json:"min" yaml:"min,omitempty"` Max int `json:"max" yaml:"max,omitempty"` Options []string `json:"options" yaml:"options,omitempty"` ValidChars string `json:"validChars" yaml:"valid_chars,omitempty"` InvalidChars string `json:"invalidChars" yaml:"invalid_chars,omitempty"` }
type RancherCompose ¶
type RancherCompose struct { Name string `yaml:"name"` UUID string `yaml:"uuid"` Description string `yaml:"description"` Version string `yaml:"version"` Questions []Question `json:"questions" yaml:"questions,omitempty"` MinimumRancherVersion string `json:"minimumRancherVersion" yaml:"minimum_rancher_version,omitempty"` MaximumRancherVersion string `json:"maximumRancherVersion" yaml:"maximum_rancher_version,omitempty"` //Output Output `json:"output" yaml:"output,omitempty"` Labels map[string]string `json:"labels" yaml:"labels,omitempty"` UpgradeFrom string `json:"upgradeFrom" yaml:"upgrade_from,omitempty"` }
type Template ¶
type Template struct { Name string `json:"name"` Category string `json:"category"` IsSystem string `json:"isSystem"` Description string `json:"description"` DefaultVersion string `json:"defaultVersion" yaml:"version"` Path string `json:"path"` Maintainer string `json:"maintainer"` License string `json:"license"` ProjectURL string `json:"projectURL"` //Labels map[string]string `json:"labels"` UpgradeFrom string `json:"upgradeFrom"` // TODO FolderName string `json:"folderName"` Catalog string `json:"catalogId"` EnvironmentId string `json:"environmentId"` //Prefix string `json:"prefix"` Base string `json:"templateBase"` Icon []byte `json:"icon"` IconFilename string `json:"iconFilename"` }
func LookupTemplate ¶
type TemplateCollection ¶
type TemplateCollection struct { client.Collection Data []TemplateResource `json:"data,omitempty"` }
type TemplateModel ¶
type TemplateResource ¶
type TemplateVersionResource ¶
type Version ¶
type Version struct { Catalog string `json:"catalogId"` EnvironmentId string `json:"environmentId"` Template string `json:"template"` Revision int `json:"revision"` Version string `json:"version"` MinimumRancherVersion string `json:"minimumRancherVersion" yaml:"minimum_rancher_version"` MaximumRancherVersion string `json:"maximumRancherVersion" yaml:"maximum_rancher_version"` UpgradeFrom string `json:"upgradeFrom" yaml:"upgrade_from"` // TODO move to model Files []File Questions []Question Readme string `json:"readme"` }
TODO: might need a Base field for filtering TODO: might need a FolderName field for filtering
type VersionModel ¶
func LookupVersionModel ¶
func LookupVersionModel(db *gorm.DB, environmentId, catalog, template string, revision int) *VersionModel
TODO: needs a base filter (make sure to use a map)
Click to show internal directories.
Click to hide internal directories.