Documentation ¶
Index ¶
- func CloneOptionSetAccessKey(accessKey string) func(optns *cloneOptions)
- func CloneOptionSetDownloadProgress(progressDownloading func(maxTicks int64)) func(optns *cloneOptions)
- func CloneOptionSetEndpoint(endpoint string) func(optns *cloneOptions)
- func CloneOptionSetLeafSize(leafSize uint32) func(optns *cloneOptions)
- func CloneOptionSetMaxRepoSize(maxRepoSize uint64) func(optns *cloneOptions)
- func CloneOptionSetProcessingProgress(progressProcessing func(maxTicks int64)) func(optns *cloneOptions)
- func CloneOptionSetSecretKey(secretKey string) func(optns *cloneOptions)
- func InitOptionSetLeafSize(leafSize uint32) func(optns *initOptions)
- func InitOptionSetMaxRepoSize(maxRepoSize uint64) func(optns *initOptions)
- func ListCommitOptionSetOnlySnapshots(onlySnapshots bool) func(optns *listCommitOptions)
- func PushBlobDeduped(hash string, size *uint64, client backend.Backend) (newlyUploaded bool, err error)
- func RemoteOptionSetEndpoint(endpoint string) func(optns *remoteOptions)
- func SnapshotListOptionSetJsonOutput(jsonOutput bool) func(optns *snapshotListOptions)
- func SnapshotListOptionSetPresignedUrls(presignedUrls bool) func(optns *snapshotListOptions)
- func SnapshotListOptionSetShowHash(showHash bool) func(optns *snapshotListOptions)
- type CloneOptions
- type Commit
- type InitOptions
- type ListCommitOptions
- type Remote
- type RemoteOptions
- type Repository
- func (repo Repository) Add(r io.Reader) (string, bool, error)
- func (repo Repository) Commit(message string) (hash string, empty bool, err error)
- func (repo Repository) CommitToBranch(message, branch string) (hash string, empty bool, err error)
- func (repo Repository) Get(hash string) (io.Reader, error)
- func (repo Repository) List(prefix string) (<-chan string, error)
- func (repo Repository) ListCommits(branch string, options ...ListCommitOptions) (<-chan Commit, error)
- func (repo Repository) MakeUnique(prefix string) (string, error)
- func (repo Repository) Pull(progress func(maxTicks int64)) error
- func (repo Repository) Push(hydrated bool, progress func(maxTicks int64)) error
- func (repo Repository) RemoteAdd(name, resource, accessKey, secretKey string, options ...RemoteOptions) error
- func (repo Repository) RemotesShow() ([]Remote, error)
- func (repo Repository) SnapshotCheckout(path, commit string, dedupe bool) error
- func (repo Repository) SnapshotCreate(path, message string) (hash string, empty bool, err error)
- func (repo Repository) SnapshotList(commit string, options ...SnapshotListOptions) error
- func (repo Repository) SnapshotStatus(path, commit string) error
- func (repo Repository) Statistics() (*Statistics, error)
- func (repo Repository) Status() (<-chan string, error)
- type SnapshotListOptions
- type Statistics
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloneOptionSetAccessKey ¶
func CloneOptionSetAccessKey(accessKey string) func(optns *cloneOptions)
func CloneOptionSetDownloadProgress ¶
func CloneOptionSetDownloadProgress(progressDownloading func(maxTicks int64)) func(optns *cloneOptions)
func CloneOptionSetEndpoint ¶
func CloneOptionSetEndpoint(endpoint string) func(optns *cloneOptions)
func CloneOptionSetLeafSize ¶
func CloneOptionSetLeafSize(leafSize uint32) func(optns *cloneOptions)
func CloneOptionSetMaxRepoSize ¶
func CloneOptionSetMaxRepoSize(maxRepoSize uint64) func(optns *cloneOptions)
func CloneOptionSetProcessingProgress ¶
func CloneOptionSetProcessingProgress(progressProcessing func(maxTicks int64)) func(optns *cloneOptions)
func CloneOptionSetSecretKey ¶
func CloneOptionSetSecretKey(secretKey string) func(optns *cloneOptions)
func InitOptionSetLeafSize ¶
func InitOptionSetLeafSize(leafSize uint32) func(optns *initOptions)
func InitOptionSetMaxRepoSize ¶
func InitOptionSetMaxRepoSize(maxRepoSize uint64) func(optns *initOptions)
func ListCommitOptionSetOnlySnapshots ¶
func ListCommitOptionSetOnlySnapshots(onlySnapshots bool) func(optns *listCommitOptions)
func PushBlobDeduped ¶
func PushBlobDeduped(hash string, size *uint64, client backend.Backend) (newlyUploaded bool, err error)
Push a blob to the back end store in deduplicated format
func RemoteOptionSetEndpoint ¶
func RemoteOptionSetEndpoint(endpoint string) func(optns *remoteOptions)
func SnapshotListOptionSetJsonOutput ¶
func SnapshotListOptionSetJsonOutput(jsonOutput bool) func(optns *snapshotListOptions)
func SnapshotListOptionSetPresignedUrls ¶
func SnapshotListOptionSetPresignedUrls(presignedUrls bool) func(optns *snapshotListOptions)
func SnapshotListOptionSetShowHash ¶
func SnapshotListOptionSetShowHash(showHash bool) func(optns *snapshotListOptions)
Types ¶
type CloneOptions ¶
type CloneOptions func(*cloneOptions)
type InitOptions ¶
type InitOptions func(*initOptions)
type ListCommitOptions ¶
type ListCommitOptions func(*listCommitOptions)
type RemoteOptions ¶
type RemoteOptions func(*remoteOptions)
type Repository ¶
type Repository struct {
Remotes []Remote
}
func Clone ¶
func Clone(url, path string, options ...CloneOptions) (*Repository, error)
Clone a remote repository
func InitRepository ¶
func InitRepository(path string, options ...InitOptions) (*Repository, error)
Initialize a new repository
func OpenRepository ¶
func OpenRepository(path string) (*Repository, error)
Open an existing repository
func (Repository) Commit ¶
func (repo Repository) Commit(message string) (hash string, empty bool, err error)
Perform a commit for the repository
func (Repository) CommitToBranch ¶
func (repo Repository) CommitToBranch(message, branch string) (hash string, empty bool, err error)
Perform a commit for the named branch of the repository
func (Repository) Get ¶
func (repo Repository) Get(hash string) (io.Reader, error)
Get a stream from the repository
func (Repository) List ¶
func (repo Repository) List(prefix string) (<-chan string, error)
List the contents of a repository
func (Repository) ListCommits ¶
func (repo Repository) ListCommits(branch string, options ...ListCommitOptions) (<-chan Commit, error)
List the commits for a repository
func (Repository) MakeUnique ¶
func (repo Repository) MakeUnique(prefix string) (string, error)
Get the full size unique hash for a given prefix. Return error in case none or multiple candidates are found
func (Repository) Pull ¶
func (repo Repository) Pull(progress func(maxTicks int64)) error
Pull updates for the repository
func (Repository) Push ¶
func (repo Repository) Push(hydrated bool, progress func(maxTicks int64)) error
Perform a push to the back end for the repository
func (Repository) RemoteAdd ¶
func (repo Repository) RemoteAdd(name, resource, accessKey, secretKey string, options ...RemoteOptions) error
func (Repository) RemotesShow ¶
func (repo Repository) RemotesShow() ([]Remote, error)
func (Repository) SnapshotCheckout ¶
func (repo Repository) SnapshotCheckout(path, commit string, dedupe bool) error
Checkout a snapshot for the repository
func (Repository) SnapshotCreate ¶
func (repo Repository) SnapshotCreate(path, message string) (hash string, empty bool, err error)
Create a snapshot for the repository
func (Repository) SnapshotList ¶
func (repo Repository) SnapshotList(commit string, options ...SnapshotListOptions) error
List a snapshot for the repository
func (Repository) SnapshotStatus ¶
func (repo Repository) SnapshotStatus(path, commit string) error
Show status for a snapshot of the repository
func (Repository) Statistics ¶
func (repo Repository) Statistics() (*Statistics, error)
Get statistics for the repository
func (Repository) Status ¶
func (repo Repository) Status() (<-chan string, error)
Get the list of changes for a repository
type SnapshotListOptions ¶
type SnapshotListOptions func(*snapshotListOptions)
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
internal
|
|
backend/acd
Backend connection to Amazon Cloud Drive
|
Backend connection to Amazon Cloud Drive |