summaryrefslogtreecommitdiff
path: root/pkg/bindings/manifests/types.go
diff options
context:
space:
mode:
authorAditya R <arajan@redhat.com>2022-06-02 17:25:56 +0530
committerAditya R <arajan@redhat.com>2022-06-02 18:06:27 +0530
commit69e44bbcc71ef5b20c9dcc1cca426e02617a3780 (patch)
tree2366f67a656844e1a716e2c1e8674b470aa9f91b /pkg/bindings/manifests/types.go
parente60c41657b47584d99a16e5ba5bac253063c2fb4 (diff)
downloadpodman-69e44bbcc71ef5b20c9dcc1cca426e02617a3780.tar.gz
podman-69e44bbcc71ef5b20c9dcc1cca426e02617a3780.tar.bz2
podman-69e44bbcc71ef5b20c9dcc1cca426e02617a3780.zip
bindings: add manifest should follow es_model while marshalling OSVersion and OSFeatures
It seems API needs json names for OSVersion and OSFeatures in es_model ref: https://github.com/containers/podman/blob/main/pkg/domain/entities/manifest.go#L42 So at bindings end ensure that we honor es_model naming convention when we perform marshalling otherwise API will ignore these fields Signed-off-by: Aditya R <arajan@redhat.com>
Diffstat (limited to 'pkg/bindings/manifests/types.go')
-rw-r--r--pkg/bindings/manifests/types.go22
1 files changed, 12 insertions, 10 deletions
diff --git a/pkg/bindings/manifests/types.go b/pkg/bindings/manifests/types.go
index d0b0b2e71..e23ef798d 100644
--- a/pkg/bindings/manifests/types.go
+++ b/pkg/bindings/manifests/types.go
@@ -44,16 +44,18 @@ type RemoveOptions struct {
type ModifyOptions struct {
// Operation values are "update", "remove" and "annotate". This allows the service to
// efficiently perform each update on a manifest list.
- Operation *string
- All *bool // All when true, operate on all images in a manifest list that may be included in Images
- Annotations map[string]string // Annotations to add to manifest list
- Arch *string // Arch overrides the architecture for the image
- Features []string // Feature list for the image
- Images []string // Images is an optional list of images to add/remove to/from manifest list depending on operation
- OS *string // OS overrides the operating system for the image
- OSFeatures []string // OS features for the image
- OSVersion *string // OSVersion overrides the operating system for the image
- Variant *string // Variant overrides the operating system variant for the image
+ Operation *string
+ All *bool // All when true, operate on all images in a manifest list that may be included in Images
+ Annotations map[string]string // Annotations to add to manifest list
+ Arch *string // Arch overrides the architecture for the image
+ Features []string // Feature list for the image
+ Images []string // Images is an optional list of images to add/remove to/from manifest list depending on operation
+ OS *string // OS overrides the operating system for the image
+ // OS features for the image
+ OSFeatures []string `json:"os_features" schema:"os_features"`
+ // OSVersion overrides the operating system for the image
+ OSVersion *string `json:"os_version" schema:"os_version"`
+ Variant *string // Variant overrides the operating system variant for the image
Authfile *string
Password *string
Username *string