Documentation ¶
Overview ¶
Package deploystack provides a series of interfaces for getting Google Cloud settings and configurations for use with DeplyStack
Index ¶
- func AttemptRepo(name, wd string) (string, github.Repo, error)
- func ContactCheck() gcloud.ContactData
- func ContactSave(i interface{})
- func DownloadRepo(repo github.Repo, path string) (string, error)
- func Init(path string) (*config.Stack, error)
- func Precheck() error
- func UniquePath(candidate string) string
- func WriteConfig(dir string, gh github.Repo) error
- type Meta
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AttemptRepo ¶ added in v1.9.0
AttemptRepo 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.
func ContactCheck ¶ added in v1.9.0
func ContactCheck() gcloud.ContactData
ContactCheck checks the local file system for a file containg domain registar contact info
func ContactSave ¶ added in v1.9.0
func ContactSave(i interface{})
ContactSave writes a file containg domain registar contact info to disk if it exists
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 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 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
|
|
Package config holds all of the data structures for DeployStack.
|
Package config holds all of the data structures for DeployStack. |
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
|
|
Package dstester is a collection of tools to make testing Terraform resources created for DeployStack easier.
|
Package dstester is a collection of tools to make testing Terraform resources created for DeployStack easier. |
Package gcloud wraps up all of the cloud operations for DeployStack into one client.
|
Package gcloud wraps up all of the cloud operations for DeployStack into one client. |
gcloudtf
module
|
|
Package github includes all of the client calls to github for building automation tools for deploystack
|
Package github includes all of the client calls to github for building automation tools for deploystack |
Package terraform handles parsing Terraform files to extract structured information out of it, to support a few tools to speed up the DeployStack authoring process
|
Package terraform handles parsing Terraform files to extract structured information out of it, to support a few tools to speed up the DeployStack authoring process |
Package tui provides a BubbleTea powered tui for Deploystack.
|
Package tui provides a BubbleTea powered tui for Deploystack. |