Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CacheRefMetadata ¶ added in v0.19.3
type CacheRefMetadata struct {
bkcache.RefMetadata
}
type CachedChange ¶ added in v0.19.3
type CachedChange = cache.Result[string, *ChangeWithStat]
type ChangeFunc ¶ added in v0.19.3
type ChangeFunc func(kind ChangeKind, path string, lowerStat, upperStat *types.Stat) error
type ChangeKind ¶ added in v0.19.3
type ChangeKind = fsutil.ChangeKind
const ( ChangeKindAdd ChangeKind = fsutil.ChangeKindAdd ChangeKindModify ChangeKind = fsutil.ChangeKindModify ChangeKindDelete ChangeKind = fsutil.ChangeKindDelete ChangeKindNone ChangeKind = fsutil.ChangeKindDelete + 1 )
type ChangeWithStat ¶ added in v0.19.3
type ChangeWithStat struct {
// contains filtered or unexported fields
}
type ErrConflict ¶ added in v0.19.3
func (*ErrConflict) Error ¶ added in v0.19.3
func (e *ErrConflict) Error() string
type FileSyncer ¶ added in v0.19.3
type FileSyncer struct {
// contains filtered or unexported fields
}
func NewFileSyncer ¶ added in v0.19.3
func NewFileSyncer(opt FileSyncerOpt) *FileSyncer
func (*FileSyncer) Snapshot ¶ added in v0.19.3
func (ls *FileSyncer) Snapshot(ctx context.Context, session session.Group, sm *session.Manager, clientPath string, opts SnapshotOpts) (bkcache.ImmutableRef, error)
type FileSyncerOpt ¶ added in v0.19.3
type HashedStatInfo ¶ added in v0.19.3
type HashedStatInfo struct {
StatInfo
// contains filtered or unexported fields
}
func (*HashedStatInfo) Digest ¶ added in v0.19.3
func (s *HashedStatInfo) Digest() digest.Digest
type SnapshotOpts ¶ added in v0.19.3
type SnapshotOpts struct {
IncludePatterns []string
ExcludePatterns []string
GitIgnore bool
CacheBuster string
// If set, the snapshot will be relative that path.
// This is required when `GitIgnore` is set so we don't returns
// the whole git repo but simply apply .gitignore rules on that path.
RelativePath string
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.