Documentation
¶
Overview ¶
Package deploystack provides a series of interfaces for getting Google Cloud settings and configurations for use with DeplyStack
Index ¶
- func CacheContact(i interface{})
- func CheckForContact() gcloud.ContactData
- func CloneByName(name, path string) error
- func DownloadRepo(name, path string) (string, error)
- func Init() (*config.Stack, error)
- func NewContactDataFromFile(file string) (gcloud.ContactData, error)
- func Precheck() error
- func UniquePath(candidate string) string
- type Meta
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CacheContact ¶ added in v1.1.0
func CacheContact(i interface{})
CacheContact writes a file containg domain registar contact info to disk if it exists
func CheckForContact ¶ added in v1.1.0
func CheckForContact() gcloud.ContactData
CheckForContact checks the local file system for a file containg domain registar contact info
func CloneByName ¶ added in v1.8.0
CloneByName clones a github repo owned by GoogleCloudPlatform just by the name of the repo, if it fails and the repo name does not have "deploystack-" in it, it will try adding it, so that short names will work.
func DownloadRepo ¶ added in v1.8.0
DownloadRepo 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
func Init ¶ added in v1.1.0
Init initializes a Deploystack stack by looking on teh local file system
func NewContactDataFromFile ¶ added in v1.1.0
func NewContactDataFromFile(file string) (gcloud.ContactData, error)
NewContactDataFromFile generates a new ContactData from a cached yaml file
func Precheck ¶ added in v1.5.0
func Precheck() error
Precheck handles the logic around switching working directories for multiple stacks in one repo
func UniquePath ¶ added in v1.8.0
UniquePath returns either the input candidate path if it does not exist, or a path like the input candidate with increasing nubmers appended to it until the ouput name is a path that does not exist
Types ¶
type Meta ¶ added in v1.8.0
type Meta struct {
DeployStack config.Config
Terraform terraform.Blocks `json:"terraform" yaml:"terraform"`
Github github.Repo `json:"github" yaml:"github"`
LocalPath string `json:"localpath" yaml:"localpath"`
}
Meta is a datastructure that combines the Deploystack, github and Terraform bits of metadata about a stack.
func NewMeta ¶ added in v1.8.0
NewMeta downloads a github repo and parses the DeployStack and Terraform information from the stack.
func NewMetaFromLocal ¶ added in v1.8.0
NewMetaFromLocal allows project to point at local directories for info as well as pulling down from github
func (Meta) ShortName ¶ added in v1.8.0
ShortName retrieves the shortname of whatever we are calling this stack
func (Meta) ShortNameUnderscore ¶ added in v1.8.0
ShortNameUnderscore retrieves the shortname of whatever we are calling this stack replacing hyphens with underscores
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
multi
command
|
|
|
new-ui
command
|
|
|
project-only
command
|
|
|
config
module
|
|
|
The dsexec binary that runs on Cloud Shell to present all of the options to users
|
The dsexec binary that runs on Cloud Shell to present all of the options to users |
|
dsgithub
module
|
|
|
dstester
module
|
|
|
gcloud
module
|
|
|
gcloudtf
module
|
|
|
github
module
|
|
|
terraform
module
|
|
|
tui
module
|