mirror of
https://github.com/containers/podman.git
synced 2026-07-20 20:22:02 -04:00
When doing a podman images, manifests lists look just like images, so it is logical that users would assume that they can just podman push them to a registry. The problem is we throw out weird errors when this happens and users need to somehow figure out this is a manifest list rather then an image, and frankly the user will not understand the difference. This PR will make podman push just do the right thing, by failing over and attempting to push the manifest if it fails to push the image. Fix up handling of manifest push Protocol should bring back a digest string, which can either be printed or stored in a file. We should not reimplement the manifest push setup code in the tunnel code but take advantage of the api path, to make sure remote and local work the same way. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
36 lines
1.4 KiB
Go
36 lines
1.4 KiB
Go
package entities
|
|
|
|
import "github.com/containers/image/v5/types"
|
|
|
|
// TODO: add comments to *all* types and fields.
|
|
|
|
type ManifestCreateOptions struct {
|
|
All bool `schema:"all"`
|
|
}
|
|
|
|
type ManifestAddOptions struct {
|
|
All bool `json:"all" schema:"all"`
|
|
Annotation []string `json:"annotation" schema:"annotation"`
|
|
Arch string `json:"arch" schema:"arch"`
|
|
Authfile string `json:"-" schema:"-"`
|
|
CertDir string `json:"-" schema:"-"`
|
|
Features []string `json:"features" schema:"features"`
|
|
Images []string `json:"images" schema:"images"`
|
|
OS string `json:"os" schema:"os"`
|
|
OSVersion string `json:"os_version" schema:"os_version"`
|
|
Password string `json:"-" schema:"-"`
|
|
SkipTLSVerify types.OptionalBool `json:"-" schema:"-"`
|
|
Username string `json:"-" schema:"-"`
|
|
Variant string `json:"variant" schema:"variant"`
|
|
}
|
|
|
|
type ManifestAnnotateOptions struct {
|
|
Annotation []string `json:"annotation"`
|
|
Arch string `json:"arch" schema:"arch"`
|
|
Features []string `json:"features" schema:"features"`
|
|
OS string `json:"os" schema:"os"`
|
|
OSFeatures []string `json:"os_features" schema:"os_features"`
|
|
OSVersion string `json:"os_version" schema:"os_version"`
|
|
Variant string `json:"variant" schema:"variant"`
|
|
}
|