Documentation ¶
Index ¶
- Variables
- func WrapGitProtocols(t tracing.Tracing)
- type CheckoutCache
- type ContextCurried
- type ContextCurriedAuth
- type ContextCurriedSSHAuth
- type FileStat
- type GitCheckout
- func (g *GitCheckout) AbsPath() string
- func (g *GitCheckout) GetFile(ctx context.Context, branch string, path string) (io.WriterTo, error)
- func (g *GitCheckout) LsDir(ctx context.Context, dir string, branch string) (retStat []FileStat, retErr error)
- func (g *GitCheckout) LsFiles(ctx context.Context, branch string) ([]string, error)
- func (g *GitCheckout) Refresh(ctx context.Context) error
- func (g *GitCheckout) RemoteExists(remote string) bool
- func (g *GitCheckout) RemoteURL() string
- func (g *GitCheckout) ZipContent(ctx context.Context, into io.Writer, prefix string, branch string) (int, error)
- type GitOperator
- type LoggedClient
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnknownBranch = errors.New("unknown branch")
Functions ¶
func WrapGitProtocols ¶
Types ¶
type CheckoutCache ¶ added in v0.0.19
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 ¶
func (c *ContextCurriedAuth) Unwrap() transport.AuthMethod
type ContextCurriedSSHAuth ¶
type ContextCurriedSSHAuth struct { ContextCurried ssh.AuthMethod }
func (*ContextCurriedSSHAuth) Unwrap ¶
func (c *ContextCurriedSSHAuth) Unwrap() transport.AuthMethod
type GitCheckout ¶
type GitCheckout struct {
// contains filtered or unexported fields
}
func (*GitCheckout) AbsPath ¶
func (g *GitCheckout) AbsPath() string
func (*GitCheckout) RemoteExists ¶
func (g *GitCheckout) RemoteExists(remote string) bool
func (*GitCheckout) RemoteURL ¶
func (g *GitCheckout) RemoteURL() string
type GitOperator ¶
func (*GitOperator) Clone ¶
func (g *GitOperator) Clone(ctx context.Context, into string, remoteURL string, auth transport.AuthMethod) (*GitCheckout, error)
type LoggedClient ¶
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)
Click to show internal directories.
Click to hide internal directories.