{"modulePath":"github.com/GoogleCloudPlatform/deploystack","version":"v1.12.8","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package deploystack\n\nPackage deploystack provides a series of interfaces for getting Google Cloud settings and configurations for use with DeplyStack\n\n## Functions\n\n```go\nfunc AttemptRepo(name, wd string) (string, github.Repo, error)\n```\nAttemptRepo will try to download a repo - only from GoogleCloudPlatform. If it fails, it will append \"deploystack-\" to the front of the requested name and try again.\n\n```go\nfunc ContactCheck() gcloud.ContactData\n```\nContactCheck checks the local file system for a file containing domain registar contact info\n\n```go\nfunc ContactSave(i interface{})\n```\nContactSave writes a file containing domain registar contact info to disk if it exists\n\n```go\nfunc DownloadRepo(repo github.Repo, path string) (string, error)\n```\nDownloadRepo takes a name of a GoogleCloudPlatform repo or a GoogleCloudPlatform/deploystack-\\[name] repo, and downloads it into a unique folder name, and outputs that name\n\n```go\nfunc Init(path string) (*config.Stack, error)\n```\nInit initializes a Deploystack stack by looking on the local file system\n\n```go\nfunc Precheck() error\n```\nPrecheck handles the logic around switching working directories for multiple stacks in one repo\n\n```go\nfunc UniquePath(candidate string) string\n```\nUniquePath returns either the input candidate path if it does not exist, or a path like the input candidate with increasing numbers appended to it until the output name is a path that does not exist\n\n```go\nfunc WriteConfig(dir string, gh github.Repo) error\n```\nWriteConfig will drop a .deploystack folder with deploystack.yaml file for repos that do not have one.\n\n## Types\n\n```go\ntype Meta struct {\n\tDeployStack config.Config\n\tTerraform   terraform.Blocks `json:\"terraform\" yaml:\"terraform\"`\n\tGithub      github.Repo      `json:\"github\" yaml:\"github\"`\n\tLocalPath   string           `json:\"localpath\" yaml:\"localpath\"`\n}\n```\nMeta is a datastructure that combines the Deploystack, github and Terraform bits of metadata about a stack.\n\n```go\nfunc NewMeta(path string) (Meta, error)\n```\nNewMeta allows project to point at local directories for info as well as pulling down from github\n\n```go\nfunc (m Meta) ShortName() string\n```\nShortName retrieves the shortname of whatever we are calling this stack\n\n```go\nfunc (m Meta) ShortNameUnderscore() string\n```\nShortNameUnderscore retrieves the shortname of whatever we are calling this stack replacing hyphens with underscores\n\n```go\nfunc (m Meta) Suggest() (config.Config, error)\n```\nSuggest will provide it's best guess of what the deploystack config should be based on the contents of the repo, including an existing deploystack config\n\n","path":"github.com/GoogleCloudPlatform/deploystack","name":"deploystack","synopsis":"Package deploystack provides a series of interfaces for getting Google Cloud settings and configurations for use with DeplyStack","isRedistributable":true}
