From 86335aa4ae01dadecd36468409d742e68b76925d Mon Sep 17 00:00:00 2001 From: baude Date: Mon, 14 Dec 2020 11:33:25 -0600 Subject: misc bindings to podman v3 manifest, system, info, volumes, play, and generate bindings are updated to always have binding options. Signed-off-by: baude --- pkg/bindings/images/types_get_options.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'pkg/bindings/images/types_get_options.go') diff --git a/pkg/bindings/images/types_get_options.go b/pkg/bindings/images/types_get_options.go index b7b45259d..a1c0f9b09 100644 --- a/pkg/bindings/images/types_get_options.go +++ b/pkg/bindings/images/types_get_options.go @@ -12,7 +12,7 @@ import ( /* This file is generated automatically by go generate. Do not edit. -Created 2020-12-15 15:22:46.81312808 -0600 CST m=+0.000257734 +Created 2020-12-16 11:47:07.536472335 -0600 CST m=+0.000251379 */ // Changed @@ -51,6 +51,9 @@ func (o *GetOptions) ToParams() (url.Values, error) { case reflect.Int, reflect.Int64: // f.Int() is always an int64 params.Set(fieldName, strconv.FormatInt(f.Int(), 10)) + case reflect.Uint, reflect.Uint64: + // f.Uint() is always an uint64 + params.Set(fieldName, strconv.FormatUint(f.Uint(), 10)) case reflect.Slice: typ := reflect.TypeOf(f.Interface()).Elem() slice := reflect.MakeSlice(reflect.SliceOf(typ), f.Len(), f.Cap()) @@ -79,8 +82,6 @@ func (o *GetOptions) ToParams() (url.Values, error) { } params.Set(fieldName, s) - default: - return nil, errors.Errorf("unknown type %s", f.Kind().String()) } } return params, nil -- cgit v1.2.3-54-g00ecf