transport

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: 0BSD Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrAlreadyExists = errors.New("repo already exists")
	ErrNoChange      = errors.New("repo does not contain changes")
)
View Source
var Tag = "gitgo"

tag is used in the version flag output

Functions

This section is empty.

Types

type Transport

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

func New

func New(repoUri string, path string, auth *url.Userinfo) (*Transport, error)

func (*Transport) AddCommitPush

func (t *Transport) AddCommitPush(ctx context.Context, branch, title, description string) error

func (*Transport) Auth

func (t *Transport) Auth() *url.Userinfo

func (*Transport) CheckoutBranch

func (t *Transport) CheckoutBranch(ctx context.Context, branch string) error

func (*Transport) Path

func (t *Transport) Path() string

func (*Transport) Refresh

func (t *Transport) Refresh(ctx context.Context, branch string) error

func (*Transport) URL

func (t *Transport) URL() string

Jump to

Keyboard shortcuts

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