clients

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Branch

type Branch struct {
	Raw gitconfig.Branch

	Merge     git.ReferenceName // like 'refs/heads/main'
	FetchRef  git.ReferenceName // like 'refs/remotes/origin/main'
	RemoteRef git.ReferenceName // like 'refs/heads/main'
}

Branch ...

type Context

type Context struct {
	Local  Local
	Remote Remote
	Branch Branch
}

Context ...

func (*Context) Clone

func (inst *Context) Clone() *Context

Clone ...

func (*Context) Init

func (inst *Context) Init(ctx context.Context, wd afs.Path) error

Init ...

func (*Context) OpenConnection

func (inst *Context) OpenConnection(service string) (pktline.Connection, error)

OpenConnection ...

func (*Context) OpenSession

func (inst *Context) OpenSession() (store.Session, error)

OpenSession ...

type Local

type Local struct {
	Lib        store.Lib
	Repository store.Repository
	Session    store.Session
	Path       afs.Path
}

Local ...

type Remote

type Remote struct {
	Raw gitconfig.Remote

	RemoteName    string
	Connection    pktline.Connection
	URL           string
	FetchTemplate gitconfig.FetchRefspecTemplate
}

Remote ...

Jump to

Keyboard shortcuts

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