gittargetrepo

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitTargetRepo

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

func Instance

func Instance(_ context.Context, localPath string) *GitTargetRepo

func (*GitTargetRepo) Checkout

func (t *GitTargetRepo) Checkout(ctx context.Context, branch string) error

func (*GitTargetRepo) Clone

func (t *GitTargetRepo) Clone(ctx context.Context, gitRepoUrl string) error

func (*GitTargetRepo) CommitAndPush

func (t *GitTargetRepo) CommitAndPush(ctx context.Context, name string, email string, message string, auth transport.AuthMethod) error

func (*GitTargetRepo) CreateBranch

func (t *GitTargetRepo) CreateBranch(ctx context.Context, shortBranchName string, hash *plumbing.Hash) error

func (*GitTargetRepo) EnablePush

func (t *GitTargetRepo) EnablePush()

func (*GitTargetRepo) GetHashForRevision

func (t *GitTargetRepo) GetHashForRevision(ctx context.Context, branchOrTag string) *plumbing.Hash

func (*GitTargetRepo) Path

func (t *GitTargetRepo) Path() string

Jump to

Keyboard shortcuts

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