Documentation ¶
Index ¶
- Constants
- Variables
- type Answers
- type Credential
- type Generator
- func (g *Generator) GenerateAnswers(data []map[string]interface{}) (Versions, []Credential, error)
- func (g *Generator) GenerateDelta(body io.Reader) ([]map[string]interface{}, string, error)
- func (g *Generator) LoadVersionsFromFile(ignoreIfMissing bool) (Versions, []Credential, error)
- func (g *Generator) SaveToFile(t time.Time)
- type Interim
- type MetadataDecoder
- type MetadataDelta
- type Versions
Constants ¶
View Source
const DEFAULT_KEY = "default"
The top-level key in the JSON for the default (not client-specific answers)
View Source
const ENVIRONMENT_KEY = "environments"
View Source
const LATEST_KEY = "latest"
View Source
const METADATA_VERSION1 = "2015-07-25"
View Source
const METADATA_VERSION2 = "2015-12-19"
View Source
const METADATA_VERSION3 = "2016-07-29"
View Source
const VERSION_KEY = "version"
Variables ¶
View Source
var MAGIC_ARRAY_KEYS = []string{"name", "uuid"}
View Source
var SUPPORTED_VERSIONS = []string{METADATA_VERSION1, METADATA_VERSION2, METADATA_VERSION3}
Functions ¶
This section is empty.
Types ¶
type Credential ¶
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
func NewGenerator ¶
func (*Generator) GenerateAnswers ¶
func (g *Generator) GenerateAnswers(data []map[string]interface{}) (Versions, []Credential, error)
func (*Generator) GenerateDelta ¶
func (*Generator) LoadVersionsFromFile ¶
func (g *Generator) LoadVersionsFromFile(ignoreIfMissing bool) (Versions, []Credential, error)
func (*Generator) SaveToFile ¶
type Interim ¶
type Interim struct { UUIDToService map[string]map[string]interface{} UUIDToContainer map[string]map[string]interface{} UUIDToStack map[string]map[string]interface{} UUIDToHost map[string]map[string]interface{} ServiceUUIDNameToContainersUUID map[string][]string StackUUIDToServicesUUID map[string][]string ContainerUUIDToContainerLink map[string]map[string]interface{} ServiceUUIDToServiceLink map[string]map[string]interface{} Networks []interface{} Default map[string]interface{} Environment map[string]interface{} Credentials []Credential }
type MetadataDecoder ¶
Click to show internal directories.
Click to hide internal directories.