Documentation ¶
Index ¶
- Constants
- func DirNameForRepo(repoName string) string
- type CountWriter
- type RepoFs
- func (fs *RepoFs) BranchName() (branchName string)
- func (fs *RepoFs) Clone() (*ws.Commit, error)
- func (fs *RepoFs) CommitId() (commitId string)
- func (fs *RepoFs) CreateRepoDir() error
- func (fs *RepoFs) GetLocalFilePath(fileName string) string
- func (fs *RepoFs) GetRepoParams() (repoName, branchName, commitId string)
- func (fs *RepoFs) GetWorkingDir() string
- func (fs *RepoFs) MakeFile(fpath string, f func(io.Writer) error) (int64, error)
- func (fs *RepoFs) PullObject(repoName, commitId, filePath string) (int64, error)
- func (fs *RepoFs) PushRepo() (commit *ws.Commit, fnError error)
- func (fs *RepoFs) RepoName() (repoName string)
- func (fs *RepoFs) SwitchBranch(name string) error
- type SyncOpLimiter
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func DirNameForRepo ¶
Types ¶
type CountWriter ¶
type CountWriter struct {
// contains filtered or unexported fields
}
customer writer to keep track of writes
type RepoFs ¶
type RepoFs struct {
// contains filtered or unexported fields
}
func (*RepoFs) BranchName ¶
func (*RepoFs) CreateRepoDir ¶
func (*RepoFs) GetLocalFilePath ¶
func (*RepoFs) GetRepoParams ¶
func (*RepoFs) GetWorkingDir ¶
func (*RepoFs) PullObject ¶
func (*RepoFs) SwitchBranch ¶
type SyncOpLimiter ¶
type SyncOpLimiter interface { Ask() Release() Wait() }
control parallel ops
func NewOpLimiter ¶
func NewOpLimiter(ops int) SyncOpLimiter
Click to show internal directories.
Click to hide internal directories.