Documentation ¶
Overview ¶
Package lfstransfer wraps https://github.com/charmbracelet/git-lfs-transfer logic
Index ¶
- type Command
- type GitlabAuthentication
- type GitlabBackend
- func (b *GitlabBackend) Batch(op string, pointers []transfer.BatchItem, args transfer.Args) ([]transfer.BatchItem, error)
- func (b *GitlabBackend) Download(oid string, args transfer.Args) (io.ReadCloser, int64, error)
- func (b *GitlabBackend) LockBackend(args transfer.Args) transfer.LockBackend
- func (b *GitlabBackend) Upload(oid string, _ int64, r io.Reader, args transfer.Args) error
- func (b *GitlabBackend) Verify(_ string, _ int64, _ transfer.Args) (transfer.Status, error)
- type WrappedLoggerForGitLFSTransfer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct { Config *config.Config Args *commandargs.Shell ReadWriter *readwriter.ReadWriter }
type GitlabAuthentication ¶
type GitlabAuthentication struct {
// contains filtered or unexported fields
}
type GitlabBackend ¶
type GitlabBackend struct {
// contains filtered or unexported fields
}
func NewGitlabBackend ¶
func NewGitlabBackend(ctx context.Context, config *config.Config, args *commandargs.Shell, auth *GitlabAuthentication) (*GitlabBackend, error)
func (*GitlabBackend) Download ¶
func (b *GitlabBackend) Download(oid string, args transfer.Args) (io.ReadCloser, int64, error)
func (*GitlabBackend) LockBackend ¶
func (b *GitlabBackend) LockBackend(args transfer.Args) transfer.LockBackend
type WrappedLoggerForGitLFSTransfer ¶
type WrappedLoggerForGitLFSTransfer struct {
// contains filtered or unexported fields
}
WrappedLoggerForGitLFSTransfer is responsible for creating a compatible logger for github.com/charmbracelet/git-lfs-transfer
func NewWrappedLoggerForGitLFSTransfer ¶
func NewWrappedLoggerForGitLFSTransfer(ctx context.Context) *WrappedLoggerForGitLFSTransfer
NewWrappedLoggerForGitLFSTransfer returns a new WrappedLoggerForGitLFSTransfer passing through context.Context
func (*WrappedLoggerForGitLFSTransfer) Log ¶
func (l *WrappedLoggerForGitLFSTransfer) Log(msg string, args ...interface{})
Log allows logging in github.com/charmbracelet/git-lfs-transfer to take place using gitlab.com/gitlab-org/labkit/log
Click to show internal directories.
Click to hide internal directories.