Documentation
¶
Index ¶
- Constants
- func SyncRepo(fs *RepoFs, done chan int) error
- type CountWriter
- type FileSyncMode
- type LocalFs
- type RepoFs
- func (fs *RepoFs) CheckCommit() error
- func (fs *RepoFs) CloseCommit() error
- func (fs *RepoFs) Delete(path string) error
- func (fs *RepoFs) Exists(path string) bool
- func (fs *RepoFs) GetCommitId() string
- func (fs *RepoFs) GetLocalFilePath(fileName string) string
- func (fs *RepoFs) GetRepoId() string
- func (fs *RepoFs) GetWorkingDir() string
- func (fs *RepoFs) ListFiles(rel_path string, r bool) ([]os.FileInfo, error)
- func (fs *RepoFs) Mount() error
- func (fs *RepoFs) PrintFileList(subpath string) error
- func (fs *RepoFs) PushDir(subpath string) (size int64, fnError error)
- func (fs *RepoFs) PushModelDir() (size int64, fnError error)
- func (fs *RepoFs) PushOutputDir() (size int64, fnError error)
- func (fs *RepoFs) Reader(path string, offset uint64, size uint64) (io.ReadCloser, error)
- func (fs *RepoFs) RecordSyncTime(last_mod time.Time)
- func (fs *RepoFs) Writer(path string) (io.WriteCloser, error)
- type SyncOpLimiter
Constants ¶
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CountWriter ¶
type CountWriter struct {
// contains filtered or unexported fields
}
type FileSyncMode ¶
type FileSyncMode string
const ( SyncModeD FileSyncMode = "DIRECT" SyncModeTS FileSyncMode = "THROUGH_SERVER" )
type RepoFs ¶
type RepoFs struct {
// contains filtered or unexported fields
}
func NewRepoFs ¶
func NewRepoFs(basePath string, concurrency int, repoName string, branchName string, commitId string, wc *api_client.WorkerClient) *RepoFs
func (*RepoFs) CheckCommit ¶
func (*RepoFs) CloseCommit ¶
func (*RepoFs) GetCommitId ¶
func (*RepoFs) GetLocalFilePath ¶
func (*RepoFs) GetWorkingDir ¶
func (*RepoFs) PrintFileList ¶
func (*RepoFs) PushModelDir ¶
func (*RepoFs) PushOutputDir ¶
Description: Upload files from out directory to commit map
func (*RepoFs) RecordSyncTime ¶
type SyncOpLimiter ¶
type SyncOpLimiter interface { Ask() Release() Wait() }
func NewOpLimiter ¶
func NewOpLimiter(ops int) SyncOpLimiter
Source Files
¶
Click to show internal directories.
Click to hide internal directories.