mirror of
https://github.com/containers/podman.git
synced 2025-09-28 17:25:31 +08:00
Vendor in containers/common v0.40.0
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
10
vendor/github.com/containers/common/libimage/import.go
generated
vendored
10
vendor/github.com/containers/common/libimage/import.go
generated
vendored
@ -23,6 +23,10 @@ type ImportOptions struct {
|
||||
CommitMessage string
|
||||
// Tag the imported image with this value.
|
||||
Tag string
|
||||
// Overwrite OS of imported image.
|
||||
OS string
|
||||
// Overwrite Arch of imported image.
|
||||
Arch string
|
||||
}
|
||||
|
||||
// Import imports a custom tarball at the specified path. Returns the name of
|
||||
@ -48,8 +52,10 @@ func (r *Runtime) Import(ctx context.Context, path string, options *ImportOption
|
||||
}
|
||||
|
||||
config := v1.Image{
|
||||
Config: ic,
|
||||
History: hist,
|
||||
Config: ic,
|
||||
History: hist,
|
||||
OS: options.OS,
|
||||
Architecture: options.Arch,
|
||||
}
|
||||
|
||||
u, err := url.ParseRequestURI(path)
|
||||
|
Reference in New Issue
Block a user