mirror of
https://github.com/containers/podman.git
synced 2025-06-24 19:42:56 +08:00
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>
This commit is contained in:

committed by
Daniel J Walsh

parent
a944f906b8
commit
d498ef53aa
29
Makefile
29
Makefile
@ -198,7 +198,7 @@ endif
|
||||
podman: bin/podman
|
||||
|
||||
.PHONY: bin/podman-remote
|
||||
bin/podman-remote: .gopathok $(SOURCES) go.mod go.sum ## Build with podman on remote environment
|
||||
bin/podman-remote: .gopathok .generate-bindings $(SOURCES) go.mod go.sum ## Build with podman on remote environment
|
||||
$(GO) build $(BUILDFLAGS) -gcflags '$(GCFLAGS)' -asmflags '$(ASMFLAGS)' -ldflags '$(LDFLAGS_PODMAN)' -tags "${REMOTETAGS}" -o $@ ./cmd/podman
|
||||
|
||||
.PHONY: bin/podman-remote-static
|
||||
@ -268,6 +268,8 @@ clean: ## Clean artifacts
|
||||
libpod/pod_ffjson.go \
|
||||
libpod/container_easyjson.go \
|
||||
libpod/pod_easyjson.go \
|
||||
.install.goimports \
|
||||
.generate-bindings \
|
||||
docs/build
|
||||
make -C docs clean
|
||||
|
||||
@ -407,7 +409,7 @@ release.txt:
|
||||
# X-RELEASE-INFO format depended upon by automated tooling
|
||||
echo -n "X-RELEASE-INFO:" > "$@"
|
||||
for field in "$(RELEASE_BASENAME)" "$(RELEASE_VERSION)" \
|
||||
"$(RELEASE_DIST)" "$(RELEASE_DIST_VER)" "$(RELEASE_ARCH)"; do \
|
||||
"$(RELEASE_DIST)" "$(RELEASE_DIST_VER)" "$(RELEASE_ARCH)"; do \
|
||||
echo -n " $$field"; done >> "$@"
|
||||
echo "" >> "$@"
|
||||
|
||||
@ -449,6 +451,21 @@ podman-remote-%-release:
|
||||
rm -f release.txt
|
||||
$(MAKE) podman-remote-release-$*.zip
|
||||
|
||||
BINDINGS_SOURCE = $(wildcard pkg/bindings/**/types.go)
|
||||
.generate-bindings: $(BINDINGS_SOURCE)
|
||||
ifneq ($(shell uname -s), Darwin)
|
||||
for i in $(BINDINGS_SOURCE); do \
|
||||
dirname=$$(dirname $${i}); \
|
||||
shortname=$$(basename $${dirname}); \
|
||||
pushd $${dirname}>/dev/null; \
|
||||
echo $${dirname}; \
|
||||
echo $(GO) generate; \
|
||||
$(GO) generate; \
|
||||
popd > /dev/null; \
|
||||
done;
|
||||
endif
|
||||
touch .generate-bindings
|
||||
|
||||
.PHONY: docker-docs
|
||||
docker-docs: docs
|
||||
(cd docs; ./dckrman.sh ./build/man/*.1)
|
||||
@ -565,13 +582,19 @@ uninstall:
|
||||
GIT_CHECK_EXCLUDE="./vendor:docs/make.bat" $(GOBIN)/git-validation -run DCO,short-subject,dangling-whitespace -range $(EPOCH_TEST_COMMIT)..$(HEAD)
|
||||
|
||||
.PHONY: install.tools
|
||||
install.tools: .install.gitvalidation .install.md2man .install.ginkgo .install.golangci-lint .install.bats ## Install needed tools
|
||||
install.tools: .install.goimports .install.gitvalidation .install.md2man .install.ginkgo .install.golangci-lint .install.bats ## Install needed tools
|
||||
|
||||
define go-get
|
||||
env GO111MODULE=off \
|
||||
$(GO) get -u ${1}
|
||||
endef
|
||||
|
||||
.install.goimports: .gopathok
|
||||
if [ ! -x "$(GOBIN)/goimports" ]; then \
|
||||
$(call go-get,golang.org/x/tools/cmd/goimports); \
|
||||
fi
|
||||
touch .install.goimports
|
||||
|
||||
.PHONY: .install.ginkgo
|
||||
.install.ginkgo: .gopathok
|
||||
if [ ! -x "$(GOBIN)/ginkgo" ]; then \
|
||||
|
2
go.mod
2
go.mod
@ -62,7 +62,7 @@ require (
|
||||
go.uber.org/atomic v1.7.0 // indirect
|
||||
golang.org/x/crypto v0.0.0-20200709230013-948cd5f35899
|
||||
golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d // indirect
|
||||
golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208
|
||||
golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9
|
||||
golang.org/x/sys v0.0.0-20201201145000-ef89a241ccb3
|
||||
google.golang.org/appengine v1.6.6 // indirect
|
||||
gopkg.in/square/go-jose.v2 v2.5.1 // indirect
|
||||
|
4
go.sum
4
go.sum
@ -666,8 +666,8 @@ golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJ
|
||||
golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208 h1:qwRHBd0NqMbJxfbotnDhm2ByMI1Shq4Y6oRJo21SGJA=
|
||||
golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9 h1:SQFwaSi55rU7vdNs9Yr0Z324VNlrF+0wMqRXT4St8ck=
|
||||
golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||
golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||
golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||
|
@ -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 13:33:18.566804404 -0600 CST m=+0.000258831
|
||||
*/
|
||||
|
||||
// Changed
|
||||
@ -39,6 +38,7 @@ func (o *AttachOptions) 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()
|
||||
|
@ -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 13:33:18.714853285 -0600 CST m=+0.000319103
|
||||
*/
|
||||
|
||||
// Changed
|
||||
@ -39,6 +38,7 @@ func (o *CheckpointOptions) 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()
|
||||
|
@ -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 13:33:18.420656951 -0600 CST m=+0.000259662
|
||||
*/
|
||||
|
||||
// Changed
|
||||
@ -39,6 +38,7 @@ func (o *CommitOptions) 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()
|
||||
|
@ -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 13:33:19.011789618 -0600 CST m=+0.000259413
|
||||
*/
|
||||
|
||||
// Changed
|
||||
@ -39,6 +38,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()
|
||||
|
@ -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 13:33:19.159128927 -0600 CST m=+0.000255635
|
||||
*/
|
||||
|
||||
// Changed
|
||||
@ -39,6 +38,7 @@ func (o *DiffOptions) 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()
|
||||
|
@ -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 13:33:19.303239014 -0600 CST m=+0.000256861
|
||||
*/
|
||||
|
||||
// Changed
|
||||
@ -39,6 +38,7 @@ func (o *ExecInspectOptions) 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()
|
||||
|
@ -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 13:33:19.447714428 -0600 CST m=+0.000257278
|
||||
*/
|
||||
|
||||
// Changed
|
||||
@ -39,6 +38,7 @@ func (o *ExecStartOptions) 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()
|
||||
|
@ -6,6 +6,7 @@ import (
|
||||
"net/url"
|
||||
"reflect"
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
jsoniter "github.com/json-iterator/go"
|
||||
"github.com/pkg/errors"
|
||||
@ -13,8 +14,6 @@ import (
|
||||
|
||||
/*
|
||||
This file is generated automatically by go generate. Do not edit.
|
||||
|
||||
Created 2020-12-18 13:33:22.827903078 -0600 CST m=+0.000269906
|
||||
*/
|
||||
|
||||
// Changed
|
||||
@ -41,6 +40,7 @@ func (o *ExecStartAndAttachOptions) 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()
|
||||
|
@ -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 13:33:22.101679998 -0600 CST m=+0.000261669
|
||||
*/
|
||||
|
||||
// Changed
|
||||
@ -39,6 +38,7 @@ func (o *ExportOptions) 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()
|
||||
|
@ -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 13:33:19.593883686 -0600 CST m=+0.000289845
|
||||
*/
|
||||
|
||||
// Changed
|
||||
@ -39,6 +38,7 @@ func (o *HealthCheckOptions) 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()
|
||||
|
@ -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 13:33:22.245077233 -0600 CST m=+0.000255461
|
||||
*/
|
||||
|
||||
// Changed
|
||||
@ -39,6 +38,7 @@ func (o *InitOptions) 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()
|
||||
|
@ -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 13:33:20.635987603 -0600 CST m=+0.000260270
|
||||
*/
|
||||
|
||||
// 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()
|
||||
|
@ -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 13:33:20.781581076 -0600 CST m=+0.000259040
|
||||
*/
|
||||
|
||||
// Changed
|
||||
@ -39,6 +38,7 @@ func (o *KillOptions) 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()
|
||||
|
@ -12,8 +12,6 @@ import (
|
||||
|
||||
/*
|
||||
This file is generated automatically by go generate. Do not edit.
|
||||
|
||||
Created 2020-12-18 13:33:20.199081744 -0600 CST m=+0.000270626
|
||||
*/
|
||||
|
||||
// Changed
|
||||
|
@ -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 13:33:18.273264471 -0600 CST m=+0.000274536
|
||||
*/
|
||||
|
||||
// Changed
|
||||
@ -39,6 +38,7 @@ func (o *LogOptions) 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()
|
||||
|
@ -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 13:33:19.740822464 -0600 CST m=+0.000250074
|
||||
*/
|
||||
|
||||
// Changed
|
||||
@ -39,6 +38,7 @@ func (o *MountOptions) 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()
|
||||
|
@ -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 13:33:20.048233253 -0600 CST m=+0.000307223
|
||||
*/
|
||||
|
||||
// Changed
|
||||
@ -39,6 +38,7 @@ func (o *MountedContainerPathsOptions) 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()
|
||||
|
@ -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 13:33:20.929891294 -0600 CST m=+0.000261081
|
||||
*/
|
||||
|
||||
// Changed
|
||||
@ -39,6 +38,7 @@ func (o *PauseOptions) 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()
|
||||
|
@ -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 13:33:20.344278799 -0600 CST m=+0.000263499
|
||||
*/
|
||||
|
||||
// Changed
|
||||
@ -39,6 +38,7 @@ func (o *PruneOptions) 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()
|
||||
|
@ -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 13:33:20.489968735 -0600 CST m=+0.000264450
|
||||
*/
|
||||
|
||||
// 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()
|
||||
|
@ -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 13:33:22.680735758 -0600 CST m=+0.000267081
|
||||
*/
|
||||
|
||||
// Changed
|
||||
@ -39,6 +38,7 @@ func (o *ResizeExecTTYOptions) 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()
|
||||
|
@ -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 13:33:22.535788375 -0600 CST m=+0.000266528
|
||||
*/
|
||||
|
||||
// Changed
|
||||
@ -39,6 +38,7 @@ func (o *ResizeTTYOptions) 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()
|
||||
|
@ -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 13:33:21.076709643 -0600 CST m=+0.000303354
|
||||
*/
|
||||
|
||||
// Changed
|
||||
@ -39,6 +38,7 @@ func (o *RestartOptions) 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()
|
||||
|
@ -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 13:33:18.861536405 -0600 CST m=+0.000300026
|
||||
*/
|
||||
|
||||
// Changed
|
||||
@ -39,6 +38,7 @@ func (o *RestoreOptions) 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()
|
||||
|
@ -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 13:33:22.388596051 -0600 CST m=+0.000253693
|
||||
*/
|
||||
|
||||
// Changed
|
||||
@ -39,6 +38,7 @@ func (o *ShouldRestartOptions) 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()
|
||||
|
@ -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 13:33:21.221364502 -0600 CST m=+0.000276575
|
||||
*/
|
||||
|
||||
// Changed
|
||||
@ -39,6 +38,7 @@ func (o *StartOptions) 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()
|
||||
|
@ -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 13:33:21.370213399 -0600 CST m=+0.000264334
|
||||
*/
|
||||
|
||||
// Changed
|
||||
@ -39,6 +38,7 @@ func (o *StatsOptions) 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()
|
||||
|
@ -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 13:33:21.95469621 -0600 CST m=+0.000261399
|
||||
*/
|
||||
|
||||
// Changed
|
||||
@ -39,6 +38,7 @@ func (o *StopOptions) 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()
|
||||
|
@ -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 13:33:21.515867629 -0600 CST m=+0.000257106
|
||||
*/
|
||||
|
||||
// Changed
|
||||
@ -39,6 +38,7 @@ func (o *TopOptions) 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()
|
||||
|
@ -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 13:33:19.891657824 -0600 CST m=+0.000326668
|
||||
*/
|
||||
|
||||
// Changed
|
||||
@ -39,6 +38,7 @@ func (o *UnmountOptions) 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()
|
||||
|
@ -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 13:33:21.661356277 -0600 CST m=+0.000262608
|
||||
*/
|
||||
|
||||
// Changed
|
||||
@ -39,6 +38,7 @@ func (o *UnpauseOptions) 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()
|
||||
|
@ -4,6 +4,7 @@ import (
|
||||
"net/url"
|
||||
"reflect"
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/containers/podman/v2/libpod/define"
|
||||
jsoniter "github.com/json-iterator/go"
|
||||
@ -12,8 +13,6 @@ import (
|
||||
|
||||
/*
|
||||
This file is generated automatically by go generate. Do not edit.
|
||||
|
||||
Created 2020-12-18 13:33:21.809397978 -0600 CST m=+0.000267049
|
||||
*/
|
||||
|
||||
// Changed
|
||||
@ -40,6 +39,7 @@ func (o *WaitOptions) 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()
|
||||
|
@ -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:20.522950566 -0600 CST m=+0.000154384
|
||||
*/
|
||||
|
||||
// Changed
|
||||
@ -39,6 +38,7 @@ func (o *KubeOptions) 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()
|
||||
|
@ -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:20.661450253 -0600 CST m=+0.000135779
|
||||
*/
|
||||
|
||||
// Changed
|
||||
@ -39,6 +38,7 @@ func (o *SystemdOptions) 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()
|
||||
|
@ -19,13 +19,10 @@ var bodyTmpl = `package {{.PackageName}}
|
||||
import (
|
||||
{{range $import := .Imports}} {{$import}}
|
||||
{{end}}
|
||||
|
||||
)
|
||||
|
||||
/*
|
||||
This file is generated automatically by go generate. Do not edit.
|
||||
|
||||
Created {{.Date}}
|
||||
*/
|
||||
|
||||
// Changed
|
||||
@ -52,6 +49,7 @@ func (o *{{.StructName}}) 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()
|
||||
@ -239,7 +237,7 @@ func main() {
|
||||
closed = true
|
||||
|
||||
// go fmt file
|
||||
gofmt := exec.Command("gofmt", "-w", "-s", out.Name())
|
||||
gofmt := exec.Command("go", "fmt", out.Name())
|
||||
gofmt.Stderr = os.Stdout
|
||||
if err := gofmt.Run(); err != nil {
|
||||
fmt.Println(err)
|
||||
|
@ -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:26.320022698 -0600 CST m=+0.000277796
|
||||
*/
|
||||
|
||||
// Changed
|
||||
@ -39,6 +38,7 @@ func (o *DiffOptions) 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()
|
||||
|
@ -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:27.173810543 -0600 CST m=+0.000239871
|
||||
*/
|
||||
|
||||
// Changed
|
||||
@ -39,6 +38,7 @@ func (o *ExportOptions) 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()
|
||||
|
@ -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:26.609005517 -0600 CST m=+0.000241828
|
||||
*/
|
||||
|
||||
// Changed
|
||||
@ -39,6 +38,7 @@ func (o *GetOptions) 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()
|
||||
|
@ -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:26.890854681 -0600 CST m=+0.000243668
|
||||
*/
|
||||
|
||||
// Changed
|
||||
@ -39,6 +38,7 @@ func (o *HistoryOptions) 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()
|
||||
|
@ -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:27.740585278 -0600 CST m=+0.000340441
|
||||
*/
|
||||
|
||||
// Changed
|
||||
@ -39,6 +38,7 @@ func (o *ImportOptions) 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()
|
||||
|
@ -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:26.462967928 -0600 CST m=+0.000289760
|
||||
*/
|
||||
|
||||
// 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()
|
||||
|
@ -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:27.031848205 -0600 CST m=+0.000279409
|
||||
*/
|
||||
|
||||
// Changed
|
||||
@ -39,6 +38,7 @@ func (o *LoadOptions) 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()
|
||||
|
@ -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:27.316938584 -0600 CST m=+0.000239843
|
||||
*/
|
||||
|
||||
// Changed
|
||||
@ -39,6 +38,7 @@ func (o *PruneOptions) 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()
|
||||
|
@ -4,6 +4,7 @@ import (
|
||||
"net/url"
|
||||
"reflect"
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/containers/common/pkg/config"
|
||||
jsoniter "github.com/json-iterator/go"
|
||||
@ -12,8 +13,6 @@ import (
|
||||
|
||||
/*
|
||||
This file is generated automatically by go generate. Do not edit.
|
||||
|
||||
Created 2020-12-18 15:58:28.164648348 -0600 CST m=+0.000243264
|
||||
*/
|
||||
|
||||
// Changed
|
||||
@ -40,6 +39,7 @@ func (o *PullOptions) 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()
|
||||
|
@ -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:27.881232044 -0600 CST m=+0.000242458
|
||||
*/
|
||||
|
||||
// Changed
|
||||
@ -39,6 +38,7 @@ func (o *PushOptions) 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()
|
||||
|
@ -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:26.180391541 -0600 CST m=+0.000290244
|
||||
*/
|
||||
|
||||
// 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()
|
||||
|
@ -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:28.023569573 -0600 CST m=+0.000245548
|
||||
*/
|
||||
|
||||
// Changed
|
||||
@ -39,6 +38,7 @@ func (o *SearchOptions) 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()
|
||||
|
@ -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:27.457906682 -0600 CST m=+0.000245071
|
||||
*/
|
||||
|
||||
// Changed
|
||||
@ -39,6 +38,7 @@ func (o *TagOptions) 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()
|
||||
|
@ -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:26.749625305 -0600 CST m=+0.000267624
|
||||
*/
|
||||
|
||||
// Changed
|
||||
@ -39,6 +38,7 @@ func (o *TreeOptions) 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()
|
||||
|
@ -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:27.600379913 -0600 CST m=+0.000251449
|
||||
*/
|
||||
|
||||
// Changed
|
||||
@ -39,6 +38,7 @@ func (o *UntagOptions) 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()
|
||||
|
@ -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:57:55.92237379 -0600 CST m=+0.000150701
|
||||
*/
|
||||
|
||||
// Changed
|
||||
@ -39,6 +38,7 @@ func (o *AddOptions) 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()
|
||||
|
@ -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:57:55.784206871 -0600 CST m=+0.000157049
|
||||
*/
|
||||
|
||||
// Changed
|
||||
@ -39,6 +38,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()
|
||||
|
@ -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:57:55.631746481 -0600 CST m=+0.000143104
|
||||
*/
|
||||
|
||||
// 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()
|
||||
|
@ -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:57:56.197438009 -0600 CST m=+0.000149060
|
||||
*/
|
||||
|
||||
// Changed
|
||||
@ -39,6 +38,7 @@ func (o *PushOptions) 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()
|
||||
|
@ -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:57:56.059954408 -0600 CST m=+0.000146015
|
||||
*/
|
||||
|
||||
// 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()
|
||||
|
@ -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()
|
||||
|
@ -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
|
||||
}
|
||||
|
@ -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()
|
||||
|
@ -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()
|
||||
|
@ -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()
|
||||
|
@ -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()
|
||||
|
@ -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:02.386833736 -0600 CST m=+0.000171080
|
||||
*/
|
||||
|
||||
// Changed
|
||||
@ -39,6 +38,7 @@ func (o *KubeOptions) 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()
|
||||
|
@ -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:40.05490508 -0600 CST m=+0.000156396
|
||||
*/
|
||||
|
||||
// Changed
|
||||
@ -39,6 +38,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()
|
||||
|
@ -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:40.258801519 -0600 CST m=+0.000175055
|
||||
*/
|
||||
|
||||
// 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()
|
||||
|
@ -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:40.398857339 -0600 CST m=+0.000160135
|
||||
*/
|
||||
|
||||
// Changed
|
||||
@ -39,6 +38,7 @@ func (o *KillOptions) 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()
|
||||
|
@ -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:40.818123838 -0600 CST m=+0.000164328
|
||||
*/
|
||||
|
||||
// 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()
|
||||
|
@ -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:40.538407099 -0600 CST m=+0.000193274
|
||||
*/
|
||||
|
||||
// Changed
|
||||
@ -39,6 +38,7 @@ func (o *PauseOptions) 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()
|
||||
|
@ -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:40.678507342 -0600 CST m=+0.000183891
|
||||
*/
|
||||
|
||||
// Changed
|
||||
@ -39,6 +38,7 @@ func (o *PruneOptions) 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()
|
||||
|
@ -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:41.80320679 -0600 CST m=+0.000158149
|
||||
*/
|
||||
|
||||
// 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()
|
||||
|
@ -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:40.958315383 -0600 CST m=+0.000168360
|
||||
*/
|
||||
|
||||
// Changed
|
||||
@ -39,6 +38,7 @@ func (o *RestartOptions) 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()
|
||||
|
@ -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:41.099102916 -0600 CST m=+0.000159629
|
||||
*/
|
||||
|
||||
// Changed
|
||||
@ -39,6 +38,7 @@ func (o *StartOptions) 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()
|
||||
|
@ -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:41.658228243 -0600 CST m=+0.000160769
|
||||
*/
|
||||
|
||||
// Changed
|
||||
@ -39,6 +38,7 @@ func (o *StatsOptions) 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()
|
||||
|
@ -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:41.237892781 -0600 CST m=+0.000155040
|
||||
*/
|
||||
|
||||
// Changed
|
||||
@ -39,6 +38,7 @@ func (o *StopOptions) 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()
|
||||
|
@ -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:41.375876994 -0600 CST m=+0.000154839
|
||||
*/
|
||||
|
||||
// Changed
|
||||
@ -39,6 +38,7 @@ func (o *TopOptions) 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()
|
||||
|
@ -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:41.515225789 -0600 CST m=+0.000158667
|
||||
*/
|
||||
|
||||
// Changed
|
||||
@ -39,6 +38,7 @@ func (o *UnpauseOptions) 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()
|
||||
|
@ -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:08.087362343 -0600 CST m=+0.000150636
|
||||
*/
|
||||
|
||||
// Changed
|
||||
@ -39,6 +38,7 @@ func (o *DiskOptions) 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()
|
||||
|
@ -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:07.675150173 -0600 CST m=+0.000140977
|
||||
*/
|
||||
|
||||
// Changed
|
||||
@ -39,6 +38,7 @@ func (o *EventsOptions) 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()
|
||||
|
@ -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:08.233760126 -0600 CST m=+0.000142369
|
||||
*/
|
||||
|
||||
// Changed
|
||||
@ -39,6 +38,7 @@ func (o *InfoOptions) 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()
|
||||
|
@ -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:07.812719858 -0600 CST m=+0.000143214
|
||||
*/
|
||||
|
||||
// Changed
|
||||
@ -39,6 +38,7 @@ func (o *PruneOptions) 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()
|
||||
|
@ -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:07.950759332 -0600 CST m=+0.000140376
|
||||
*/
|
||||
|
||||
// Changed
|
||||
@ -39,6 +38,7 @@ func (o *VersionOptions) 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()
|
||||
|
@ -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:14.043860791 -0600 CST m=+0.000188944
|
||||
*/
|
||||
|
||||
// Changed
|
||||
@ -39,6 +38,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()
|
||||
|
@ -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:14.189902005 -0600 CST m=+0.000151439
|
||||
*/
|
||||
|
||||
// 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()
|
||||
|
@ -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:14.326721724 -0600 CST m=+0.000172471
|
||||
*/
|
||||
|
||||
// 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()
|
||||
|
@ -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:14.463307398 -0600 CST m=+0.000180868
|
||||
*/
|
||||
|
||||
// Changed
|
||||
@ -39,6 +38,7 @@ func (o *PruneOptions) 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()
|
||||
|
@ -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:14.60278922 -0600 CST m=+0.000134408
|
||||
*/
|
||||
|
||||
// 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()
|
||||
|
2
vendor/modules.txt
vendored
2
vendor/modules.txt
vendored
@ -628,7 +628,7 @@ golang.org/x/net/proxy
|
||||
# golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d
|
||||
golang.org/x/oauth2
|
||||
golang.org/x/oauth2/internal
|
||||
# golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208
|
||||
# golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9
|
||||
golang.org/x/sync/errgroup
|
||||
golang.org/x/sync/semaphore
|
||||
# golang.org/x/sys v0.0.0-20201201145000-ef89a241ccb3
|
||||
|
Reference in New Issue
Block a user