Documentation
¶
Index ¶
- Constants
- Variables
- type Cat
- type Client
- func (c *Client) Cat(ctx context.Context, in *Cat) error
- 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) (revision string, err error)
- type Commit
- type Download
- type FindCommit
- type ListTags
- type Tag
- type TagRevision
- type Upload
Constants ¶
View Source
const DefaultMaxCacheSize = 512 * miB // 512 MiB
DefaultMaxCacheSize is the default maximum size of the LRU for caching packs
Variables ¶
View Source
var DefaultConcurrency = runtime.NumCPU() * 2
DefaultConcurrency returns the default number of concurrent downloads
Functions ¶
This section is empty.
Types ¶
type Cat ¶ added in v0.2.2
type Cat struct {
From repos.Repo
To io.Writer
Revision string
Path 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 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 repos.ReadFS
To repos.Repo
Cache repos.FS
User string
Tags []string
Paths []string
Ignore func(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
|
|
|
chunky
command
|
|
|
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.