Documentation ¶
Index ¶
- Variables
- func TestBuild(t *testing.T, scope Scope, shuffleDir fsys.ShuffleDir, wg *pr2.WaitGroup)
- func TestBuildMerge(t *testing.T, scope Scope)
- func TestFileFS(t *testing.T, build Build, iterDisk IterDiskFile, newFileFS filebase.NewFileFS, ...)
- func TestIterDiskCancelWaitGroup(t *testing.T, wg *pr2.WaitGroup, iterDisk IterDiskFile)
- func TestIterIgnore(t *testing.T, scope Scope)
- func TestPack(t *testing.T, scope Scope)
- func TestPushFile(t *testing.T, build Build, iterDisk IterDiskFile, newMem storemem.New, ...)
- func TestSave(t *testing.T, walk Walk, scope Scope)
- func TestSymlink(t *testing.T, build Build, iterDiskfile IterDiskFile, wg *pr2.WaitGroup)
- func TestUpdate(t *testing.T, newKV storekv.New, newMem storemem.New, scope Scope, ...)
- func TestZip(t *testing.T, scope Scope)
- func TestZipFile(t *testing.T, zip Zip, iterDisk IterDiskFile, unzip Unzip, equal Equal, ...)
- type Build
- type BuildOption
- type ChunkThreshold
- type Content
- type Def
- func (Def) Build(toContents ToContents, smallFileThreshold SmallFileThreshold, ...) Build
- func (_ Def) Configs(testing sys.Testing) (packThreshold PackThreshold, smallFileThreshold SmallFileThreshold)
- func (_ Def) DefaultIgnore() Ignore
- func (Def) Equal(scope Scope, newHashState key.NewHashState) (equal Equal)
- func (Def) IterDiskFile(ignore Ignore, isRestrictedPath fsys.IsRestrictedPath) (iter IterDiskFile)
- func (Def) IterFile(fetch entity.Fetch, ignore Ignore) (IterFile, IterKey)
- func (_ Def) IterVirtual(ignore Ignore) IterVirtual
- func (_ Def) Reverse() Reverse
- func (_ Def) Unzip() Unzip
- func (_ Def) Update(zip Zip, unzip Unzip, scope Scope) Update
- func (_ Def) Walk() (walk Walk)
- func (_ Def) Zip(scope Scope) Zip
- type DiskFile
- func (d DiskFile) GetDevice(_ Scope) uint64
- func (d DiskFile) GetIsDir(_ Scope) bool
- func (d DiskFile) GetModTime(_ Scope) time.Time
- func (d DiskFile) GetMode(_ Scope) os.FileMode
- func (d DiskFile) GetName(_ Scope) string
- func (d DiskFile) GetSize(_ Scope) int64
- func (d DiskFile) WithReader(scope Scope, fn func(io.Reader) error) (err error)
- type Equal
- type File
- type FileInfo
- type FileInfoThunk
- type FileLike
- type Ignore
- type IterDiskFile
- type IterDiskFileOption
- type IterFile
- type IterKey
- type IterVirtual
- type IterVirtualOption
- type Key
- type Limit
- type MaxChunkSize
- type NewContentReader
- type NoSubsSort
- type Pack
- type PackThreshold
- type PackThunk
- type Partition
- type PredictExpandFileInfoThunk
- type Reverse
- type Scope
- type SingleDevice
- type Sink
- type SmallFileThreshold
- type Src
- type Store
- type Sub
- type Subs
- type TapAddFileInfo
- type TapBuildFile
- type TapDeleteFileInfo
- type TapModifyFileInfo
- type TapReadFile
- type ToContents
- type Unzip
- type Update
- type UpdateOption
- type UseGitIgnore
- type Virtual
- func (v Virtual) GetDevice(_ Scope) uint64
- func (v Virtual) GetIsDir(_ Scope) bool
- func (v Virtual) GetModTime(_ Scope) time.Time
- func (v Virtual) GetMode(_ Scope) os.FileMode
- func (v Virtual) GetName(_ Scope) string
- func (v Virtual) GetSize(_ Scope) int64
- func (v Virtual) WithReader(scope Scope, fn func(io.Reader) error) error
- type Walk
- type WalkFunc
- type WriteContents
- type Zip
- type ZipItem
- type ZipOption
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Copy = pp.Copy Seq = pp.Seq PathSeparator = fsys.PathSeparator Select = index.Select MatchEntry = index.MatchEntry Count = index.Count Tap = index.Tap Desc = index.Desc Asc = index.Asc IdxType = entity.IdxType NSSummary = entity.NSSummary NSEntity = entity.NSEntity IdxReferTo = entity.IdxReferTo )
Functions ¶
func TestBuildMerge ¶
func TestFileFS ¶
func TestFileFS( t *testing.T, build Build, iterDisk IterDiskFile, newFileFS filebase.NewFileFS, shuffleDir fsys.ShuffleDir, wg *pr2.WaitGroup, )
func TestIterDiskCancelWaitGroup ¶
func TestIterDiskCancelWaitGroup( t *testing.T, wg *pr2.WaitGroup, iterDisk IterDiskFile, )
func TestIterIgnore ¶
func TestPushFile ¶
func TestPushFile( t *testing.T, build Build, iterDisk IterDiskFile, newMem storemem.New, push entity.Push, save entity.SaveEntity, newKV storekv.New, indexManager index.IndexManager, scope Scope, iterFile IterFile, shuffleDir fsys.ShuffleDir, wg *pr2.WaitGroup, )
func TestSymlink ¶
func TestUpdate ¶
func TestZipFile ¶
Types ¶
type BuildOption ¶
type BuildOption interface {
IsBuildOption()
}
type ChunkThreshold ¶
type ChunkThreshold = filebase.ChunkThreshold
type Def ¶
type Def struct{}
func (Def) Build ¶
func (Def) Build( toContents ToContents, smallFileThreshold SmallFileThreshold, fetchEntity entity.Fetch, saveEntity entity.SaveEntity, packThreshold PackThreshold, parallel sys.Parallel, scope Scope, save entity.SaveEntity, ) Build
func (Def) Configs ¶
func (_ Def) Configs( testing sys.Testing, ) ( packThreshold PackThreshold, smallFileThreshold SmallFileThreshold, )
func (Def) DefaultIgnore ¶
func (Def) IterDiskFile ¶
func (Def) IterDiskFile( ignore Ignore, isRestrictedPath fsys.IsRestrictedPath, ) (iter IterDiskFile)
func (Def) IterVirtual ¶
func (_ Def) IterVirtual( ignore Ignore, ) IterVirtual
type FileInfoThunk ¶
type IterDiskFile ¶
type IterDiskFileOption ¶
type IterDiskFileOption interface {
IsIterDiskFileOption()
}
type IterVirtual ¶
type IterVirtual func(file Virtual, cont Src, options ...IterVirtualOption) Src
type IterVirtualOption ¶
type IterVirtualOption interface {
IsIterVirtualOption()
}
type MaxChunkSize ¶
type MaxChunkSize = filebase.MaxChunkSize
type NewContentReader ¶
type NewContentReader = filebase.NewContentReader
type NoSubsSort ¶
type NoSubsSort bool
func (NoSubsSort) IsIterVirtualOption ¶
func (_ NoSubsSort) IsIterVirtualOption()
type PackThreshold ¶
type PackThreshold int
type PredictExpandFileInfoThunk ¶
type PredictExpandFileInfoThunk func(_, _ FileInfoThunk) (bool, error)
func (PredictExpandFileInfoThunk) IsZipOption ¶
func (_ PredictExpandFileInfoThunk) IsZipOption()
type SingleDevice ¶
type SingleDevice bool
func (SingleDevice) IsIterDiskFileOption ¶
func (_ SingleDevice) IsIterDiskFileOption()
type SmallFileThreshold ¶
type SmallFileThreshold int64
type Src ¶
func ExpandFileInfoThunk ¶
type TapAddFileInfo ¶
type TapAddFileInfo func(FileInfo)
func (TapAddFileInfo) IsUpdateOption ¶
func (_ TapAddFileInfo) IsUpdateOption()
type TapBuildFile ¶
func (TapBuildFile) IsBuildOption ¶
func (_ TapBuildFile) IsBuildOption()
type TapDeleteFileInfo ¶
type TapDeleteFileInfo func(FileInfo)
func (TapDeleteFileInfo) IsUpdateOption ¶
func (_ TapDeleteFileInfo) IsUpdateOption()
type TapModifyFileInfo ¶
func (TapModifyFileInfo) IsUpdateOption ¶
func (_ TapModifyFileInfo) IsUpdateOption()
type TapReadFile ¶
type TapReadFile func(FileInfo)
func (TapReadFile) IsBuildOption ¶
func (_ TapReadFile) IsBuildOption()
type ToContents ¶
type ToContents = filebase.ToContents
type UpdateOption ¶
type UpdateOption interface {
IsUpdateOption()
}
type UseGitIgnore ¶
type UseGitIgnore bool
func (UseGitIgnore) IsIterDiskFileOption ¶
func (_ UseGitIgnore) IsIterDiskFileOption()
type Virtual ¶
type WriteContents ¶
type WriteContents = filebase.WriteContents
Source Files ¶
Click to show internal directories.
Click to hide internal directories.