mirror of
https://github.com/containers/podman.git
synced 2025-12-10 15:47:46 +08:00
Bump c/storage v1.58.0, c/image v5.35.0, c/common v0.63.0
Bump: c/storage v1.58.0 c/image v5.35.0 c/common v0.63.0 In preparation for Podman v5.5.0 Signed-off-by: tomsweeneyredhat <tsweeney@redhat.com>
This commit is contained in:
6
vendor/github.com/containers/storage/images.go
generated
vendored
6
vendor/github.com/containers/storage/images.go
generated
vendored
@@ -93,7 +93,7 @@ type Image struct {
|
||||
// ReadOnly is true if this image resides in a read-only layer store.
|
||||
ReadOnly bool `json:"-"`
|
||||
|
||||
Flags map[string]interface{} `json:"flags,omitempty"`
|
||||
Flags map[string]any `json:"flags,omitempty"`
|
||||
}
|
||||
|
||||
// roImageStore provides bookkeeping for information about Images.
|
||||
@@ -675,7 +675,7 @@ func (r *imageStore) ClearFlag(id string, flag string) error {
|
||||
}
|
||||
|
||||
// Requires startWriting.
|
||||
func (r *imageStore) SetFlag(id string, flag string, value interface{}) error {
|
||||
func (r *imageStore) SetFlag(id string, flag string, value any) error {
|
||||
if !r.lockfile.IsReadWrite() {
|
||||
return fmt.Errorf("not allowed to set flags on images at %q: %w", r.imagespath(), ErrStoreIsReadOnly)
|
||||
}
|
||||
@@ -684,7 +684,7 @@ func (r *imageStore) SetFlag(id string, flag string, value interface{}) error {
|
||||
return fmt.Errorf("locating image with ID %q: %w", id, ErrImageUnknown)
|
||||
}
|
||||
if image.Flags == nil {
|
||||
image.Flags = make(map[string]interface{})
|
||||
image.Flags = make(map[string]any)
|
||||
}
|
||||
image.Flags[flag] = value
|
||||
return r.Save()
|
||||
|
||||
Reference in New Issue
Block a user