git

package
v0.0.0-...-76b3e3d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 14, 2020 License: MIT Imports: 19 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ImagePath     string
	Repo          string
	Branch        string
	ReleaseBranch string
	Paths         []string
	CommitName    string
	CommitEmail   string
	Log           logr.Logger
	Username      string
	Password      string
}

type GitRepo

type GitRepo struct {
	// contains filtered or unexported fields
}

func NewGitRepo

func NewGitRepo(c Config) (*GitRepo, error)

NewGitRepo clones the specified git repository branch

func (*GitRepo) CommitTags

func (gitRepo *GitRepo) CommitTags(imageVers []version.ImageVersion) (string, error)

CommitTags creates a commit that updates specific image tags

type GithubPR

type GithubPR struct {
	RepoURL  string
	Username string
	Password string
}

func NewGithubPR

func NewGithubPR(repoURL, username, password string) *GithubPR

func (*GithubPR) CreatePR

func (pr *GithubPR) CreatePR(tag, branch string) error

CreatePR creates a pull request for the specified branch

type PR

type PR interface {
	CreatePR(tag, branch string) error
}

func NewPR

func NewPR(repo, username, password string) PR

type RepoURL

type RepoURL struct {
	Host     string
	Owner    string
	RepoName string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL