Compare commits
1 Commits
22ba431f90
...
8f67a1e799
Author | SHA1 | Date |
---|---|---|
|
8f67a1e799 |
|
@ -1,7 +1,3 @@
|
||||||
clone:
|
|
||||||
git:
|
|
||||||
image: docker.io/a6543/test_git_plugin:latest
|
|
||||||
|
|
||||||
pipeline:
|
pipeline:
|
||||||
compliance:
|
compliance:
|
||||||
image: golang:1.17
|
image: golang:1.17
|
||||||
|
|
10
overlay.go
10
overlay.go
|
@ -98,3 +98,13 @@ func WithSub(sub string) Option {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// WithCaching sets a caching mode for an FS
|
||||||
|
// Caching avoids subsequent os.Stat to determine if a file exists on disk
|
||||||
|
// See bench.txt for differences in usage
|
||||||
|
func WithCaching(doCache bool) Option {
|
||||||
|
return func(x *FS) error {
|
||||||
|
x.doCache = doCache
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue