Versions in this module Expand all Collapse all v0 v0.3.0 Dec 2, 2019 Changes in this version + const ActionApply + const ActionCreate + const ActionDelete + const ActionUpdate + var DefaultProjectID string + var RunGCloud = func(args ...string) (result string, err error) + func AppendMap(a map[string]string, b map[string]string) map[string]string + func ApplyPreview(deployment *Deployment) (string, error) + func CancelPreview(deployment *Deployment) (string, error) + func Create(deployment *Deployment, preview bool) (string, error) + func Delete(deployment *Deployment, preview bool) (string, error) + func DeploymentNameFromFile(path string) string + func GCloudDefaultProjectID() (string, error) + func GetOutputs(project string, name string) (map[string]interface{}, error) + func GetUserInput(message string, options []string, rd io.Reader) string + func IsYAML(text string) bool + func Order(configs map[string]Config) ([][]Config, error) + func ReparentPath(baseDir string, file string) string + func Update(deployment *Deployment, preview bool) (string, error) + type Config struct + Description string + Imports []struct{ ... } + Name string + Project string + Resources []map[string]interface{} + func NewConfig(data string, file string) Config + func (c Config) FullName() string + func (c Config) GetProject() string + func (c Config) Source() string + func (c Config) String() string + func (c Config) YAML(outputs map[string]map[string]interface{}) ([]byte, error) + type Deployment struct + Outputs map[string]interface{} + func NewDeployment(config Config, outputs map[string]map[string]interface{}, processConfig bool) *Deployment + func (d *Deployment) Execute(action string, preview bool) (output string, error error) + func (d Deployment) FullName() string + func (d Deployment) String() string + type DeploymentDescription struct + Deployment struct{ ... } + Resources []DeploymentDescriptionResource + func GetDeploymentDescription(name string, project string) (*DeploymentDescription, error) + type DeploymentDescriptionResource struct + FinalProperties string + Name string + Properties string + Type string + Update struct{ ... } + type Resources struct + Name string + Outputs []struct{ ... } + Resources []Resources + type Status int + const Done + const Error + const NotFound + const Pending + const Running + func GetStatus(deployment *Deployment) (Status, error) + func (s Status) String() string