mirror of
https://github.com/containers/skopeo.git
synced 2025-09-22 02:18:41 +00:00
Update containers/storage to v1.12.2
This commit simply bumps containers/storage to the latest version to unblock the containers/image integration test runs. Signed-off-by: Sascha Grunert <sgrunert@suse.com>
This commit is contained in:
15
vendor/github.com/containers/storage/store.go
generated
vendored
15
vendor/github.com/containers/storage/store.go
generated
vendored
@@ -460,6 +460,9 @@ type Store interface {
|
||||
// Version returns version information, in the form of key-value pairs, from
|
||||
// the storage package.
|
||||
Version() ([][2]string, error)
|
||||
|
||||
// GetDigestLock returns digest-specific Locker.
|
||||
GetDigestLock(digest.Digest) (Locker, error)
|
||||
}
|
||||
|
||||
// IDMappingOptions are used for specifying how ID mapping should be set up for
|
||||
@@ -529,6 +532,7 @@ type store struct {
|
||||
imageStore ImageStore
|
||||
roImageStores []ROImageStore
|
||||
containerStore ContainerStore
|
||||
digestLockRoot string
|
||||
}
|
||||
|
||||
// GetStore attempts to find an already-created Store object matching the
|
||||
@@ -698,9 +702,20 @@ func (s *store) load() error {
|
||||
return err
|
||||
}
|
||||
s.containerStore = rcs
|
||||
|
||||
s.digestLockRoot = filepath.Join(s.runRoot, driverPrefix+"locks")
|
||||
if err := os.MkdirAll(s.digestLockRoot, 0700); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// GetDigestLock returns a digest-specific Locker.
|
||||
func (s *store) GetDigestLock(d digest.Digest) (Locker, error) {
|
||||
return GetLockfile(filepath.Join(s.digestLockRoot, d.String()))
|
||||
}
|
||||
|
||||
func (s *store) getGraphDriver() (drivers.Driver, error) {
|
||||
if s.graphDriver != nil {
|
||||
return s.graphDriver, nil
|
||||
|
Reference in New Issue
Block a user