Derek McGowan
a80606bc2d
Move plugin type definitions to containerd plugins package
...
The plugins packages defines the plugins used by containerd.
Move all the types and properties to this package.
Signed-off-by: Derek McGowan <derek@mcg.dev >
2023-10-12 20:52:56 -07:00
Derek McGowan
508aa3a1ef
Move to use github.com/containerd/log
...
Add github.com/containerd/log to go.mod
Signed-off-by: Derek McGowan <derek@mcg.dev >
2023-09-22 07:53:23 -07:00
Paul "TBBle" Hampson
ac30eabbdc
Fix misspelling of 'Native' as 'Naive'
...
Signed-off-by: Paul "TBBle" Hampson <Paul.Hampson@Pobox.com >
2023-03-31 06:15:18 -07:00
iyear
9df5a1714d
snapshots: refactor metastore transaction
...
Signed-off-by: Junyu Liu <ljyngup@gmail.com >
2023-01-05 15:53:23 +08:00
Wei Fu
6b7e237fc7
chore: use go fix to cleanup old +build buildtag
...
Signed-off-by: Wei Fu <fuweid89@gmail.com >
2022-12-29 14:25:14 +08:00
Tonis Tiigi
fe426227d4
native: fix deadlock from leaving transactions open
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2022-03-23 15:48:42 -07:00
haoyun
bbe46b8c43
feat: replace github.com/pkg/errors to errors
...
Signed-off-by: haoyun <yun.hao@daocloud.io >
Co-authored-by: zounengren <zouyee1989@gmail.com >
2022-01-07 10:27:03 +08:00
haoyun
c0d07094be
feat: Errorf usage
...
Signed-off-by: haoyun <yun.hao@daocloud.io >
2021-12-13 14:31:53 +08:00
Eng Zer Jun
50da673592
refactor: move from io/ioutil to io and os package
...
The io/ioutil package has been deprecated as of Go 1.16, see
https://golang.org/doc/go1.16#ioutil . This commit replaces the existing
io/ioutil functions with their new definitions in io and os packages.
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com >
2021-09-21 09:50:38 +08:00
Akihiro Suda
d3aa7ee9f0
Run go fmt with Go 1.17
...
The new `go fmt` adds `//go:build` lines (https://golang.org/doc/go1.17#tools ).
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp >
2021-08-22 09:31:50 +09:00
Derek McGowan
6f027e38a8
Remove redundant build tags
...
Remove build tags which are already implied by the name of the file.
Ensures build tags are used consistently
Signed-off-by: Derek McGowan <derek@mcg.dev >
2021-08-05 22:27:46 -07:00
Samuel Karp
b624486c84
native: support for FreeBSD
...
Signed-off-by: Samuel Karp <me@samuelkarp.com >
2020-12-22 21:26:04 -08:00
Jian Zeng
c50ff694f0
refactor(native): separate init from implementation
...
Part of #4513
Signed-off-by: Jian Zeng <anonymousknight96@gmail.com >
2020-09-03 19:58:31 +08:00
Jian Zeng
98b0b2a7c6
feat: make native root_path configurable
...
Part of #4514
Signed-off-by: Jian Zeng <anonymousknight96@gmail.com >
2020-09-03 19:58:05 +08:00
Derek McGowan
66aa1d3ef6
Add snapshot walk implementations
...
Temporarily remove zfs and aufs until interface update
Signed-off-by: Derek McGowan <derek@mcgstyle.net >
2019-10-24 11:11:22 -07:00
bpopovschi
e8c14c07c6
Added filters to snapshots API
...
Signed-off-by: bpopovschi <zyqsempai@mail.ru >
2019-10-24 11:11:22 -07:00
Akihiro Suda
d52cbc19be
snapshots/native: ignore xattr errors during CopyDir
...
`secuity.*` xattrs cannot be copied in most cases
For moby/buildkit#1189
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp >
2019-10-13 01:53:35 +09:00
Ace-Tang
7faaa64cf9
fix: miss remove temp file in createSnapshot
...
```
func foo() error {
defer func() {
if err != nil {
...
}
}()
...
}
```
use defer func to do something when err not nil, if foo() not use
named error, `err != nil` can not catch all errors, since when err
re-defined in if condition, it is a new variable.
Signed-off-by: Ace-Tang <aceapril@126.com >
2018-12-24 23:01:56 +08:00
Michael Wan
92243ff72a
bugfix: updatedAt timestamp file may be empty
...
Signed-off-by: Michael Wan <zirenwan@gmail.com >
2018-08-29 21:49:40 -04:00
Akihiro Suda
7461739b58
native: set '/' permission to 0755
...
Unlike other snapshotters, the permission was previously set to 0700
unexpectedly.
Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp >
2018-07-23 16:14:55 +09:00
Michael Crosby
009ba4d797
Move testutils to pkg
...
Signed-off-by: Michael Crosby <crosbymichael@gmail.com >
2018-05-22 17:08:38 -04:00
Akihiro Suda
83e35b3d3a
enable native (formerly naive) snapshotter by default
...
Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp >
2018-04-02 13:29:19 +09:00