mirror of
https://github.com/containers/podman.git
synced 2025-12-07 06:11:07 +08:00
Update containers/common to latest main
Update the containers/common dependency to the latest main with the needed changes in Podmansh. Signed-off-by: phoenix <felix.niederwanger@suse.com>
This commit is contained in:
6
vendor/github.com/containers/image/v5/internal/private/private.go
generated
vendored
6
vendor/github.com/containers/image/v5/internal/private/private.go
generated
vendored
@@ -143,7 +143,11 @@ type ReusedBlob struct {
|
||||
// ImageSourceChunk is a portion of a blob.
|
||||
// This API is experimental and can be changed without bumping the major version number.
|
||||
type ImageSourceChunk struct {
|
||||
// Offset specifies the starting position of the chunk within the source blob.
|
||||
Offset uint64
|
||||
|
||||
// Length specifies the size of the chunk. If it is set to math.MaxUint64,
|
||||
// then it refers to all the data from Offset to the end of the blob.
|
||||
Length uint64
|
||||
}
|
||||
|
||||
@@ -154,6 +158,8 @@ type BlobChunkAccessor interface {
|
||||
// The specified chunks must be not overlapping and sorted by their offset.
|
||||
// The readers must be fully consumed, in the order they are returned, before blocking
|
||||
// to read the next chunk.
|
||||
// If the Length for the last chunk is set to math.MaxUint64, then it
|
||||
// fully fetches the remaining data from the offset to the end of the blob.
|
||||
GetBlobAt(ctx context.Context, info types.BlobInfo, chunks []ImageSourceChunk) (chan io.ReadCloser, chan error, error)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user