mirror of
https://github.com/containers/skopeo.git
synced 2025-09-15 22:39:41 +00:00
Bump containers/storage and containers/image
Re-vendor containers/storage to current revision 0d32dfce498e06c132c60dac945081bf44c22464, and containers/image to current revision c8bcd6aa11c62637c5a7da1420f43dd6a15f0e8d. Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
This commit is contained in:
11
vendor/github.com/containers/storage/store.go
generated
vendored
11
vendor/github.com/containers/storage/store.go
generated
vendored
@@ -434,6 +434,8 @@ type ImageOptions struct {
|
||||
// CreationDate, if not zero, will override the default behavior of marking the image as having been
|
||||
// created when CreateImage() was called, recording CreationDate instead.
|
||||
CreationDate time.Time
|
||||
// Digest is a hard-coded digest value that we can use to look up the image. It is optional.
|
||||
Digest digest.Digest
|
||||
}
|
||||
|
||||
// ContainerOptions is used for passing options to a Store's CreateContainer() method.
|
||||
@@ -491,11 +493,6 @@ func GetStore(options StoreOptions) (Store, error) {
|
||||
if err := os.MkdirAll(options.RunRoot, 0700); err != nil && !os.IsExist(err) {
|
||||
return nil, err
|
||||
}
|
||||
for _, subdir := range []string{} {
|
||||
if err := os.MkdirAll(filepath.Join(options.RunRoot, subdir), 0700); err != nil && !os.IsExist(err) {
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
if err := os.MkdirAll(options.GraphRoot, 0700); err != nil && !os.IsExist(err) {
|
||||
return nil, err
|
||||
}
|
||||
@@ -838,11 +835,11 @@ func (s *store) CreateImage(id string, names []string, layer, metadata string, o
|
||||
}
|
||||
|
||||
creationDate := time.Now().UTC()
|
||||
if options != nil {
|
||||
if options != nil && !options.CreationDate.IsZero() {
|
||||
creationDate = options.CreationDate
|
||||
}
|
||||
|
||||
return ristore.Create(id, names, layer, metadata, creationDate)
|
||||
return ristore.Create(id, names, layer, metadata, creationDate, options.Digest)
|
||||
}
|
||||
|
||||
func (s *store) CreateContainer(id string, names []string, image, layer, metadata string, options *ContainerOptions) (*Container, error) {
|
||||
|
Reference in New Issue
Block a user