{"modulePath":"github.com/kazylla/gitops-controller","version":"v0.0.0-20200114083141-76b3e3df8aa5","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package git\n\n## Types\n\n```go\ntype Config struct {\n\tImagePath     string\n\tRepo          string\n\tBranch        string\n\tReleaseBranch string\n\tPaths         []string\n\tCommitName    string\n\tCommitEmail   string\n\tLog           logr.Logger\n\tUsername      string\n\tPassword      string\n}\n```\n\n```go\ntype GitRepo struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewGitRepo(c Config) (*GitRepo, error)\n```\nNewGitRepo clones the specified git repository branch\n\n```go\nfunc (gitRepo *GitRepo) CommitTags(imageVers []version.ImageVersion) (string, error)\n```\nCommitTags creates a commit that updates specific image tags\n\n```go\ntype GithubPR struct {\n\tRepoURL  string\n\tUsername string\n\tPassword string\n}\n```\n\n```go\nfunc NewGithubPR(repoURL, username, password string) *GithubPR\n```\n\n```go\nfunc (pr *GithubPR) CreatePR(tag, branch string) error\n```\nCreatePR creates a pull request for the specified branch\n\n```go\ntype PR interface {\n\tCreatePR(tag, branch string) error\n}\n```\n\n```go\nfunc NewPR(repo, username, password string) PR\n```\n\n```go\ntype RepoURL struct {\n\tHost     string\n\tOwner    string\n\tRepoName string\n}\n```\n\n","path":"github.com/kazylla/gitops-controller/controllers/git","name":"git","synopsis":"","isRedistributable":true}
