goget

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnknownBranch = errors.New("unknown branch")

Functions

func WrapGitProtocols

func WrapGitProtocols(t tracing.Tracing)

Types

type CheckoutCache added in v0.0.19

type CheckoutCache interface {
	Get(key interface{}) (interface{}, bool)
	Add(key interface{}, b interface{}) bool
	Remove(key interface{}) (present bool)
}

type ContextCurried

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

func (*ContextCurried) Ctx

func (c *ContextCurried) Ctx() context.Context

type ContextCurriedAuth

type ContextCurriedAuth struct {
	ContextCurried
	transport.AuthMethod
}

func (*ContextCurriedAuth) Unwrap

type ContextCurriedSSHAuth

type ContextCurriedSSHAuth struct {
	ContextCurried
	ssh.AuthMethod
}

func (*ContextCurriedSSHAuth) Unwrap

type FileStat

type FileStat struct {
	Name string
	Mode uint32
	Hash string
}

type GitCheckout

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

func (*GitCheckout) AbsPath

func (g *GitCheckout) AbsPath() string

func (*GitCheckout) GetFile

func (g *GitCheckout) GetFile(ctx context.Context, branch string, path string) (io.WriterTo, error)

func (*GitCheckout) LsDir

func (g *GitCheckout) LsDir(ctx context.Context, dir string, branch string) (retStat []FileStat, retErr error)

func (*GitCheckout) LsFiles

func (g *GitCheckout) LsFiles(ctx context.Context, branch string) ([]string, error)

func (*GitCheckout) Refresh

func (g *GitCheckout) Refresh(ctx context.Context) error

func (*GitCheckout) RemoteExists

func (g *GitCheckout) RemoteExists(remote string) bool

func (*GitCheckout) RemoteURL

func (g *GitCheckout) RemoteURL() string

func (*GitCheckout) ZipContent

func (g *GitCheckout) ZipContent(ctx context.Context, into io.Writer, prefix string, branch string) (int, error)

type GitOperator

type GitOperator struct {
	Log    *log.Logger
	Tracer tracing.Tracing
}

func (*GitOperator) Clone

func (g *GitOperator) Clone(ctx context.Context, into string, remoteURL string, auth transport.AuthMethod) (*GitCheckout, error)

type LoggedClient

type LoggedClient struct {
	Wrapped transport.Transport
	Tracing tracing.Tracing
}

func (*LoggedClient) NewReceivePackSession

func (l *LoggedClient) NewReceivePackSession(endpoint *transport.Endpoint, authMethod transport.AuthMethod) (transport.ReceivePackSession, error)

func (*LoggedClient) NewUploadPackSession

func (l *LoggedClient) NewUploadPackSession(endpoint *transport.Endpoint, authMethod transport.AuthMethod) (transport.UploadPackSession, error)

Jump to

Keyboard shortcuts

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