Documentation
¶
Index ¶
Constants ¶
View Source
const FILE_PATH string = "FilePath"
View Source
const STATE_DIR string = "deployments"
Variables ¶
View Source
var Cmd = &cobra.Command{ Use: "ccdeploy <template> <name>", Short: "Deploy a local template directly using the Cloud Control API (Experimental!)", Long: `Creates or updates resources directly using Cloud Control API from the template file <template>. You must pass the --experimental (-x) flag to use this command, to acknowledge that it is experimental and likely to be unstable! `, Args: cobra.ExactArgs(2), DisableFlagsInUseLine: true, Run: run, }
View Source
var Experimental bool
Functions ¶
Types ¶
type DeploymentResults ¶
DeploymentResults captures everything that happened as a result of deployment
func DeployTemplate ¶
func DeployTemplate(template cft.Template) (*DeploymentResults, error)
deployTemplate deloys the CloudFormation template using the Cloud Control API. A failed deployment will result in DeploymentResults.Succeeded = false. A non-nil error is returned when something unexpected caused a failure not related to actually deploying resources, like an invalid template.
type Resource ¶
type Resource struct {
Name string
Type string
Node *yaml.Node
State ResourceState
Message string
Identifier string
Model string
Action diff.ActionType
PriorJson string
}
func NewResource ¶
func NewResource(name string, resourceType string, state ResourceState, node *yaml.Node) *Resource
NewResource creates a new Resource and adds it to the map
type ResourceState ¶
type ResourceState int
const ( Waiting ResourceState = iota Deploying Failed Deployed Canceled )
Click to show internal directories.
Click to hide internal directories.