Documentation ¶
Index ¶
- type GitTargetRepo
- func (t *GitTargetRepo) Checkout(ctx context.Context, branch string) error
- func (t *GitTargetRepo) Clone(ctx context.Context, gitRepoUrl string) error
- func (t *GitTargetRepo) CommitAndPush(ctx context.Context, name string, email string, message string, ...) error
- func (t *GitTargetRepo) CreateBranch(ctx context.Context, shortBranchName string, hash *plumbing.Hash) error
- func (t *GitTargetRepo) EnablePush()
- func (t *GitTargetRepo) GetHashForRevision(ctx context.Context, branchOrTag string) *plumbing.Hash
- func (t *GitTargetRepo) Path() string
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 (*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 (*GitTargetRepo) EnablePush ¶
func (t *GitTargetRepo) EnablePush()
func (*GitTargetRepo) GetHashForRevision ¶
func (*GitTargetRepo) Path ¶
func (t *GitTargetRepo) Path() string
Click to show internal directories.
Click to hide internal directories.