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: 0

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