summaryrefslogtreecommitdiff
path: root/pkg/bindings/network/types_create_options.go
diff options
context:
space:
mode:
authorValentin Rothberg <rothberg@redhat.com>2020-12-18 16:46:09 +0100
committerDaniel J Walsh <dwalsh@redhat.com>2021-01-14 11:54:57 -0500
commitd498ef53aa71066aec7771ebb7316bf3eb3d4cde (patch)
tree674db8a9dcc318832c253a49cc46d709d8bde3bd /pkg/bindings/network/types_create_options.go
parenta944f906b8de00be0b50f9407d1905ba20f80823 (diff)
downloadpodman-d498ef53aa71066aec7771ebb7316bf3eb3d4cde.tar.gz
podman-d498ef53aa71066aec7771ebb7316bf3eb3d4cde.tar.bz2
podman-d498ef53aa71066aec7771ebb7316bf3eb3d4cde.zip
Makefile: add target to generate bindings
Add a `.generate-bindings` make target that only runs in the absence of the `.generate-bindings` file or when a `types.go` file below `pkg/bindings` has changed. This will regenerate the go bindings and make sure the code is up2date. Signed-off-by: Valentin Rothberg <rothberg@redhat.com> Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'pkg/bindings/network/types_create_options.go')
-rw-r--r--pkg/bindings/network/types_create_options.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/pkg/bindings/network/types_create_options.go b/pkg/bindings/network/types_create_options.go
index daec6a254..5b0abe870 100644
--- a/pkg/bindings/network/types_create_options.go
+++ b/pkg/bindings/network/types_create_options.go
@@ -5,6 +5,7 @@ import (
"net/url"
"reflect"
"strconv"
+ "strings"
jsoniter "github.com/json-iterator/go"
"github.com/pkg/errors"
@@ -12,8 +13,6 @@ import (
/*
This file is generated automatically by go generate. Do not edit.
-
-Created 2020-12-18 15:58:33.37307678 -0600 CST m=+0.000176739
*/
// Changed
@@ -40,6 +39,7 @@ func (o *CreateOptions) ToParams() (url.Values, error) {
if !o.Changed(fieldName) {
continue
}
+ fieldName = strings.ToLower(fieldName)
f := s.Field(i)
if reflect.Ptr == f.Kind() {
f = f.Elem()
@@ -193,9 +193,9 @@ func (o *CreateOptions) WithIPRange(value net.IPNet) *CreateOptions {
// GetIPRange
func (o *CreateOptions) GetIPRange() net.IPNet {
- var ipRange net.IPNet
+ var iPRange net.IPNet
if o.IPRange == nil {
- return ipRange
+ return iPRange
}
return *o.IPRange
}