remote

package
v0.3.11 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var VersionRegex = regexp.MustCompile(`v\d+(\.\d+)+`)

Functions

This section is empty.

Types

type CreateBranchAndTager

type CreateBranchAndTager interface {
	CreateBranchAndTag(*plumbing.Reference, string, string, bool, bool) error
	GetAllRemoteBranchesAndTags(repoURL string) []*plumbing.Reference
	GetStorer() storage.Storer
}

type GitRemoter

type GitRemoter interface {
	List(o *git.ListOptions) (rfs []*plumbing.Reference, err error)
	Push(o *git.PushOptions) error
}

type GitRepo

type GitRepo struct {
	Auth transport.AuthMethod
	// contains filtered or unexported fields
}

func (*GitRepo) CreateBranchAndTag

func (m *GitRepo) CreateBranchAndTag(sourceBranch *plumbing.Reference, targetBranch, version string, createBranch, createTag bool) error

func (*GitRepo) GetAllRemoteBranchesAndTags

func (m *GitRepo) GetAllRemoteBranchesAndTags(repoURL string) []*plumbing.Reference

GetRemoteBranches get remote branches from GitHub using the repoURL

func (*GitRepo) GetStorer

func (m *GitRepo) GetStorer() storage.Storer

Jump to

Keyboard shortcuts

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