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 Category
- type CategoryAndTemplate
- type CategoryModel
- type File
- type FileModel
- type LabelAndTemplate
- type Question
- type RancherCompose
- type Template
- type TemplateCategory
- type TemplateCategoryModel
- type TemplateCollection
- type TemplateLabel
- type TemplateLabelModel
- type TemplateModel
- type TemplateResource
- type TemplateVersionResource
- type Version
- type VersionLabel
- type VersionLabelModel
- 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 CategoryAndTemplate ¶ added in v0.18.0
type CategoryModel ¶
type LabelAndTemplate ¶ added in v0.18.0
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"`
Labels map[string]string `json:"labels" yaml:"labels,omitempty"`
UpgradeFrom string `json:"upgradeFrom" yaml:"upgrade_from,omitempty"`
}
type Template ¶
type Template struct {
EnvironmentId string `json:"environmentId"`
CatalogId uint `sql:"type:integer REFERENCES catalog(id) ON DELETE CASCADE"`
Name string `json:"name"`
IsSystem string `json:"isSystem"`
Description string `json:"description"`
DefaultVersion string `json:"defaultVersion" yaml:"default_version"`
Path string `json:"path"`
Maintainer string `json:"maintainer"`
License string `json:"license"`
ProjectURL string `json:"projectURL" yaml:"project_url"`
UpgradeFrom string `json:"upgradeFrom"`
FolderName string `json:"folderName"`
Catalog string `json:"catalogId"`
Base string `json:"templateBase"`
Icon string `json:"icon"`
IconFilename string `json:"iconFilename"`
Readme string `json:"readme"`
Categories []string `sql:"-" json:"categories"`
Labels map[string]string `sql:"-" json:"labels"`
Versions []Version `sql:"-"`
Category string `sql:"-"`
}
func LookupTemplate ¶
type TemplateCategory ¶
type TemplateCategoryModel ¶
type TemplateCategoryModel struct {
Base
TemplateCategory
}
type TemplateCollection ¶
type TemplateCollection struct {
client.Collection
Data []TemplateResource `json:"data,omitempty"`
}
type TemplateLabel ¶ added in v0.16.3
type TemplateLabelModel ¶ added in v0.16.3
type TemplateLabelModel struct {
Base
TemplateLabel
}
type TemplateModel ¶
type TemplateResource ¶
type TemplateVersionResource ¶
type Version ¶
type Version struct {
TemplateId uint `sql:"type:integer REFERENCES catalog_template(id) ON DELETE CASCADE"`
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"`
Readme string `json:"readme"`
Labels map[string]string `sql:"-" json:"labels"`
Files []File `sql:"-"`
Questions []Question `sql:"-"`
}
func LookupVersionByRevision ¶ added in v0.17.0
type VersionLabel ¶ added in v0.16.3
type VersionLabelModel ¶ added in v0.16.3
type VersionLabelModel struct {
Base
VersionLabel
}
type VersionModel ¶
Click to show internal directories.
Click to hide internal directories.