Documentation ¶
Index ¶
- func Clone(repo string, dep model.Dependency, dest string) error
- func CopyDir(src, dst string) error
- func CopyDirFiltered(src, dst string, include []string) error
- func CopyFile(src, dst string) error
- func CopyFilesToDir(src, dst string) error
- func CreatePR(manifest model.Manifest, repo, newBranchName, commitString, description string, ...) error
- func CreateSha(src string) error
- func FetchAuto(repo string, dep *model.Dependency, dest string) error
- func FileExists(filename string) bool
- func GetGithubToken(file string) (string, error)
- func IsValidSemver(v string) bool
- func PushCommit(manifest model.Manifest, repo, branch, commitString string, dryrun bool, ...) (changes bool, err error)
- func RunMake(manifest model.Manifest, repo string, env []string, c ...string) error
- func RunWithOutput(name string, arg ...string) (string, error)
- func StandardEnv(manifest model.Manifest) []string
- func VerboseCommand(name string, arg ...string) *exec.Cmd
- func YamlLog(prefix string, i interface{})
- func ZipFolder(source, target string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyDirFiltered ¶
CopyDirFiltered copies a directory, but only includes files that match given patterns
func CopyFilesToDir ¶
CopyFilesToDir copies all files in one directory to another
func CreatePR ¶
func CreatePR(manifest model.Manifest, repo, newBranchName, commitString, description string, dryrun bool, githubToken, git, branch string, labels []string, ) error
CreatePR will look for changes. If changes exist, it will create a branch and push a commit with the specified commit text, and then create a PR in the upstream repo.
func FetchAuto ¶
func FetchAuto(repo string, dep *model.Dependency, dest string) error
FetchAuto looks up the SHA to use for the dependency from istio/istio
func GetGithubToken ¶
GetGithubToken returns the GitHub token from the specified file. If the filename isn't specified, it will return the token set in the GITHUB_TOKEN environment variable.
func IsValidSemver ¶
IsValidSemver checks if the string is a valid semver Mirror https://github.com/helm/helm/blob/9fafb4ad6811afb017cc464b630be2ff8390ac63/pkg/chart/metadata.go#L144
func PushCommit ¶
func PushCommit(manifest model.Manifest, repo, branch, commitString string, dryrun bool, githubToken string, user github.User) (changes bool, err error)
PushCommit will look for changes. If changes exist, it will create a branch and push a commit with the specified commit text to the upstremam repo.
func RunWithOutput ¶
RunWithOutput runs a command, outputting stderr and stdout, and returning the command's stdout
func StandardEnv ¶
func VerboseCommand ¶
VerboseCommand runs a command, outputting stderr and stdout
Types ¶
This section is empty.