model

package
v0.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 27, 2015 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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"`
}

Question holds the properties of a question present in rancher-compose.yml file

type RancherCompose

type RancherCompose struct {
	//rancher.RancherConfig	`yaml:",inline"`
	Name        string     `yaml:"name"`
	UUID        string     `yaml:"uuid"`
	Description string     `yaml:"description"`
	Version     string     `yaml:"version"`
	Questions   []Question `json:"questions" yaml:"questions,omitempty"`
}

RancherCompose holds the questions array

type Template

type Template struct {
	client.Resource
	Name           string            `json:"name"`
	UUID           string            `json:"uuid"`
	Category       string            `json:"category"`
	Description    string            `json:"description"`
	Version        string            `json:"version"`
	IconLink       string            `json:"iconLink"`
	VersionLinks   map[string]string `json:"versionLinks"`
	DockerCompose  string            `json:"dockerCompose"`
	RancherCompose string            `json:"rancherCompose"`
	Questions      []Question        `json:"questions"`
	Path           string            `json:"path"`
}

Template structure defines all properties that can be present in a template

type TemplateCollection

type TemplateCollection struct {
	client.Collection
	Data []Template `json:"data,omitempty"`
}

TemplateCollection holds a collection of templates

type UpgradeInfo

type UpgradeInfo struct {
	client.Resource
	CurrentVersion  string            `json:"currentVersion"`
	NewVersionLinks map[string]string `json:"newVersionLinks"`
}

UpgradeInfo structure contains the new version info

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL