Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ModelsMap = map[string]func(*Resource) Model{ Types.AWS: NewAwsModel, }
ModelsMap Maps provider name to model
View Source
var Status = &statusRegistry{
"Complete",
"InProgress",
"Failed",
"NotFound",
}
Status status
View Source
var Types = &providerRegistry{
AWS: "AWS",
}
Types provider types
Functions ¶
Types ¶
type Model ¶
type Model interface { Provision() Destroy() CheckStatus() string }
Model provider model interface
type Provider ¶
type Provider struct { Name string `json:"name"` *ResourceCommands }
Provider Hosted application provider
type Resource ¶
type Resource struct { Name string `json:"name"` Path string `json:"path"` Body string `json:"body,omitempty"` Priority int `json:"priority,omitempty"` Provider *Provider `json:"provider"` *ResourceCommands }
Resource Provider resource (i.e. cloudformation)
type ResourceCommands ¶
type ResourceCommands struct { PreProvision []string `json:"preProvision"` PostProvision []string `json:"postProvision"` }
ResourceCommands Custom resource commands
Click to show internal directories.
Click to hide internal directories.