lfstransfer

package
v14.35.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Overview

Package lfstransfer wraps https://github.com/charmbracelet/git-lfs-transfer logic

Index

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
}

func (*Command) Execute

func (c *Command) Execute(ctx context.Context) (context.Context, error)

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) Batch

func (b *GitlabBackend) Batch(op string, pointers []transfer.BatchItem, args transfer.Args) ([]transfer.BatchItem, error)

func (*GitlabBackend) Download

func (b *GitlabBackend) Download(oid string, args transfer.Args) (fs.File, error)

func (*GitlabBackend) FinishUpload

func (b *GitlabBackend) FinishUpload(state io.Closer, args transfer.Args) error

func (*GitlabBackend) LockBackend

func (b *GitlabBackend) LockBackend(args transfer.Args) transfer.LockBackend

func (*GitlabBackend) StartUpload

func (b *GitlabBackend) StartUpload(oid string, r io.Reader, args transfer.Args) (io.Closer, error)

func (*GitlabBackend) Verify

func (b *GitlabBackend) Verify(oid string, args transfer.Args) (transfer.Status, error)

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

Jump to

Keyboard shortcuts

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