{"modulePath":"github.com/GoogleCloudPlatform/deploystack/dsgithub","version":"v0.0.0-20230119054949-8164bca6ce25","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package dsgithub\n\n## Types\n\n```go\ntype Github struct {\n\tRepo   string `json:\"repo\" yaml:\"repo\"`\n\tBranch string `json:\"branch\" yaml:\"branch\"`\n}\n```\nGithub contains the details of a github repo for the purpose of downloading\n\n```go\nfunc NewGithub(repo string) Github\n```\nNewGithub generates Github from a url that might contain branch information\n\n```go\nfunc (g Github) Clone(path string) error\n```\nClone performs a git clone to the directory of our choosing\n\n```go\nfunc (g Github) RepoPath(path string) string\n```\nRepoPath Returns the path that the github content will be cached at\n\n```go\ntype Meta struct {\n\tDeployStack deploystack.Config\n\tTerraform   gcloudtf.Blocks `json:\"terraform\" yaml:\"terraform\"`\n\tGithub      Github          `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(repo, path string) (Meta, error)\n```\nNewMeta downloads a github repo and parses the DeployStack and Terraform information from the stack.\n\n```go\nfunc NewMetaFromLocal(path string) (Meta, error)\n```\nNewMetaFromLocal allows project to point at local directories for info as well as pulling down from github\n\n```go\nfunc (d Meta) ShortName() string\n```\nShortName retrieves the shortname of whatever we are calling this stack\n\n```go\nfunc (d Meta) ShortNameUnderscore() string\n```\nShortNameUnderscore retrieves the shortname of whatever we are calling this stack replacing hyphens with underscores\n\n","path":"github.com/GoogleCloudPlatform/deploystack/dsgithub","name":"dsgithub","synopsis":"","isRedistributable":true}
