aboutsummaryrefslogtreecommitdiff
path: root/pkg/bindings/network
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/bindings/network')
-rw-r--r--pkg/bindings/network/types_connect_options.go4
-rw-r--r--pkg/bindings/network/types_create_options.go8
-rw-r--r--pkg/bindings/network/types_disconnect_options.go4
-rw-r--r--pkg/bindings/network/types_inspect_options.go4
-rw-r--r--pkg/bindings/network/types_list_options.go4
-rw-r--r--pkg/bindings/network/types_remove_options.go4
6 files changed, 14 insertions, 14 deletions
diff --git a/pkg/bindings/network/types_connect_options.go b/pkg/bindings/network/types_connect_options.go
index 6fcc4536e..b6081ba57 100644
--- a/pkg/bindings/network/types_connect_options.go
+++ b/pkg/bindings/network/types_connect_options.go
@@ -4,6 +4,7 @@ import (
"net/url"
"reflect"
"strconv"
+ "strings"
jsoniter "github.com/json-iterator/go"
"github.com/pkg/errors"
@@ -11,8 +12,6 @@ import (
/*
This file is generated automatically by go generate. Do not edit.
-
-Created 2020-12-18 15:58:34.075822786 -0600 CST m=+0.000167237
*/
// Changed
@@ -39,6 +38,7 @@ func (o *ConnectOptions) 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()
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
}
diff --git a/pkg/bindings/network/types_disconnect_options.go b/pkg/bindings/network/types_disconnect_options.go
index 821279976..8b2a9cb71 100644
--- a/pkg/bindings/network/types_disconnect_options.go
+++ b/pkg/bindings/network/types_disconnect_options.go
@@ -4,6 +4,7 @@ import (
"net/url"
"reflect"
"strconv"
+ "strings"
jsoniter "github.com/json-iterator/go"
"github.com/pkg/errors"
@@ -11,8 +12,6 @@ import (
/*
This file is generated automatically by go generate. Do not edit.
-
-Created 2020-12-18 15:58:33.936088242 -0600 CST m=+0.000168680
*/
// Changed
@@ -39,6 +38,7 @@ func (o *DisconnectOptions) 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()
diff --git a/pkg/bindings/network/types_inspect_options.go b/pkg/bindings/network/types_inspect_options.go
index 7704904ce..cec5ef7b2 100644
--- a/pkg/bindings/network/types_inspect_options.go
+++ b/pkg/bindings/network/types_inspect_options.go
@@ -4,6 +4,7 @@ import (
"net/url"
"reflect"
"strconv"
+ "strings"
jsoniter "github.com/json-iterator/go"
"github.com/pkg/errors"
@@ -11,8 +12,6 @@ import (
/*
This file is generated automatically by go generate. Do not edit.
-
-Created 2020-12-18 15:58:33.520438264 -0600 CST m=+0.000172934
*/
// Changed
@@ -39,6 +38,7 @@ func (o *InspectOptions) 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()
diff --git a/pkg/bindings/network/types_list_options.go b/pkg/bindings/network/types_list_options.go
index bbd2a71db..6a33fb7b6 100644
--- a/pkg/bindings/network/types_list_options.go
+++ b/pkg/bindings/network/types_list_options.go
@@ -4,6 +4,7 @@ import (
"net/url"
"reflect"
"strconv"
+ "strings"
jsoniter "github.com/json-iterator/go"
"github.com/pkg/errors"
@@ -11,8 +12,6 @@ import (
/*
This file is generated automatically by go generate. Do not edit.
-
-Created 2020-12-18 15:58:33.796794129 -0600 CST m=+0.000180368
*/
// Changed
@@ -39,6 +38,7 @@ func (o *ListOptions) 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()
diff --git a/pkg/bindings/network/types_remove_options.go b/pkg/bindings/network/types_remove_options.go
index b24835ae4..861fe1f2c 100644
--- a/pkg/bindings/network/types_remove_options.go
+++ b/pkg/bindings/network/types_remove_options.go
@@ -4,6 +4,7 @@ import (
"net/url"
"reflect"
"strconv"
+ "strings"
jsoniter "github.com/json-iterator/go"
"github.com/pkg/errors"
@@ -11,8 +12,6 @@ import (
/*
This file is generated automatically by go generate. Do not edit.
-
-Created 2020-12-18 15:58:33.658228151 -0600 CST m=+0.000172527
*/
// Changed
@@ -39,6 +38,7 @@ func (o *RemoveOptions) 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()