Documentation
¶
Index ¶
- type Client
- func (c *Client) Download(ctx context.Context, in *Download) error
- func (c *Client) FindCommit(ctx context.Context, in *FindCommit) (*Commit, error)
- func (c *Client) ListTags(ctx context.Context, in *ListTags) (allTags []*Tag, err error)
- func (c *Client) TagRevision(ctx context.Context, in *TagRevision) error
- func (c *Client) Upload(ctx context.Context, in *Upload) error
- type Commit
- type Download
- type FindCommit
- type ListTags
- type Tag
- type TagRevision
- type Upload
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) FindCommit ¶ added in v0.1.0
FindCommit finds a commit by a revision
func (*Client) TagRevision ¶ added in v0.1.2
func (c *Client) TagRevision(ctx context.Context, in *TagRevision) error
TagRevision tags a revision
type Download ¶
type Download struct { From repos.Repo To repos.FS Revision string // MaxCacheSize is the maximum size of the LRU for caching packs (default: 512MiB) MaxCacheSize string // LimitDownload is the maximum download speed per second (default: unlimited) LimitDownload string // Concurrency is the number of concurrent downloads (default: num cpus * 2) Concurrency *int // contains filtered or unexported fields }
type FindCommit ¶ added in v0.1.0
type TagRevision ¶ added in v0.1.2
type Upload ¶
type Upload struct { From fs.FS To repos.Repo Cache repos.FS User string Tags []string Ignore func(path string) bool // MaxPackSize is the maximum pack size (default: 32MiB) MaxPackSize string // MinChunkSize is the minimum chunk size (default: 512KiB) MinChunkSize string // MaxChunkSize is the maximum chunk size (default: 8MiB) MaxChunkSize string // LimitUpload is the maximum upload rate (default: unlimited) LimitUpload string // Concurrency is the number of files to upload concurrently (default: num cpus * 2) Concurrency *int // contains filtered or unexported fields }
Directories
¶
Path | Synopsis |
---|---|
cmd
|
|
internal
|
|
humanize
Package humanize Based on: https://github.com/dustin/go-humanize/blob/master/bytes.go
|
Package humanize Based on: https://github.com/dustin/go-humanize/blob/master/bytes.go |
singleflight
Package singleflight provides a duplicate function call suppression mechanism.
|
Package singleflight provides a duplicate function call suppression mechanism. |
Click to show internal directories.
Click to hide internal directories.