transfer.go
1package lfs
2
3import (
4 "context"
5 "io"
6)
7
8// TransferBasic is the name of the Git LFS basic transfer protocol.
9const TransferBasic = "basic"
10
11// TransferAdapter represents an adapter for downloading/uploading LFS objects.
12type TransferAdapter interface {
13 Name() string
14 Download(ctx context.Context, p Pointer, l *Link) (io.ReadCloser, error)
15 Upload(ctx context.Context, p Pointer, r io.Reader, l *Link) error
16 Verify(ctx context.Context, p Pointer, l *Link) error
17}