From 69ef388b549d467a001319ce383e222ae4950cc7 Mon Sep 17 00:00:00 2001 From: Tamal Saha Date: Wed, 13 Nov 2019 02:33:25 -0800 Subject: [PATCH] Generate protobuf files for api types (#967) Signed-off-by: Tamal Saha --- Makefile | 42 +- .../stash.appscode.com_backupbatches.yaml | 242 +- .../stash.appscode.com_backupblueprints.yaml | 9 + ...ash.appscode.com_backupconfigurations.yaml | 120 +- .../stash.appscode.com_backupsessions.yaml | 10 +- api/crds/stash.appscode.com_recoveries.yaml | 3 +- api/crds/stash.appscode.com_repositories.yaml | 11 +- api/crds/stash.appscode.com_restics.yaml | 9 + api/openapi-spec/swagger.json | 129 +- apis/repositories/v1alpha1/generated.pb.go | 924 ++ apis/repositories/v1alpha1/generated.proto | 57 + .../v1alpha1/openapi_generated.go | 153 +- apis/repositories/v1alpha1/types.go | 22 +- .../v1alpha1/zz_generated.conversion.go | 32 +- apis/stash/v1alpha1/generated.pb.go | 4210 +++++++ apis/stash/v1alpha1/generated.proto | 258 + apis/stash/v1alpha1/openapi_generated.go | 178 +- apis/stash/v1alpha1/recovery_types.go | 35 +- apis/stash/v1alpha1/repository_types.go | 36 +- apis/stash/v1alpha1/restic_types.go | 54 +- apis/stash/v1alpha1/workload.go | 6 +- apis/stash/v1alpha1/zz_generated.deepcopy.go | 4 - apis/stash/v1beta1/backup_batch_types.go | 28 +- apis/stash/v1beta1/backup_blueprint_types.go | 24 +- .../v1beta1/backup_configuration_types.go | 53 +- apis/stash/v1beta1/backup_session_types.go | 52 +- apis/stash/v1beta1/function_types.go | 26 +- apis/stash/v1beta1/generated.pb.go | 9787 +++++++++++++++++ apis/stash/v1beta1/generated.proto | 686 ++ apis/stash/v1beta1/openapi_generated.go | 171 +- apis/stash/v1beta1/restore_session_types.go | 50 +- apis/stash/v1beta1/task_types.go | 16 +- apis/stash/v1beta1/types.go | 36 +- apis/stash/v1beta1/zz_generated.deepcopy.go | 13 +- go.mod | 21 +- go.sum | 39 +- hack/import_hacks.go | 25 + pkg/cli/restic.go | 12 +- pkg/cmds/backup_pvc.go | 14 +- pkg/cmds/restore.go | 2 +- pkg/cmds/restore_pvc.go | 2 +- pkg/cmds/run_backup.go | 2 +- pkg/controller/inputs.go | 14 +- pkg/restic/commands.go | 12 +- pkg/restic/config.go | 2 +- pkg/restic/metrics.go | 10 +- pkg/restic/output.go | 24 +- pkg/restic/restic_test.go | 2 +- pkg/status/status.go | 2 +- .../volumesnapshot_cleanup_policy.go | 2 +- .../google/protobuf/compiler/plugin.proto | 150 + .../protobuf/google/protobuf/descriptor.proto | 779 ++ vendor/kmodules.xyz/client-go/Makefile | 28 + .../v1beta1/kubernetes.go | 16 + .../v1beta1/mutatingwebhookconfiguration.go | 16 + .../v1beta1/validatingwebhookconfiguration.go | 16 + .../admissionregistration/v1beta1/xray.go | 16 + .../apiregistration/v1beta1/apiservice.go | 16 + .../apiregistration/v1beta1/kubernetes.go | 16 + .../client-go/apps/v1/daemonset.go | 16 + .../client-go/apps/v1/deployment.go | 16 + .../client-go/apps/v1/kubernetes.go | 16 + .../client-go/apps/v1/replicaset.go | 16 + .../client-go/apps/v1/statefulset.go | 16 + vendor/kmodules.xyz/client-go/batch/v1/job.go | 16 + .../client-go/batch/v1/kubernetes.go | 16 + .../client-go/batch/v1beta1/cronjob.go | 16 + .../client-go/batch/v1beta1/kubernetes.go | 16 + .../client-go/core/v1/configmap.go | 16 + .../client-go/core/v1/endpoints.go | 16 + .../client-go/core/v1/kubernetes.go | 16 + vendor/kmodules.xyz/client-go/core/v1/node.go | 16 + vendor/kmodules.xyz/client-go/core/v1/pod.go | 16 + vendor/kmodules.xyz/client-go/core/v1/pv.go | 16 + vendor/kmodules.xyz/client-go/core/v1/pvc.go | 16 + vendor/kmodules.xyz/client-go/core/v1/rc.go | 16 + .../kmodules.xyz/client-go/core/v1/secret.go | 16 + .../kmodules.xyz/client-go/core/v1/service.go | 16 + .../client-go/core/v1/serviceaccount.go | 16 + .../kmodules.xyz/client-go/discovery/lib.go | 16 + .../client-go/discovery/restmapper.go | 16 + vendor/kmodules.xyz/client-go/doc.go | 16 + .../client-go/dynamic/kubernetes.go | 16 + .../client-go/dynamic/unstructured.go | 16 + vendor/kmodules.xyz/client-go/go.mod | 2 +- .../client-go/meta/annotations.go | 16 + vendor/kmodules.xyz/client-go/meta/cloud.go | 16 + vendor/kmodules.xyz/client-go/meta/cmp.go | 16 + .../kmodules.xyz/client-go/meta/encoding.go | 16 + vendor/kmodules.xyz/client-go/meta/hash.go | 16 + .../kmodules.xyz/client-go/meta/incluster.go | 16 + vendor/kmodules.xyz/client-go/meta/lib.go | 16 + vendor/kmodules.xyz/client-go/meta/patch.go | 16 + .../client-go/openapi/cd_storage.go | 16 + .../client-go/openapi/getter_storage.go | 16 + .../client-go/openapi/lister_storage.go | 16 + .../client-go/openapi/rd_storage.go | 16 + .../kmodules.xyz/client-go/openapi/render.go | 16 + .../client-go/openapi/std_storage.go | 16 + .../kmodules.xyz/client-go/openapi/types.go | 16 + .../client-go/rbac/v1/clusterrole.go | 16 + .../client-go/rbac/v1/clusterrolebinding.go | 16 + .../client-go/rbac/v1/kubernetes.go | 16 + vendor/kmodules.xyz/client-go/rbac/v1/role.go | 16 + .../client-go/rbac/v1/rolebinding.go | 16 + .../client-go/tools/analytics/analytics.go | 16 + .../kmodules.xyz/client-go/tools/cli/cli.go | 16 + .../tools/clientcmd/client_config.go | 16 + .../tools/clientcmd/client_getter.go | 16 + .../client-go/tools/queue/handler.go | 16 + .../client-go/tools/queue/worker.go | 16 + vendor/kmodules.xyz/client-go/util.go | 16 + .../kmodules.xyz/constants/aws/constants.go | 31 + .../kmodules.xyz/constants/azure/constants.go | 40 + .../constants/openstack/constants.go | 27 + .../apis/appcatalog/register.go | 16 + .../appcatalog/v1alpha1/appbinding_helpers.go | 19 +- .../appcatalog/v1alpha1/appbinding_types.go | 94 +- .../apis/appcatalog/v1alpha1/doc.go | 15 + .../apis/appcatalog/v1alpha1/generated.pb.go | 2797 +++++ .../apis/appcatalog/v1alpha1/generated.proto | 270 + .../appcatalog/v1alpha1/openapi_generated.go | 5 +- .../apis/appcatalog/v1alpha1/register.go | 19 +- .../v1alpha1/zz_generated.deepcopy.go | 2 +- .../client/clientset/versioned/clientset.go | 5 +- .../client/clientset/versioned/doc.go | 2 +- .../client/clientset/versioned/scheme/doc.go | 2 +- .../clientset/versioned/scheme/register.go | 5 +- .../typed/appcatalog/v1alpha1/appbinding.go | 7 +- .../appcatalog/v1alpha1/appcatalog_client.go | 7 +- .../typed/appcatalog/v1alpha1/doc.go | 2 +- .../v1alpha1/generated_expansion.go | 2 +- .../externalversions/appcatalog/interface.go | 2 +- .../appcatalog/v1alpha1/appbinding.go | 11 +- .../appcatalog/v1alpha1/interface.go | 2 +- .../informers/externalversions/factory.go | 9 +- .../informers/externalversions/generic.go | 5 +- .../internalinterfaces/factory_interfaces.go | 5 +- .../listers/appcatalog/v1alpha1/appbinding.go | 5 +- .../v1alpha1/expansion_generated.go | 2 +- .../objectstore-api/api/v1/doc.go | 15 + .../objectstore-api/api/v1/generated.pb.go | 1976 ++++ .../objectstore-api/api/v1/generated.proto | 98 + .../objectstore-api/api/v1/helpers.go | 18 +- .../api/v1/openapi_generated.go | 8 +- .../objectstore-api/api/v1/types.go | 72 +- .../api/v1/zz_generated.deepcopy.go | 2 +- .../kmodules.xyz/objectstore-api/osm/doc.go | 16 + .../kmodules.xyz/objectstore-api/osm/osm.go | 65 +- .../kmodules.xyz/offshoot-api/api/v1/doc.go | 15 + .../offshoot-api/api/v1/generated.pb.go | 4227 +++++++ .../offshoot-api/api/v1/generated.proto | 451 + .../offshoot-api/api/v1/openapi_generated.go | 2 +- .../api/v1/runtime_settings_types.go | 72 +- .../kmodules.xyz/offshoot-api/api/v1/types.go | 84 +- .../api/v1/zz_generated.deepcopy.go | 2 +- .../offshoot-api/util/runtime_settings.go | 19 +- vendor/kmodules.xyz/prober/LICENSE | 201 + vendor/kmodules.xyz/prober/api/v1/doc.go | 19 + .../prober/api/v1/generated.pb.go | 1153 ++ .../prober/api/v1/generated.proto | 90 + .../prober/api/v1/openapi_generated.go | 177 + vendor/kmodules.xyz/prober/api/v1/types.go | 74 + .../prober/api/v1/zz_generated.deepcopy.go | 111 + .../webhook-runtime/admission/handler.go | 15 + .../admission/v1beta1/errors.go | 15 + .../admission/v1beta1/generic/generic.go | 24 +- .../admission/v1beta1/types.go | 18 +- .../admission/v1beta1/workload/workload.go | 26 +- .../apis/workload/v1/constants.go | 15 + .../webhook-runtime/apis/workload/v1/doc.go | 15 + .../webhook-runtime/apis/workload/v1/types.go | 15 + .../apis/workload/v1/zz_generated.deepcopy.go | 2 +- .../client/workload/v1/client.go | 20 +- .../client/workload/v1/factory.go | 21 +- .../client/workload/v1/workload.go | 96 +- .../v1beta1/admission_review.go | 15 + .../runtime/serializer/versioning/codec.go | 18 +- vendor/modules.txt | 19 +- 179 files changed, 31629 insertions(+), 638 deletions(-) create mode 100644 apis/repositories/v1alpha1/generated.pb.go create mode 100644 apis/repositories/v1alpha1/generated.proto create mode 100644 apis/stash/v1alpha1/generated.pb.go create mode 100644 apis/stash/v1alpha1/generated.proto create mode 100644 apis/stash/v1beta1/generated.pb.go create mode 100644 apis/stash/v1beta1/generated.proto create mode 100644 hack/import_hacks.go create mode 100644 third_party/protobuf/google/protobuf/compiler/plugin.proto create mode 100644 third_party/protobuf/google/protobuf/descriptor.proto create mode 100644 vendor/kmodules.xyz/constants/aws/constants.go create mode 100644 vendor/kmodules.xyz/constants/azure/constants.go create mode 100644 vendor/kmodules.xyz/constants/openstack/constants.go create mode 100644 vendor/kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1/generated.pb.go create mode 100644 vendor/kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1/generated.proto create mode 100644 vendor/kmodules.xyz/objectstore-api/api/v1/generated.pb.go create mode 100644 vendor/kmodules.xyz/objectstore-api/api/v1/generated.proto create mode 100644 vendor/kmodules.xyz/offshoot-api/api/v1/generated.pb.go create mode 100644 vendor/kmodules.xyz/offshoot-api/api/v1/generated.proto create mode 100644 vendor/kmodules.xyz/prober/LICENSE create mode 100644 vendor/kmodules.xyz/prober/api/v1/doc.go create mode 100644 vendor/kmodules.xyz/prober/api/v1/generated.pb.go create mode 100644 vendor/kmodules.xyz/prober/api/v1/generated.proto create mode 100644 vendor/kmodules.xyz/prober/api/v1/openapi_generated.go create mode 100644 vendor/kmodules.xyz/prober/api/v1/types.go create mode 100644 vendor/kmodules.xyz/prober/api/v1/zz_generated.deepcopy.go diff --git a/Makefile b/Makefile index 88296453c..0edbfaf45 100644 --- a/Makefile +++ b/Makefile @@ -204,7 +204,7 @@ openapi-%: openapi-gen \ --v 1 --logtostderr \ --go-header-file "./hack/license/go.txt" \ - --input-dirs "$(GO_PKG)/$(REPO)/apis/$(subst _,/,$*),k8s.io/apimachinery/pkg/apis/meta/v1,k8s.io/apimachinery/pkg/api/resource,k8s.io/apimachinery/pkg/runtime,k8s.io/apimachinery/pkg/util/intstr,k8s.io/apimachinery/pkg/version,k8s.io/api/core/v1,k8s.io/api/apps/v1,kmodules.xyz/offshoot-api/api/v1,github.com/appscode/go/encoding/json/types,kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1,k8s.io/api/rbac/v1,kmodules.xyz/objectstore-api/api/v1" \ + --input-dirs "$(GO_PKG)/$(REPO)/apis/$(subst _,/,$*),k8s.io/apimachinery/pkg/apis/meta/v1,k8s.io/apimachinery/pkg/api/resource,k8s.io/apimachinery/pkg/runtime,k8s.io/apimachinery/pkg/util/intstr,k8s.io/apimachinery/pkg/version,k8s.io/api/core/v1,k8s.io/api/apps/v1,kmodules.xyz/offshoot-api/api/v1,github.com/appscode/go/encoding/json/types,kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1,k8s.io/api/rbac/v1,kmodules.xyz/objectstore-api/api/v1,kmodules.xyz/prober/api/v1" \ --output-package "$(GO_PKG)/$(REPO)/apis/$(subst _,/,$*)" \ --report-filename api/api-rules/violation_exceptions.list @@ -234,8 +234,46 @@ label-crds: $(BUILD_DIRS) mv bin/crd.yaml $$f; \ done +.PHONY: gen-crd-protos +gen-crd-protos: $(addprefix gen-crd-protos-, $(subst :,_,repositories:v1alpha1 stash:v1alpha1)) gen-crd-protos-stash-v1beta1 + +gen-crd-protos-%: + @echo "Generating protobuf for $(subst _,/,$*)" + @docker run --rm \ + -u $$(id -u):$$(id -g) \ + -v /tmp:/.cache \ + -v $$(pwd):$(DOCKER_REPO_ROOT) \ + -w $(DOCKER_REPO_ROOT) \ + --env HTTP_PROXY=$(HTTP_PROXY) \ + --env HTTPS_PROXY=$(HTTPS_PROXY) \ + $(CODE_GENERATOR_IMAGE) \ + go-to-protobuf \ + --go-header-file "./hack/license/go.txt" \ + --proto-import=$(DOCKER_REPO_ROOT)/vendor \ + --proto-import=$(DOCKER_REPO_ROOT)/third_party/protobuf \ + --apimachinery-packages=-k8s.io/apimachinery/pkg/api/resource,-k8s.io/apimachinery/pkg/apis/meta/v1,-k8s.io/apimachinery/pkg/apis/meta/v1beta1,-k8s.io/apimachinery/pkg/runtime,-k8s.io/apimachinery/pkg/runtime/schema,-k8s.io/apimachinery/pkg/util/intstr \ + --packages=-k8s.io/api/core/v1,-kmodules.xyz/offshoot-api/api/v1,-kmodules.xyz/objectstore-api/api/v1,-kmodules.xyz/prober/api/v1,stash.appscode.dev/stash/apis/$(subst _,/,$*) + +.PHONY: gen-crd-protos-stash-v1beta1 +gen-crd-protos-stash-v1beta1: + @echo "Generating protobuf for stash/v1beta1" + @docker run --rm \ + -u $$(id -u):$$(id -g) \ + -v /tmp:/.cache \ + -v $$(pwd):$(DOCKER_REPO_ROOT) \ + -w $(DOCKER_REPO_ROOT) \ + --env HTTP_PROXY=$(HTTP_PROXY) \ + --env HTTPS_PROXY=$(HTTPS_PROXY) \ + $(CODE_GENERATOR_IMAGE) \ + go-to-protobuf \ + --go-header-file "./hack/license/go.txt" \ + --proto-import=$(DOCKER_REPO_ROOT)/vendor \ + --proto-import=$(DOCKER_REPO_ROOT)/third_party/protobuf \ + --apimachinery-packages=-k8s.io/apimachinery/pkg/api/resource,-k8s.io/apimachinery/pkg/apis/meta/v1,-k8s.io/apimachinery/pkg/apis/meta/v1beta1,-k8s.io/apimachinery/pkg/runtime,-k8s.io/apimachinery/pkg/runtime/schema,-k8s.io/apimachinery/pkg/util/intstr \ + --packages=-k8s.io/api/core/v1,-kmodules.xyz/offshoot-api/api/v1,-kmodules.xyz/objectstore-api/api/v1,-kmodules.xyz/prober/api/v1,-stash.appscode.dev/stash/apis/stash/v1alpha1,stash.appscode.dev/stash/apis/stash/v1beta1 + .PHONY: manifests -manifests: gen-crds label-crds +manifests: gen-crds label-crds gen-crd-protos .PHONY: gen gen: clientset openapi manifests diff --git a/api/crds/stash.appscode.com_backupbatches.yaml b/api/crds/stash.appscode.com_backupbatches.yaml index 22f68416f..482ed1944 100644 --- a/api/crds/stash.appscode.com_backupbatches.yaml +++ b/api/crds/stash.appscode.com_backupbatches.yaml @@ -867,8 +867,8 @@ spec: type: array type: object httpGet: - description: HTTPGet specifies the http request to - perform. + description: HTTPGet specifies the http Get request + to perform. properties: host: description: Host name to connect to, defaults @@ -910,6 +910,63 @@ spec: required: - port type: object + httpPost: + description: HTTPPost specifies the http Post request + to perform. + properties: + body: + description: Body to set in the request. + type: string + form: + additionalProperties: + properties: + values: + items: + type: string + type: array + type: object + description: Form to set in the request body. + type: object + host: + description: Host name to connect to, defaults + to the pod IP. You probably want to set "Host" + in httpHeaders instead. + type: string + httpHeaders: + description: Custom headers to set in the request. + HTTP allows repeated headers. + items: + description: HTTPHeader describes a custom header + to be used in HTTP probes + properties: + name: + description: The header field name + type: string + value: + description: The header field value + type: string + required: + - name + - value + type: object + type: array + path: + description: Path to access on the HTTP server. + type: string + port: + anyOf: + - type: string + - type: integer + description: Name or number of the port to access + on the container. Number must be in the range + 1 to 65535. Name must be an IANA_SVC_NAME. + scheme: + description: Scheme to use for connecting to the + host. Defaults to HTTP. + type: string + required: + - port + type: object tcpSocket: description: 'TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported TODO: implement @@ -953,9 +1010,66 @@ spec: type: array type: object httpGet: - description: HTTPGet specifies the http request to - perform. + description: HTTPGet specifies the http Get request + to perform. + properties: + host: + description: Host name to connect to, defaults + to the pod IP. You probably want to set "Host" + in httpHeaders instead. + type: string + httpHeaders: + description: Custom headers to set in the request. + HTTP allows repeated headers. + items: + description: HTTPHeader describes a custom header + to be used in HTTP probes + properties: + name: + description: The header field name + type: string + value: + description: The header field value + type: string + required: + - name + - value + type: object + type: array + path: + description: Path to access on the HTTP server. + type: string + port: + anyOf: + - type: string + - type: integer + description: Name or number of the port to access + on the container. Number must be in the range + 1 to 65535. Name must be an IANA_SVC_NAME. + scheme: + description: Scheme to use for connecting to the + host. Defaults to HTTP. + type: string + required: + - port + type: object + httpPost: + description: HTTPPost specifies the http Post request + to perform. properties: + body: + description: Body to set in the request. + type: string + form: + additionalProperties: + properties: + values: + items: + type: string + type: array + type: object + description: Form to set in the request body. + type: object host: description: Host name to connect to, defaults to the pod IP. You probably want to set "Host" @@ -3592,7 +3706,7 @@ spec: type: array type: object httpGet: - description: HTTPGet specifies the http request to perform. + description: HTTPGet specifies the http Get request to perform. properties: host: description: Host name to connect to, defaults to the pod @@ -3633,6 +3747,61 @@ spec: required: - port type: object + httpPost: + description: HTTPPost specifies the http Post request to perform. + properties: + body: + description: Body to set in the request. + type: string + form: + additionalProperties: + properties: + values: + items: + type: string + type: array + type: object + description: Form to set in the request body. + type: object + host: + description: Host name to connect to, defaults to the pod + IP. You probably want to set "Host" in httpHeaders instead. + type: string + httpHeaders: + description: Custom headers to set in the request. HTTP + allows repeated headers. + items: + description: HTTPHeader describes a custom header to be + used in HTTP probes + properties: + name: + description: The header field name + type: string + value: + description: The header field value + type: string + required: + - name + - value + type: object + type: array + path: + description: Path to access on the HTTP server. + type: string + port: + anyOf: + - type: string + - type: integer + description: Name or number of the port to access on the + container. Number must be in the range 1 to 65535. Name + must be an IANA_SVC_NAME. + scheme: + description: Scheme to use for connecting to the host. Defaults + to HTTP. + type: string + required: + - port + type: object tcpSocket: description: 'TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported TODO: implement a realistic @@ -3674,8 +3843,63 @@ spec: type: array type: object httpGet: - description: HTTPGet specifies the http request to perform. + description: HTTPGet specifies the http Get request to perform. + properties: + host: + description: Host name to connect to, defaults to the pod + IP. You probably want to set "Host" in httpHeaders instead. + type: string + httpHeaders: + description: Custom headers to set in the request. HTTP + allows repeated headers. + items: + description: HTTPHeader describes a custom header to be + used in HTTP probes + properties: + name: + description: The header field name + type: string + value: + description: The header field value + type: string + required: + - name + - value + type: object + type: array + path: + description: Path to access on the HTTP server. + type: string + port: + anyOf: + - type: string + - type: integer + description: Name or number of the port to access on the + container. Number must be in the range 1 to 65535. Name + must be an IANA_SVC_NAME. + scheme: + description: Scheme to use for connecting to the host. Defaults + to HTTP. + type: string + required: + - port + type: object + httpPost: + description: HTTPPost specifies the http Post request to perform. properties: + body: + description: Body to set in the request. + type: string + form: + additionalProperties: + properties: + values: + items: + type: string + type: array + type: object + description: Form to set in the request body. + type: object host: description: Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. @@ -3756,20 +3980,26 @@ spec: dryRun: type: boolean keepDaily: + format: int64 type: integer keepHourly: + format: int64 type: integer keepLast: + format: int64 type: integer keepMonthly: + format: int64 type: integer keepTags: items: type: string type: array keepWeekly: + format: int64 type: integer keepYearly: + format: int64 type: integer name: type: string diff --git a/api/crds/stash.appscode.com_backupblueprints.yaml b/api/crds/stash.appscode.com_backupblueprints.yaml index c4df27861..e7e099949 100644 --- a/api/crds/stash.appscode.com_backupblueprints.yaml +++ b/api/crds/stash.appscode.com_backupblueprints.yaml @@ -423,6 +423,7 @@ spec: container: type: string maxConnections: + format: int64 type: integer prefix: type: string @@ -432,6 +433,7 @@ spec: bucket: type: string maxConnections: + format: int64 type: integer prefix: type: string @@ -441,6 +443,7 @@ spec: bucket: type: string maxConnections: + format: int64 type: integer prefix: type: string @@ -2262,20 +2265,26 @@ spec: dryRun: type: boolean keepDaily: + format: int64 type: integer keepHourly: + format: int64 type: integer keepLast: + format: int64 type: integer keepMonthly: + format: int64 type: integer keepTags: items: type: string type: array keepWeekly: + format: int64 type: integer keepYearly: + format: int64 type: integer name: type: string diff --git a/api/crds/stash.appscode.com_backupconfigurations.yaml b/api/crds/stash.appscode.com_backupconfigurations.yaml index e973c0435..5c62fb03d 100644 --- a/api/crds/stash.appscode.com_backupconfigurations.yaml +++ b/api/crds/stash.appscode.com_backupconfigurations.yaml @@ -455,7 +455,7 @@ spec: type: array type: object httpGet: - description: HTTPGet specifies the http request to perform. + description: HTTPGet specifies the http Get request to perform. properties: host: description: Host name to connect to, defaults to the pod @@ -496,6 +496,61 @@ spec: required: - port type: object + httpPost: + description: HTTPPost specifies the http Post request to perform. + properties: + body: + description: Body to set in the request. + type: string + form: + additionalProperties: + properties: + values: + items: + type: string + type: array + type: object + description: Form to set in the request body. + type: object + host: + description: Host name to connect to, defaults to the pod + IP. You probably want to set "Host" in httpHeaders instead. + type: string + httpHeaders: + description: Custom headers to set in the request. HTTP + allows repeated headers. + items: + description: HTTPHeader describes a custom header to be + used in HTTP probes + properties: + name: + description: The header field name + type: string + value: + description: The header field value + type: string + required: + - name + - value + type: object + type: array + path: + description: Path to access on the HTTP server. + type: string + port: + anyOf: + - type: string + - type: integer + description: Name or number of the port to access on the + container. Number must be in the range 1 to 65535. Name + must be an IANA_SVC_NAME. + scheme: + description: Scheme to use for connecting to the host. Defaults + to HTTP. + type: string + required: + - port + type: object tcpSocket: description: 'TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported TODO: implement a realistic @@ -537,7 +592,7 @@ spec: type: array type: object httpGet: - description: HTTPGet specifies the http request to perform. + description: HTTPGet specifies the http Get request to perform. properties: host: description: Host name to connect to, defaults to the pod @@ -578,6 +633,61 @@ spec: required: - port type: object + httpPost: + description: HTTPPost specifies the http Post request to perform. + properties: + body: + description: Body to set in the request. + type: string + form: + additionalProperties: + properties: + values: + items: + type: string + type: array + type: object + description: Form to set in the request body. + type: object + host: + description: Host name to connect to, defaults to the pod + IP. You probably want to set "Host" in httpHeaders instead. + type: string + httpHeaders: + description: Custom headers to set in the request. HTTP + allows repeated headers. + items: + description: HTTPHeader describes a custom header to be + used in HTTP probes + properties: + name: + description: The header field name + type: string + value: + description: The header field value + type: string + required: + - name + - value + type: object + type: array + path: + description: Path to access on the HTTP server. + type: string + port: + anyOf: + - type: string + - type: integer + description: Name or number of the port to access on the + container. Number must be in the range 1 to 65535. Name + must be an IANA_SVC_NAME. + scheme: + description: Scheme to use for connecting to the host. Defaults + to HTTP. + type: string + required: + - port + type: object tcpSocket: description: 'TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported TODO: implement a realistic @@ -1208,20 +1318,26 @@ spec: dryRun: type: boolean keepDaily: + format: int64 type: integer keepHourly: + format: int64 type: integer keepLast: + format: int64 type: integer keepMonthly: + format: int64 type: integer keepTags: items: type: string type: array keepWeekly: + format: int64 type: integer keepYearly: + format: int64 type: integer name: type: string diff --git a/api/crds/stash.appscode.com_backupsessions.yaml b/api/crds/stash.appscode.com_backupsessions.yaml index 965e690d9..346e24fac 100644 --- a/api/crds/stash.appscode.com_backupsessions.yaml +++ b/api/crds/stash.appscode.com_backupsessions.yaml @@ -479,18 +479,22 @@ spec: modifiedFiles: description: ModifiedFiles shows total number of files that has been modified since last backup + format: int64 type: integer newFiles: description: NewFiles shows total number of new files that has been created since last backup + format: int64 type: integer totalFiles: description: TotalFiles shows total number of files that has been backed up + format: int64 type: integer unmodifiedFiles: description: UnmodifiedFiles shows total number of files that has not been changed since last backup + format: int64 type: integer type: object name: @@ -505,9 +509,9 @@ spec: description: ProcessingTime indicates time taken to process the target data type: string - size: - description: Size indicates the size of data to backup in - target directory + totalSize: + description: TotalSize indicates the size of data to backup + in target directory type: string uploaded: description: Uploaded indicates size of data uploaded to diff --git a/api/crds/stash.appscode.com_recoveries.yaml b/api/crds/stash.appscode.com_recoveries.yaml index 40857e1c2..63c24bd70 100644 --- a/api/crds/stash.appscode.com_recoveries.yaml +++ b/api/crds/stash.appscode.com_recoveries.yaml @@ -1666,7 +1666,8 @@ spec: description: observedGeneration is the most recent generation observed for this resource. It corresponds to the resource's generation, which is updated on mutation by the API Server. - type: string + format: int64 + type: integer phase: type: string stats: diff --git a/api/crds/stash.appscode.com_repositories.yaml b/api/crds/stash.appscode.com_repositories.yaml index 620f3ffe1..0d446263a 100644 --- a/api/crds/stash.appscode.com_repositories.yaml +++ b/api/crds/stash.appscode.com_repositories.yaml @@ -431,6 +431,7 @@ spec: container: type: string maxConnections: + format: int64 type: integer prefix: type: string @@ -440,6 +441,7 @@ spec: bucket: type: string maxConnections: + format: int64 type: integer prefix: type: string @@ -449,6 +451,7 @@ spec: bucket: type: string maxConnections: + format: int64 type: integer prefix: type: string @@ -1705,16 +1708,18 @@ spec: which is updated on mutation by the API Server. format: int64 type: integer - size: - description: Size show size of repository after last backup - type: string snapshotCount: description: SnapshotCount shows number of snapshots stored in the repository + format: int64 type: integer snapshotsRemovedOnLastCleanup: description: SnapshotsRemovedOnLastCleanup shows number of old snapshots cleaned up according to retention policy on last backup session + format: int64 type: integer + totalSize: + description: TotalSize show size of repository after last backup + type: string type: object type: object versions: diff --git a/api/crds/stash.appscode.com_restics.yaml b/api/crds/stash.appscode.com_restics.yaml index a9b3e458b..06210a10f 100644 --- a/api/crds/stash.appscode.com_restics.yaml +++ b/api/crds/stash.appscode.com_restics.yaml @@ -430,6 +430,7 @@ spec: container: type: string maxConnections: + format: int64 type: integer prefix: type: string @@ -439,6 +440,7 @@ spec: bucket: type: string maxConnections: + format: int64 type: integer prefix: type: string @@ -448,6 +450,7 @@ spec: bucket: type: string maxConnections: + format: int64 type: integer prefix: type: string @@ -1728,20 +1731,26 @@ spec: dryRun: type: boolean keepDaily: + format: int64 type: integer keepHourly: + format: int64 type: integer keepLast: + format: int64 type: integer keepMonthly: + format: int64 type: integer keepTags: items: type: string type: array keepWeekly: + format: int64 type: integer keepYearly: + format: int64 type: integer name: type: string diff --git a/api/openapi-spec/swagger.json b/api/openapi-spec/swagger.json index 0ff10c567..90685021a 100644 --- a/api/openapi-spec/swagger.json +++ b/api/openapi-spec/swagger.json @@ -8806,10 +8806,6 @@ } }, "definitions": { - "com.github.appscode.go.encoding.json.types.IntHash": { - "description": "IntHash represents as int64 Generation and string Hash. It is json serialized into \u003cint64\u003e$\u003chash_string\u003e.", - "type": "string" - }, "dev.appscode.stash.stash.apis.repositories.v1alpha1.Snapshot": { "type": "object", "properties": { @@ -9027,7 +9023,8 @@ "properties": { "observedGeneration": { "description": "observedGeneration is the most recent generation observed for this resource. It corresponds to the resource's generation, which is updated on mutation by the API Server.", - "$ref": "#/definitions/com.github.appscode.go.encoding.json.types.IntHash" + "type": "integer", + "format": "int64" }, "phase": { "type": "string" @@ -9144,19 +9141,19 @@ "type": "integer", "format": "int64" }, - "size": { - "description": "Size show size of repository after last backup", - "type": "string" - }, "snapshotCount": { "description": "SnapshotCount shows number of snapshots stored in the repository", "type": "integer", - "format": "int32" + "format": "int64" }, "snapshotsRemovedOnLastCleanup": { "description": "SnapshotsRemovedOnLastCleanup shows number of old snapshots cleaned up according to retention policy on last backup session", "type": "integer", - "format": "int32" + "format": "int64" + }, + "totalSize": { + "description": "TotalSize show size of repository after last backup", + "type": "string" } } }, @@ -9293,19 +9290,19 @@ }, "keepDaily": { "type": "integer", - "format": "int32" + "format": "int64" }, "keepHourly": { "type": "integer", - "format": "int32" + "format": "int64" }, "keepLast": { "type": "integer", - "format": "int32" + "format": "int64" }, "keepMonthly": { "type": "integer", - "format": "int32" + "format": "int64" }, "keepTags": { "type": "array", @@ -9315,11 +9312,11 @@ }, "keepWeekly": { "type": "integer", - "format": "int32" + "format": "int64" }, "keepYearly": { "type": "integer", - "format": "int32" + "format": "int64" }, "name": { "type": "string" @@ -9880,22 +9877,22 @@ "modifiedFiles": { "description": "ModifiedFiles shows total number of files that has been modified since last backup", "type": "integer", - "format": "int32" + "format": "int64" }, "newFiles": { "description": "NewFiles shows total number of new files that has been created since last backup", "type": "integer", - "format": "int32" + "format": "int64" }, "totalFiles": { "description": "TotalFiles shows total number of files that has been backed up", "type": "integer", - "format": "int32" + "format": "int64" }, "unmodifiedFiles": { "description": "UnmodifiedFiles shows total number of files that has not been changed since last backup", "type": "integer", - "format": "int32" + "format": "int64" } } }, @@ -10038,11 +10035,11 @@ "properties": { "postBackup": { "description": "PostBackup is called immediately after a backup session is complete.", - "$ref": "#/definitions/io.k8s.api.core.v1.Handler" + "$ref": "#/definitions/xyz.kmodules.prober.api.v1.Handler" }, "preBackup": { "description": "PreBackup is called immediately before a backup session is initiated.", - "$ref": "#/definitions/io.k8s.api.core.v1.Handler" + "$ref": "#/definitions/xyz.kmodules.prober.api.v1.Handler" } } }, @@ -10311,8 +10308,8 @@ "description": "ProcessingTime indicates time taken to process the target data", "type": "string" }, - "size": { - "description": "Size indicates the size of data to backup in target directory", + "totalSize": { + "description": "TotalSize indicates the size of data to backup in target directory", "type": "string" }, "uploaded": { @@ -13190,7 +13187,7 @@ }, "maxConnections": { "type": "integer", - "format": "int32" + "format": "int64" }, "prefix": { "type": "string" @@ -13205,7 +13202,7 @@ }, "maxConnections": { "type": "integer", - "format": "int32" + "format": "int64" }, "prefix": { "type": "string" @@ -13249,7 +13246,7 @@ }, "maxConnections": { "type": "integer", - "format": "int32" + "format": "int64" }, "prefix": { "type": "string" @@ -13572,6 +13569,82 @@ "$ref": "#/definitions/xyz.kmodules.offshoot-api.api.v1.PodRuntimeSettings" } } + }, + "xyz.kmodules.prober.api.v1.HTTPPostAction": { + "description": "HTTPPostAction describes an action based on HTTP Post requests.", + "type": "object", + "required": [ + "port" + ], + "properties": { + "body": { + "description": "Body to set in the request.", + "type": "string" + }, + "form": { + "description": "Form to set in the request body.", + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/xyz.kmodules.prober.api.v1.ValueList" + } + }, + "host": { + "description": "Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead.", + "type": "string" + }, + "httpHeaders": { + "description": "Custom headers to set in the request. HTTP allows repeated headers.", + "type": "array", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.HTTPHeader" + } + }, + "path": { + "description": "Path to access on the HTTP server.", + "type": "string" + }, + "port": { + "description": "Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.", + "$ref": "#/definitions/io.k8s.apimachinery.pkg.util.intstr.IntOrString" + }, + "scheme": { + "description": "Scheme to use for connecting to the host. Defaults to HTTP.", + "type": "string" + } + } + }, + "xyz.kmodules.prober.api.v1.Handler": { + "description": "Handler defines a specific action that should be taken", + "type": "object", + "properties": { + "exec": { + "description": "One and only one of the following should be specified. Exec specifies the action to take.", + "$ref": "#/definitions/io.k8s.api.core.v1.ExecAction" + }, + "httpGet": { + "description": "HTTPGet specifies the http Get request to perform.", + "$ref": "#/definitions/io.k8s.api.core.v1.HTTPGetAction" + }, + "httpPost": { + "description": "HTTPPost specifies the http Post request to perform.", + "$ref": "#/definitions/xyz.kmodules.prober.api.v1.HTTPPostAction" + }, + "tcpSocket": { + "description": "TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported", + "$ref": "#/definitions/io.k8s.api.core.v1.TCPSocketAction" + } + } + }, + "xyz.kmodules.prober.api.v1.ValueList": { + "type": "object", + "properties": { + "values": { + "type": "array", + "items": { + "type": "string" + } + } + } } } } \ No newline at end of file diff --git a/apis/repositories/v1alpha1/generated.pb.go b/apis/repositories/v1alpha1/generated.pb.go new file mode 100644 index 000000000..d879d105b --- /dev/null +++ b/apis/repositories/v1alpha1/generated.pb.go @@ -0,0 +1,924 @@ +/* +Copyright The Stash Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: stash.appscode.dev/stash/apis/repositories/v1alpha1/generated.proto + +/* + Package v1alpha1 is a generated protocol buffer package. + + It is generated from these files: + stash.appscode.dev/stash/apis/repositories/v1alpha1/generated.proto + + It has these top-level messages: + Snapshot + SnapshotList + SnapshotStatus +*/ +package v1alpha1 + +import ( + fmt "fmt" + io "io" + math "math" + reflect "reflect" + strings "strings" + + proto "github.com/gogo/protobuf/proto" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package + +func (m *Snapshot) Reset() { *m = Snapshot{} } +func (*Snapshot) ProtoMessage() {} +func (*Snapshot) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{0} } + +func (m *SnapshotList) Reset() { *m = SnapshotList{} } +func (*SnapshotList) ProtoMessage() {} +func (*SnapshotList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{1} } + +func (m *SnapshotStatus) Reset() { *m = SnapshotStatus{} } +func (*SnapshotStatus) ProtoMessage() {} +func (*SnapshotStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{2} } + +func init() { + proto.RegisterType((*Snapshot)(nil), "stash.appscode.dev.stash.apis.repositories.v1alpha1.Snapshot") + proto.RegisterType((*SnapshotList)(nil), "stash.appscode.dev.stash.apis.repositories.v1alpha1.SnapshotList") + proto.RegisterType((*SnapshotStatus)(nil), "stash.appscode.dev.stash.apis.repositories.v1alpha1.SnapshotStatus") +} +func (m *Snapshot) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Snapshot) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size())) + n1, err := m.ObjectMeta.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n1 + dAtA[i] = 0x12 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.Status.Size())) + n2, err := m.Status.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n2 + return i, nil +} + +func (m *SnapshotList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SnapshotList) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.ListMeta.Size())) + n3, err := m.ListMeta.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n3 + if len(m.Items) > 0 { + for _, msg := range m.Items { + dAtA[i] = 0x12 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } + } + return i, nil +} + +func (m *SnapshotStatus) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SnapshotStatus) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Tree))) + i += copy(dAtA[i:], m.Tree) + if len(m.Paths) > 0 { + for _, s := range m.Paths { + dAtA[i] = 0x12 + i++ + l = len(s) + for l >= 1<<7 { + dAtA[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + dAtA[i] = uint8(l) + i++ + i += copy(dAtA[i:], s) + } + } + dAtA[i] = 0x1a + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Hostname))) + i += copy(dAtA[i:], m.Hostname) + dAtA[i] = 0x22 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Username))) + i += copy(dAtA[i:], m.Username) + dAtA[i] = 0x28 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.UID)) + dAtA[i] = 0x30 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.Gid)) + if len(m.Tags) > 0 { + for _, s := range m.Tags { + dAtA[i] = 0x3a + i++ + l = len(s) + for l >= 1<<7 { + dAtA[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + dAtA[i] = uint8(l) + i++ + i += copy(dAtA[i:], s) + } + } + return i, nil +} + +func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return offset + 1 +} +func (m *Snapshot) Size() (n int) { + var l int + _ = l + l = m.ObjectMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Status.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *SnapshotList) Size() (n int) { + var l int + _ = l + l = m.ListMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Items) > 0 { + for _, e := range m.Items { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *SnapshotStatus) Size() (n int) { + var l int + _ = l + l = len(m.Tree) + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Paths) > 0 { + for _, s := range m.Paths { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + l = len(m.Hostname) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Username) + n += 1 + l + sovGenerated(uint64(l)) + n += 1 + sovGenerated(uint64(m.UID)) + n += 1 + sovGenerated(uint64(m.Gid)) + if len(m.Tags) > 0 { + for _, s := range m.Tags { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func sovGenerated(x uint64) (n int) { + for { + n++ + x >>= 7 + if x == 0 { + break + } + } + return n +} +func sozGenerated(x uint64) (n int) { + return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (this *Snapshot) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Snapshot{`, + `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, + `Status:` + strings.Replace(strings.Replace(this.Status.String(), "SnapshotStatus", "SnapshotStatus", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *SnapshotList) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&SnapshotList{`, + `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "Snapshot", "Snapshot", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *SnapshotStatus) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&SnapshotStatus{`, + `Tree:` + fmt.Sprintf("%v", this.Tree) + `,`, + `Paths:` + fmt.Sprintf("%v", this.Paths) + `,`, + `Hostname:` + fmt.Sprintf("%v", this.Hostname) + `,`, + `Username:` + fmt.Sprintf("%v", this.Username) + `,`, + `UID:` + fmt.Sprintf("%v", this.UID) + `,`, + `Gid:` + fmt.Sprintf("%v", this.Gid) + `,`, + `Tags:` + fmt.Sprintf("%v", this.Tags) + `,`, + `}`, + }, "") + return s +} +func valueToStringGenerated(v interface{}) string { + rv := reflect.ValueOf(v) + if rv.IsNil() { + return "nil" + } + pv := reflect.Indirect(rv).Interface() + return fmt.Sprintf("*%v", pv) +} +func (m *Snapshot) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Snapshot: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Snapshot: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SnapshotList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SnapshotList: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SnapshotList: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Items = append(m.Items, Snapshot{}) + if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SnapshotStatus) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SnapshotStatus: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SnapshotStatus: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tree", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Tree = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Paths", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Paths = append(m.Paths, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Hostname", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Hostname = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Username", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Username = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UID", wireType) + } + m.UID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.UID |= (int32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Gid", wireType) + } + m.Gid = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Gid |= (int32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tags", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Tags = append(m.Tags, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipGenerated(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowGenerated + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowGenerated + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + return iNdEx, nil + case 1: + iNdEx += 8 + return iNdEx, nil + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowGenerated + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + iNdEx += length + if length < 0 { + return 0, ErrInvalidLengthGenerated + } + return iNdEx, nil + case 3: + for { + var innerWire uint64 + var start int = iNdEx + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowGenerated + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + innerWire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + innerWireType := int(innerWire & 0x7) + if innerWireType == 4 { + break + } + next, err := skipGenerated(dAtA[start:]) + if err != nil { + return 0, err + } + iNdEx = start + next + } + return iNdEx, nil + case 4: + return iNdEx, nil + case 5: + iNdEx += 4 + return iNdEx, nil + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + } + panic("unreachable") +} + +var ( + ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") +) + +func init() { + proto.RegisterFile("stash.appscode.dev/stash/apis/repositories/v1alpha1/generated.proto", fileDescriptorGenerated) +} + +var fileDescriptorGenerated = []byte{ + // 519 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x91, 0xb1, 0x8f, 0xd3, 0x30, + 0x18, 0xc5, 0x9b, 0x6b, 0x7b, 0xa4, 0xee, 0x71, 0x42, 0x99, 0xa2, 0x0a, 0xd2, 0xaa, 0x53, 0x07, + 0xb0, 0xe9, 0x81, 0x10, 0x0b, 0x4b, 0x0e, 0x09, 0x4e, 0x02, 0x81, 0x7c, 0xdc, 0x82, 0x18, 0x70, + 0x9b, 0x8f, 0xc4, 0x94, 0xd4, 0x56, 0xec, 0x54, 0x62, 0x63, 0x67, 0xe1, 0xcf, 0xea, 0xd8, 0xf1, + 0x58, 0x4e, 0x34, 0xfc, 0x23, 0xc8, 0x4e, 0x52, 0x5a, 0x2a, 0x04, 0x82, 0x2d, 0x7e, 0x7e, 0xdf, + 0xef, 0x7b, 0xcf, 0x41, 0xa7, 0x4a, 0x33, 0x95, 0x60, 0x26, 0xa5, 0x9a, 0x8a, 0x08, 0x70, 0x04, + 0x0b, 0x62, 0x25, 0xc2, 0x24, 0x57, 0x24, 0x03, 0x29, 0x14, 0xd7, 0x22, 0xe3, 0xa0, 0xc8, 0x62, + 0xcc, 0x3e, 0xc8, 0x84, 0x8d, 0x49, 0x0c, 0x73, 0xc8, 0x98, 0x86, 0x08, 0xcb, 0x4c, 0x68, 0xe1, + 0xdd, 0xdb, 0x87, 0xe0, 0x5a, 0xe2, 0x0a, 0x6f, 0x43, 0x70, 0x0d, 0xe9, 0xdd, 0x89, 0xb9, 0x4e, + 0xf2, 0x09, 0x9e, 0x8a, 0x94, 0xc4, 0x22, 0x16, 0xc4, 0xb2, 0x26, 0xf9, 0x3b, 0x7b, 0xb2, 0x07, + 0xfb, 0x55, 0xee, 0xe8, 0xdd, 0x9f, 0x3d, 0x54, 0x98, 0x0b, 0x13, 0x2b, 0x65, 0xd3, 0x84, 0xcf, + 0x21, 0xfb, 0x48, 0xe4, 0x2c, 0x2e, 0x73, 0xa6, 0xa0, 0x19, 0x59, 0xec, 0x25, 0xeb, 0x91, 0xdf, + 0x4d, 0x65, 0xf9, 0x5c, 0xf3, 0x14, 0xf6, 0x06, 0x1e, 0xfc, 0x69, 0x40, 0x4d, 0x13, 0x48, 0xd9, + 0xaf, 0x73, 0xc3, 0xaf, 0x0e, 0x72, 0xcf, 0xe7, 0x4c, 0xaa, 0x44, 0x68, 0xef, 0x2d, 0x72, 0x4d, + 0xa0, 0x88, 0x69, 0xe6, 0x3b, 0x03, 0x67, 0xd4, 0x3d, 0xb9, 0x8b, 0x4b, 0x2e, 0xde, 0xe6, 0x62, + 0x39, 0x8b, 0xcb, 0x17, 0x32, 0x6e, 0xbc, 0x18, 0xe3, 0x17, 0x93, 0xf7, 0x30, 0xd5, 0xcf, 0x41, + 0xb3, 0xd0, 0x5b, 0x5e, 0xf5, 0x1b, 0xc5, 0x55, 0x1f, 0xfd, 0xd4, 0xe8, 0x86, 0xea, 0xcd, 0xd0, + 0xa1, 0xd2, 0x4c, 0xe7, 0xca, 0x3f, 0xb0, 0xfc, 0x53, 0xfc, 0x0f, 0xbf, 0x00, 0xd7, 0x81, 0xcf, + 0x2d, 0x2a, 0x3c, 0xae, 0x56, 0x1e, 0x96, 0x67, 0x5a, 0xad, 0x18, 0xae, 0x1c, 0x74, 0x54, 0x5b, + 0x9f, 0x71, 0xa5, 0xbd, 0x37, 0x7b, 0xfd, 0xf0, 0xdf, 0xf5, 0x33, 0xd3, 0xb6, 0xdd, 0x8d, 0x6a, + 0x95, 0x5b, 0x2b, 0x5b, 0xdd, 0x26, 0xa8, 0xcd, 0x35, 0xa4, 0xa6, 0x5a, 0x73, 0xd4, 0x3d, 0x79, + 0xf4, 0x5f, 0xd5, 0xc2, 0xeb, 0xd5, 0xa6, 0xf6, 0x99, 0x61, 0xd2, 0x12, 0x3d, 0xfc, 0x7c, 0x80, + 0x8e, 0x77, 0xdb, 0x7b, 0x03, 0xd4, 0xd2, 0x19, 0x80, 0x2d, 0xd4, 0x09, 0x8f, 0xaa, 0xb1, 0xd6, + 0xab, 0x0c, 0x80, 0xda, 0x1b, 0xaf, 0x8f, 0xda, 0x92, 0xe9, 0xa4, 0x0c, 0xd6, 0x09, 0x3b, 0x86, + 0xfa, 0xd2, 0x08, 0xb4, 0xd4, 0xbd, 0xdb, 0xc8, 0x4d, 0x84, 0xd2, 0x73, 0x96, 0x82, 0xdf, 0xb4, + 0x98, 0x4d, 0xcf, 0xa7, 0x95, 0x4e, 0x37, 0x0e, 0xe3, 0xce, 0x15, 0x64, 0xd6, 0xdd, 0xda, 0x75, + 0x5f, 0x54, 0x3a, 0xdd, 0x38, 0xbc, 0x5b, 0xa8, 0x99, 0xf3, 0xc8, 0x6f, 0x0f, 0x9c, 0x51, 0x3b, + 0xec, 0x56, 0xc6, 0xe6, 0xc5, 0xd9, 0x63, 0x6a, 0x74, 0x73, 0x1d, 0xf3, 0xc8, 0x3f, 0xdc, 0xbd, + 0x7e, 0xc2, 0x23, 0x6a, 0x74, 0xef, 0x26, 0x6a, 0x69, 0x16, 0x2b, 0xff, 0x9a, 0x4d, 0xee, 0xda, + 0x62, 0x2c, 0x56, 0xd4, 0xaa, 0x21, 0x5e, 0xae, 0x83, 0xc6, 0x6a, 0x1d, 0x34, 0x2e, 0xd7, 0x41, + 0xe3, 0x53, 0x11, 0x38, 0xcb, 0x22, 0x70, 0x56, 0x45, 0xe0, 0x5c, 0x16, 0x81, 0xf3, 0xad, 0x08, + 0x9c, 0x2f, 0xdf, 0x83, 0xc6, 0x6b, 0xb7, 0x7e, 0xdc, 0x1f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x83, + 0x43, 0x44, 0xee, 0x35, 0x04, 0x00, 0x00, +} diff --git a/apis/repositories/v1alpha1/generated.proto b/apis/repositories/v1alpha1/generated.proto new file mode 100644 index 000000000..74cd7969a --- /dev/null +++ b/apis/repositories/v1alpha1/generated.proto @@ -0,0 +1,57 @@ +/* +Copyright The Stash Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// This file was autogenerated by go-to-protobuf. Do not edit it manually! + +syntax = 'proto2'; + +package stash.appscode.dev.stash.apis.repositories.v1alpha1; + +import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; +import "k8s.io/apimachinery/pkg/runtime/generated.proto"; +import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; + +// Package-wide variables from generator "generated". +option go_package = "v1alpha1"; + +message Snapshot { + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + + optional SnapshotStatus status = 2; +} + +message SnapshotList { + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + + repeated Snapshot items = 2; +} + +message SnapshotStatus { + optional string tree = 1; + + repeated string paths = 2; + + optional string hostname = 3; + + optional string username = 4; + + optional int32 uid = 5; + + optional int32 gid = 6; + + repeated string tags = 7; +} + diff --git a/apis/repositories/v1alpha1/openapi_generated.go b/apis/repositories/v1alpha1/openapi_generated.go index 8ee3f4d7e..7771e52e2 100644 --- a/apis/repositories/v1alpha1/openapi_generated.go +++ b/apis/repositories/v1alpha1/openapi_generated.go @@ -351,6 +351,9 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "kmodules.xyz/offshoot-api/api/v1.ServicePort": schema_kmodulesxyz_offshoot_api_api_v1_ServicePort(ref), "kmodules.xyz/offshoot-api/api/v1.ServiceSpec": schema_kmodulesxyz_offshoot_api_api_v1_ServiceSpec(ref), "kmodules.xyz/offshoot-api/api/v1.ServiceTemplateSpec": schema_kmodulesxyz_offshoot_api_api_v1_ServiceTemplateSpec(ref), + "kmodules.xyz/prober/api/v1.HTTPPostAction": schema_kmodulesxyz_prober_api_v1_HTTPPostAction(ref), + "kmodules.xyz/prober/api/v1.Handler": schema_kmodulesxyz_prober_api_v1_Handler(ref), + "kmodules.xyz/prober/api/v1.ValueList": schema_kmodulesxyz_prober_api_v1_ValueList(ref), "stash.appscode.dev/stash/apis/repositories/v1alpha1.Snapshot": schema_stash_apis_repositories_v1alpha1_Snapshot(ref), "stash.appscode.dev/stash/apis/repositories/v1alpha1.SnapshotList": schema_stash_apis_repositories_v1alpha1_SnapshotList(ref), "stash.appscode.dev/stash/apis/repositories/v1alpha1.SnapshotStatus": schema_stash_apis_repositories_v1alpha1_SnapshotStatus(ref), @@ -14459,8 +14462,7 @@ func schema_custom_resources_apis_appcatalog_v1alpha1_AppBinding(ref common.Refe return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "AppBinding defines a generic user application.", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -14864,7 +14866,7 @@ func schema_kmodulesxyz_objectstore_api_api_v1_AzureSpec(ref common.ReferenceCal "maxConnections": { SchemaProps: spec.SchemaProps{ Type: []string{"integer"}, - Format: "int32", + Format: "int64", }, }, }, @@ -14894,7 +14896,7 @@ func schema_kmodulesxyz_objectstore_api_api_v1_B2Spec(ref common.ReferenceCallba "maxConnections": { SchemaProps: spec.SchemaProps{ Type: []string{"integer"}, - Format: "int32", + Format: "int64", }, }, }, @@ -14979,7 +14981,7 @@ func schema_kmodulesxyz_objectstore_api_api_v1_GCSSpec(ref common.ReferenceCallb "maxConnections": { SchemaProps: spec.SchemaProps{ Type: []string{"integer"}, - Format: "int32", + Format: "int64", }, }, }, @@ -15943,6 +15945,147 @@ func schema_kmodulesxyz_offshoot_api_api_v1_ServiceTemplateSpec(ref common.Refer } } +func schema_kmodulesxyz_prober_api_v1_HTTPPostAction(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "HTTPPostAction describes an action based on HTTP Post requests.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "path": { + SchemaProps: spec.SchemaProps{ + Description: "Path to access on the HTTP server.", + Type: []string{"string"}, + Format: "", + }, + }, + "port": { + SchemaProps: spec.SchemaProps{ + Description: "Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.", + Ref: ref("k8s.io/apimachinery/pkg/util/intstr.IntOrString"), + }, + }, + "host": { + SchemaProps: spec.SchemaProps{ + Description: "Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead.", + Type: []string{"string"}, + Format: "", + }, + }, + "scheme": { + SchemaProps: spec.SchemaProps{ + Description: "Scheme to use for connecting to the host. Defaults to HTTP.", + Type: []string{"string"}, + Format: "", + }, + }, + "httpHeaders": { + SchemaProps: spec.SchemaProps{ + Description: "Custom headers to set in the request. HTTP allows repeated headers.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("k8s.io/api/core/v1.HTTPHeader"), + }, + }, + }, + }, + }, + "body": { + SchemaProps: spec.SchemaProps{ + Description: "Body to set in the request.", + Type: []string{"string"}, + Format: "", + }, + }, + "form": { + SchemaProps: spec.SchemaProps{ + Description: "Form to set in the request body.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("kmodules.xyz/prober/api/v1.ValueList"), + }, + }, + }, + }, + }, + }, + Required: []string{"port"}, + }, + }, + Dependencies: []string{ + "k8s.io/api/core/v1.HTTPHeader", "k8s.io/apimachinery/pkg/util/intstr.IntOrString", "kmodules.xyz/prober/api/v1.ValueList"}, + } +} + +func schema_kmodulesxyz_prober_api_v1_Handler(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "Handler defines a specific action that should be taken", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "exec": { + SchemaProps: spec.SchemaProps{ + Description: "One and only one of the following should be specified. Exec specifies the action to take.", + Ref: ref("k8s.io/api/core/v1.ExecAction"), + }, + }, + "httpGet": { + SchemaProps: spec.SchemaProps{ + Description: "HTTPGet specifies the http Get request to perform.", + Ref: ref("k8s.io/api/core/v1.HTTPGetAction"), + }, + }, + "httpPost": { + SchemaProps: spec.SchemaProps{ + Description: "HTTPPost specifies the http Post request to perform.", + Ref: ref("kmodules.xyz/prober/api/v1.HTTPPostAction"), + }, + }, + "tcpSocket": { + SchemaProps: spec.SchemaProps{ + Description: "TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported", + Ref: ref("k8s.io/api/core/v1.TCPSocketAction"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "k8s.io/api/core/v1.ExecAction", "k8s.io/api/core/v1.HTTPGetAction", "k8s.io/api/core/v1.TCPSocketAction", "kmodules.xyz/prober/api/v1.HTTPPostAction"}, + } +} + +func schema_kmodulesxyz_prober_api_v1_ValueList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "values": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + }, + }, + }, + } +} + func schema_stash_apis_repositories_v1alpha1_Snapshot(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ diff --git a/apis/repositories/v1alpha1/types.go b/apis/repositories/v1alpha1/types.go index 06dc9ab5f..22b82a923 100644 --- a/apis/repositories/v1alpha1/types.go +++ b/apis/repositories/v1alpha1/types.go @@ -33,24 +33,24 @@ const ( type Snapshot struct { metav1.TypeMeta `json:",inline,omitempty"` - metav1.ObjectMeta `json:"metadata,omitempty"` - Status SnapshotStatus `json:"status,omitempty"` + metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + Status SnapshotStatus `json:"status,omitempty" protobuf:"bytes,2,opt,name=status"` } type SnapshotStatus struct { - Tree string `json:"tree"` - Paths []string `json:"paths"` - Hostname string `json:"hostname"` - Username string `json:"username"` - UID int `json:"uid"` - Gid int `json:"gid"` - Tags []string `json:",omitempty"` + Tree string `json:"tree" protobuf:"bytes,1,opt,name=tree"` + Paths []string `json:"paths" protobuf:"bytes,2,rep,name=paths"` + Hostname string `json:"hostname" protobuf:"bytes,3,opt,name=hostname"` + Username string `json:"username" protobuf:"bytes,4,opt,name=username"` + UID int32 `json:"uid" protobuf:"varint,5,opt,name=uid"` + Gid int32 `json:"gid" protobuf:"varint,6,opt,name=gid"` + Tags []string `json:",omitempty" protobuf:"bytes,7,rep,name=tags"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object type SnapshotList struct { metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []Snapshot `json:"items"` + metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + Items []Snapshot `json:"items" protobuf:"bytes,2,rep,name=items"` } diff --git a/apis/repositories/v1alpha1/zz_generated.conversion.go b/apis/repositories/v1alpha1/zz_generated.conversion.go index f55774205..c7c22053e 100644 --- a/apis/repositories/v1alpha1/zz_generated.conversion.go +++ b/apis/repositories/v1alpha1/zz_generated.conversion.go @@ -97,7 +97,17 @@ func Convert_repositories_Snapshot_To_v1alpha1_Snapshot(in *repositories.Snapsho func autoConvert_v1alpha1_SnapshotList_To_repositories_SnapshotList(in *SnapshotList, out *repositories.SnapshotList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]repositories.Snapshot)(unsafe.Pointer(&in.Items)) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]repositories.Snapshot, len(*in)) + for i := range *in { + if err := Convert_v1alpha1_Snapshot_To_repositories_Snapshot(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Items = nil + } return nil } @@ -108,7 +118,17 @@ func Convert_v1alpha1_SnapshotList_To_repositories_SnapshotList(in *SnapshotList func autoConvert_repositories_SnapshotList_To_v1alpha1_SnapshotList(in *repositories.SnapshotList, out *SnapshotList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]Snapshot)(unsafe.Pointer(&in.Items)) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]Snapshot, len(*in)) + for i := range *in { + if err := Convert_repositories_Snapshot_To_v1alpha1_Snapshot(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Items = nil + } return nil } @@ -122,8 +142,8 @@ func autoConvert_v1alpha1_SnapshotStatus_To_repositories_SnapshotStatus(in *Snap out.Paths = *(*[]string)(unsafe.Pointer(&in.Paths)) out.Hostname = in.Hostname out.Username = in.Username - out.UID = in.UID - out.Gid = in.Gid + out.UID = int(in.UID) + out.Gid = int(in.Gid) out.Tags = *(*[]string)(unsafe.Pointer(&in.Tags)) return nil } @@ -138,8 +158,8 @@ func autoConvert_repositories_SnapshotStatus_To_v1alpha1_SnapshotStatus(in *repo out.Paths = *(*[]string)(unsafe.Pointer(&in.Paths)) out.Hostname = in.Hostname out.Username = in.Username - out.UID = in.UID - out.Gid = in.Gid + out.UID = int32(in.UID) + out.Gid = int32(in.Gid) out.Tags = *(*[]string)(unsafe.Pointer(&in.Tags)) return nil } diff --git a/apis/stash/v1alpha1/generated.pb.go b/apis/stash/v1alpha1/generated.pb.go new file mode 100644 index 000000000..00da76041 --- /dev/null +++ b/apis/stash/v1alpha1/generated.pb.go @@ -0,0 +1,4210 @@ +/* +Copyright The Stash Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: stash.appscode.dev/stash/apis/stash/v1alpha1/generated.proto + +/* + Package v1alpha1 is a generated protocol buffer package. + + It is generated from these files: + stash.appscode.dev/stash/apis/stash/v1alpha1/generated.proto + + It has these top-level messages: + FileGroup + LocalTypedReference + Recovery + RecoveryList + RecoverySpec + RecoveryStatus + Repository + RepositoryList + RepositorySpec + RepositoryStatus + Restic + ResticList + ResticSpec + RestoreStats + RetentionPolicy +*/ +package v1alpha1 + +import ( + fmt "fmt" + io "io" + math "math" + reflect "reflect" + strings "strings" + + proto "github.com/gogo/protobuf/proto" + github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys" + k8s_io_api_core_v1 "k8s.io/api/core/v1" + k8s_io_apimachinery_pkg_apis_meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + kmodules_xyz_objectstore_api_api_v1 "kmodules.xyz/objectstore-api/api/v1" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package + +func (m *FileGroup) Reset() { *m = FileGroup{} } +func (*FileGroup) ProtoMessage() {} +func (*FileGroup) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{0} } + +func (m *LocalTypedReference) Reset() { *m = LocalTypedReference{} } +func (*LocalTypedReference) ProtoMessage() {} +func (*LocalTypedReference) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{1} } + +func (m *Recovery) Reset() { *m = Recovery{} } +func (*Recovery) ProtoMessage() {} +func (*Recovery) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{2} } + +func (m *RecoveryList) Reset() { *m = RecoveryList{} } +func (*RecoveryList) ProtoMessage() {} +func (*RecoveryList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{3} } + +func (m *RecoverySpec) Reset() { *m = RecoverySpec{} } +func (*RecoverySpec) ProtoMessage() {} +func (*RecoverySpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{4} } + +func (m *RecoveryStatus) Reset() { *m = RecoveryStatus{} } +func (*RecoveryStatus) ProtoMessage() {} +func (*RecoveryStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{5} } + +func (m *Repository) Reset() { *m = Repository{} } +func (*Repository) ProtoMessage() {} +func (*Repository) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{6} } + +func (m *RepositoryList) Reset() { *m = RepositoryList{} } +func (*RepositoryList) ProtoMessage() {} +func (*RepositoryList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{7} } + +func (m *RepositorySpec) Reset() { *m = RepositorySpec{} } +func (*RepositorySpec) ProtoMessage() {} +func (*RepositorySpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{8} } + +func (m *RepositoryStatus) Reset() { *m = RepositoryStatus{} } +func (*RepositoryStatus) ProtoMessage() {} +func (*RepositoryStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{9} } + +func (m *Restic) Reset() { *m = Restic{} } +func (*Restic) ProtoMessage() {} +func (*Restic) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{10} } + +func (m *ResticList) Reset() { *m = ResticList{} } +func (*ResticList) ProtoMessage() {} +func (*ResticList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{11} } + +func (m *ResticSpec) Reset() { *m = ResticSpec{} } +func (*ResticSpec) ProtoMessage() {} +func (*ResticSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{12} } + +func (m *RestoreStats) Reset() { *m = RestoreStats{} } +func (*RestoreStats) ProtoMessage() {} +func (*RestoreStats) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{13} } + +func (m *RetentionPolicy) Reset() { *m = RetentionPolicy{} } +func (*RetentionPolicy) ProtoMessage() {} +func (*RetentionPolicy) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{14} } + +func init() { + proto.RegisterType((*FileGroup)(nil), "stash.appscode.dev.stash.apis.stash.v1alpha1.FileGroup") + proto.RegisterType((*LocalTypedReference)(nil), "stash.appscode.dev.stash.apis.stash.v1alpha1.LocalTypedReference") + proto.RegisterType((*Recovery)(nil), "stash.appscode.dev.stash.apis.stash.v1alpha1.Recovery") + proto.RegisterType((*RecoveryList)(nil), "stash.appscode.dev.stash.apis.stash.v1alpha1.RecoveryList") + proto.RegisterType((*RecoverySpec)(nil), "stash.appscode.dev.stash.apis.stash.v1alpha1.RecoverySpec") + proto.RegisterType((*RecoveryStatus)(nil), "stash.appscode.dev.stash.apis.stash.v1alpha1.RecoveryStatus") + proto.RegisterType((*Repository)(nil), "stash.appscode.dev.stash.apis.stash.v1alpha1.Repository") + proto.RegisterType((*RepositoryList)(nil), "stash.appscode.dev.stash.apis.stash.v1alpha1.RepositoryList") + proto.RegisterType((*RepositorySpec)(nil), "stash.appscode.dev.stash.apis.stash.v1alpha1.RepositorySpec") + proto.RegisterType((*RepositoryStatus)(nil), "stash.appscode.dev.stash.apis.stash.v1alpha1.RepositoryStatus") + proto.RegisterType((*Restic)(nil), "stash.appscode.dev.stash.apis.stash.v1alpha1.Restic") + proto.RegisterType((*ResticList)(nil), "stash.appscode.dev.stash.apis.stash.v1alpha1.ResticList") + proto.RegisterType((*ResticSpec)(nil), "stash.appscode.dev.stash.apis.stash.v1alpha1.ResticSpec") + proto.RegisterType((*RestoreStats)(nil), "stash.appscode.dev.stash.apis.stash.v1alpha1.RestoreStats") + proto.RegisterType((*RetentionPolicy)(nil), "stash.appscode.dev.stash.apis.stash.v1alpha1.RetentionPolicy") +} +func (m *FileGroup) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *FileGroup) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Path))) + i += copy(dAtA[i:], m.Path) + if len(m.Tags) > 0 { + for _, s := range m.Tags { + dAtA[i] = 0x12 + i++ + l = len(s) + for l >= 1<<7 { + dAtA[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + dAtA[i] = uint8(l) + i++ + i += copy(dAtA[i:], s) + } + } + dAtA[i] = 0x1a + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.RetentionPolicyName))) + i += copy(dAtA[i:], m.RetentionPolicyName) + return i, nil +} + +func (m *LocalTypedReference) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *LocalTypedReference) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Kind))) + i += copy(dAtA[i:], m.Kind) + dAtA[i] = 0x12 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) + i += copy(dAtA[i:], m.Name) + dAtA[i] = 0x1a + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.APIVersion))) + i += copy(dAtA[i:], m.APIVersion) + return i, nil +} + +func (m *Recovery) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Recovery) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size())) + n1, err := m.ObjectMeta.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n1 + dAtA[i] = 0x12 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.Spec.Size())) + n2, err := m.Spec.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n2 + dAtA[i] = 0x1a + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.Status.Size())) + n3, err := m.Status.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n3 + return i, nil +} + +func (m *RecoveryList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RecoveryList) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.ListMeta.Size())) + n4, err := m.ListMeta.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n4 + if len(m.Items) > 0 { + for _, msg := range m.Items { + dAtA[i] = 0x12 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } + } + return i, nil +} + +func (m *RecoverySpec) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RecoverySpec) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.Repository.Size())) + n5, err := m.Repository.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n5 + dAtA[i] = 0x12 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Snapshot))) + i += copy(dAtA[i:], m.Snapshot) + if len(m.Paths) > 0 { + for _, s := range m.Paths { + dAtA[i] = 0x1a + i++ + l = len(s) + for l >= 1<<7 { + dAtA[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + dAtA[i] = uint8(l) + i++ + i += copy(dAtA[i:], s) + } + } + if len(m.RecoveredVolumes) > 0 { + for _, msg := range m.RecoveredVolumes { + dAtA[i] = 0x22 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } + } + if len(m.ImagePullSecrets) > 0 { + for _, msg := range m.ImagePullSecrets { + dAtA[i] = 0x2a + i++ + i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } + } + if len(m.NodeSelector) > 0 { + keysForNodeSelector := make([]string, 0, len(m.NodeSelector)) + for k := range m.NodeSelector { + keysForNodeSelector = append(keysForNodeSelector, string(k)) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForNodeSelector) + for _, k := range keysForNodeSelector { + dAtA[i] = 0x32 + i++ + v := m.NodeSelector[string(k)] + mapSize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v))) + i = encodeVarintGenerated(dAtA, i, uint64(mapSize)) + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(k))) + i += copy(dAtA[i:], k) + dAtA[i] = 0x12 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(v))) + i += copy(dAtA[i:], v) + } + } + return i, nil +} + +func (m *RecoveryStatus) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RecoveryStatus) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0x8 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.ObservedGeneration)) + dAtA[i] = 0x12 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Phase))) + i += copy(dAtA[i:], m.Phase) + if len(m.Stats) > 0 { + for _, msg := range m.Stats { + dAtA[i] = 0x1a + i++ + i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } + } + return i, nil +} + +func (m *Repository) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Repository) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size())) + n6, err := m.ObjectMeta.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n6 + dAtA[i] = 0x12 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.Spec.Size())) + n7, err := m.Spec.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n7 + dAtA[i] = 0x1a + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.Status.Size())) + n8, err := m.Status.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n8 + return i, nil +} + +func (m *RepositoryList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RepositoryList) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.ListMeta.Size())) + n9, err := m.ListMeta.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n9 + if len(m.Items) > 0 { + for _, msg := range m.Items { + dAtA[i] = 0x12 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } + } + return i, nil +} + +func (m *RepositorySpec) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RepositorySpec) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.Backend.Size())) + n10, err := m.Backend.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n10 + dAtA[i] = 0x10 + i++ + if m.WipeOut { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i++ + return i, nil +} + +func (m *RepositoryStatus) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RepositoryStatus) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0x8 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.ObservedGeneration)) + if m.FirstBackupTime != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.FirstBackupTime.Size())) + n11, err := m.FirstBackupTime.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n11 + } + if m.LastBackupTime != nil { + dAtA[i] = 0x1a + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.LastBackupTime.Size())) + n12, err := m.LastBackupTime.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n12 + } + if m.Integrity != nil { + dAtA[i] = 0x20 + i++ + if *m.Integrity { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i++ + } + dAtA[i] = 0x30 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.SnapshotCount)) + dAtA[i] = 0x38 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.SnapshotsRemovedOnLastCleanup)) + if m.LastSuccessfulBackupTime != nil { + dAtA[i] = 0x42 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.LastSuccessfulBackupTime.Size())) + n13, err := m.LastSuccessfulBackupTime.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n13 + } + dAtA[i] = 0x4a + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.LastBackupDuration))) + i += copy(dAtA[i:], m.LastBackupDuration) + dAtA[i] = 0x50 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.BackupCount)) + dAtA[i] = 0x5a + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.TotalSize))) + i += copy(dAtA[i:], m.TotalSize) + return i, nil +} + +func (m *Restic) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Restic) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size())) + n14, err := m.ObjectMeta.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n14 + dAtA[i] = 0x12 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.Spec.Size())) + n15, err := m.Spec.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n15 + return i, nil +} + +func (m *ResticList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ResticList) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.ListMeta.Size())) + n16, err := m.ListMeta.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n16 + if len(m.Items) > 0 { + for _, msg := range m.Items { + dAtA[i] = 0x12 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } + } + return i, nil +} + +func (m *ResticSpec) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ResticSpec) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.Selector.Size())) + n17, err := m.Selector.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n17 + if len(m.FileGroups) > 0 { + for _, msg := range m.FileGroups { + dAtA[i] = 0x12 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } + } + dAtA[i] = 0x1a + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.Backend.Size())) + n18, err := m.Backend.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n18 + dAtA[i] = 0x22 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Schedule))) + i += copy(dAtA[i:], m.Schedule) + if len(m.VolumeMounts) > 0 { + for _, msg := range m.VolumeMounts { + dAtA[i] = 0x2a + i++ + i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } + } + dAtA[i] = 0x32 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.Resources.Size())) + n19, err := m.Resources.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n19 + if len(m.RetentionPolicies) > 0 { + for _, msg := range m.RetentionPolicies { + dAtA[i] = 0x3a + i++ + i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } + } + dAtA[i] = 0x42 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) + i += copy(dAtA[i:], m.Type) + dAtA[i] = 0x48 + i++ + if m.Paused { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i++ + if len(m.ImagePullSecrets) > 0 { + for _, msg := range m.ImagePullSecrets { + dAtA[i] = 0x52 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } + } + return i, nil +} + +func (m *RestoreStats) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RestoreStats) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Path))) + i += copy(dAtA[i:], m.Path) + dAtA[i] = 0x12 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Phase))) + i += copy(dAtA[i:], m.Phase) + dAtA[i] = 0x1a + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Duration))) + i += copy(dAtA[i:], m.Duration) + return i, nil +} + +func (m *RetentionPolicy) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RetentionPolicy) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) + i += copy(dAtA[i:], m.Name) + dAtA[i] = 0x10 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.KeepLast)) + dAtA[i] = 0x18 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.KeepHourly)) + dAtA[i] = 0x20 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.KeepDaily)) + dAtA[i] = 0x28 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.KeepWeekly)) + dAtA[i] = 0x30 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.KeepMonthly)) + dAtA[i] = 0x38 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.KeepYearly)) + if len(m.KeepTags) > 0 { + for _, s := range m.KeepTags { + dAtA[i] = 0x42 + i++ + l = len(s) + for l >= 1<<7 { + dAtA[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + dAtA[i] = uint8(l) + i++ + i += copy(dAtA[i:], s) + } + } + dAtA[i] = 0x48 + i++ + if m.Prune { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i++ + dAtA[i] = 0x50 + i++ + if m.DryRun { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i++ + return i, nil +} + +func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return offset + 1 +} +func (m *FileGroup) Size() (n int) { + var l int + _ = l + l = len(m.Path) + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Tags) > 0 { + for _, s := range m.Tags { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + l = len(m.RetentionPolicyName) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *LocalTypedReference) Size() (n int) { + var l int + _ = l + l = len(m.Kind) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Name) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.APIVersion) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *Recovery) Size() (n int) { + var l int + _ = l + l = m.ObjectMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Spec.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Status.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *RecoveryList) Size() (n int) { + var l int + _ = l + l = m.ListMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Items) > 0 { + for _, e := range m.Items { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *RecoverySpec) Size() (n int) { + var l int + _ = l + l = m.Repository.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Snapshot) + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Paths) > 0 { + for _, s := range m.Paths { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.RecoveredVolumes) > 0 { + for _, e := range m.RecoveredVolumes { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.ImagePullSecrets) > 0 { + for _, e := range m.ImagePullSecrets { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.NodeSelector) > 0 { + for k, v := range m.NodeSelector { + _ = k + _ = v + mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v))) + n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) + } + } + return n +} + +func (m *RecoveryStatus) Size() (n int) { + var l int + _ = l + n += 1 + sovGenerated(uint64(m.ObservedGeneration)) + l = len(m.Phase) + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Stats) > 0 { + for _, e := range m.Stats { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *Repository) Size() (n int) { + var l int + _ = l + l = m.ObjectMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Spec.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Status.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *RepositoryList) Size() (n int) { + var l int + _ = l + l = m.ListMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Items) > 0 { + for _, e := range m.Items { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *RepositorySpec) Size() (n int) { + var l int + _ = l + l = m.Backend.Size() + n += 1 + l + sovGenerated(uint64(l)) + n += 2 + return n +} + +func (m *RepositoryStatus) Size() (n int) { + var l int + _ = l + n += 1 + sovGenerated(uint64(m.ObservedGeneration)) + if m.FirstBackupTime != nil { + l = m.FirstBackupTime.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.LastBackupTime != nil { + l = m.LastBackupTime.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.Integrity != nil { + n += 2 + } + n += 1 + sovGenerated(uint64(m.SnapshotCount)) + n += 1 + sovGenerated(uint64(m.SnapshotsRemovedOnLastCleanup)) + if m.LastSuccessfulBackupTime != nil { + l = m.LastSuccessfulBackupTime.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + l = len(m.LastBackupDuration) + n += 1 + l + sovGenerated(uint64(l)) + n += 1 + sovGenerated(uint64(m.BackupCount)) + l = len(m.TotalSize) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *Restic) Size() (n int) { + var l int + _ = l + l = m.ObjectMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Spec.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *ResticList) Size() (n int) { + var l int + _ = l + l = m.ListMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Items) > 0 { + for _, e := range m.Items { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *ResticSpec) Size() (n int) { + var l int + _ = l + l = m.Selector.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.FileGroups) > 0 { + for _, e := range m.FileGroups { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + l = m.Backend.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Schedule) + n += 1 + l + sovGenerated(uint64(l)) + if len(m.VolumeMounts) > 0 { + for _, e := range m.VolumeMounts { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + l = m.Resources.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.RetentionPolicies) > 0 { + for _, e := range m.RetentionPolicies { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + l = len(m.Type) + n += 1 + l + sovGenerated(uint64(l)) + n += 2 + if len(m.ImagePullSecrets) > 0 { + for _, e := range m.ImagePullSecrets { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *RestoreStats) Size() (n int) { + var l int + _ = l + l = len(m.Path) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Phase) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Duration) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *RetentionPolicy) Size() (n int) { + var l int + _ = l + l = len(m.Name) + n += 1 + l + sovGenerated(uint64(l)) + n += 1 + sovGenerated(uint64(m.KeepLast)) + n += 1 + sovGenerated(uint64(m.KeepHourly)) + n += 1 + sovGenerated(uint64(m.KeepDaily)) + n += 1 + sovGenerated(uint64(m.KeepWeekly)) + n += 1 + sovGenerated(uint64(m.KeepMonthly)) + n += 1 + sovGenerated(uint64(m.KeepYearly)) + if len(m.KeepTags) > 0 { + for _, s := range m.KeepTags { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + n += 2 + n += 2 + return n +} + +func sovGenerated(x uint64) (n int) { + for { + n++ + x >>= 7 + if x == 0 { + break + } + } + return n +} +func sozGenerated(x uint64) (n int) { + return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (this *FileGroup) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&FileGroup{`, + `Path:` + fmt.Sprintf("%v", this.Path) + `,`, + `Tags:` + fmt.Sprintf("%v", this.Tags) + `,`, + `RetentionPolicyName:` + fmt.Sprintf("%v", this.RetentionPolicyName) + `,`, + `}`, + }, "") + return s +} +func (this *LocalTypedReference) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&LocalTypedReference{`, + `Kind:` + fmt.Sprintf("%v", this.Kind) + `,`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `APIVersion:` + fmt.Sprintf("%v", this.APIVersion) + `,`, + `}`, + }, "") + return s +} +func (this *Recovery) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Recovery{`, + `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, + `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "RecoverySpec", "RecoverySpec", 1), `&`, ``, 1) + `,`, + `Status:` + strings.Replace(strings.Replace(this.Status.String(), "RecoveryStatus", "RecoveryStatus", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *RecoveryList) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&RecoveryList{`, + `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "Recovery", "Recovery", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *RecoverySpec) String() string { + if this == nil { + return "nil" + } + keysForNodeSelector := make([]string, 0, len(this.NodeSelector)) + for k := range this.NodeSelector { + keysForNodeSelector = append(keysForNodeSelector, k) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForNodeSelector) + mapStringForNodeSelector := "map[string]string{" + for _, k := range keysForNodeSelector { + mapStringForNodeSelector += fmt.Sprintf("%v: %v,", k, this.NodeSelector[k]) + } + mapStringForNodeSelector += "}" + s := strings.Join([]string{`&RecoverySpec{`, + `Repository:` + strings.Replace(strings.Replace(this.Repository.String(), "ObjectReference", "k8s_io_api_core_v1.ObjectReference", 1), `&`, ``, 1) + `,`, + `Snapshot:` + fmt.Sprintf("%v", this.Snapshot) + `,`, + `Paths:` + fmt.Sprintf("%v", this.Paths) + `,`, + `RecoveredVolumes:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.RecoveredVolumes), "LocalSpec", "kmodules_xyz_objectstore_api_api_v1.LocalSpec", 1), `&`, ``, 1) + `,`, + `ImagePullSecrets:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ImagePullSecrets), "LocalObjectReference", "k8s_io_api_core_v1.LocalObjectReference", 1), `&`, ``, 1) + `,`, + `NodeSelector:` + mapStringForNodeSelector + `,`, + `}`, + }, "") + return s +} +func (this *RecoveryStatus) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&RecoveryStatus{`, + `ObservedGeneration:` + fmt.Sprintf("%v", this.ObservedGeneration) + `,`, + `Phase:` + fmt.Sprintf("%v", this.Phase) + `,`, + `Stats:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Stats), "RestoreStats", "RestoreStats", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *Repository) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Repository{`, + `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, + `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "RepositorySpec", "RepositorySpec", 1), `&`, ``, 1) + `,`, + `Status:` + strings.Replace(strings.Replace(this.Status.String(), "RepositoryStatus", "RepositoryStatus", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *RepositoryList) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&RepositoryList{`, + `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "Repository", "Repository", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *RepositorySpec) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&RepositorySpec{`, + `Backend:` + strings.Replace(strings.Replace(this.Backend.String(), "Backend", "kmodules_xyz_objectstore_api_api_v1.Backend", 1), `&`, ``, 1) + `,`, + `WipeOut:` + fmt.Sprintf("%v", this.WipeOut) + `,`, + `}`, + }, "") + return s +} +func (this *RepositoryStatus) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&RepositoryStatus{`, + `ObservedGeneration:` + fmt.Sprintf("%v", this.ObservedGeneration) + `,`, + `FirstBackupTime:` + strings.Replace(fmt.Sprintf("%v", this.FirstBackupTime), "Time", "k8s_io_apimachinery_pkg_apis_meta_v1.Time", 1) + `,`, + `LastBackupTime:` + strings.Replace(fmt.Sprintf("%v", this.LastBackupTime), "Time", "k8s_io_apimachinery_pkg_apis_meta_v1.Time", 1) + `,`, + `Integrity:` + valueToStringGenerated(this.Integrity) + `,`, + `SnapshotCount:` + fmt.Sprintf("%v", this.SnapshotCount) + `,`, + `SnapshotsRemovedOnLastCleanup:` + fmt.Sprintf("%v", this.SnapshotsRemovedOnLastCleanup) + `,`, + `LastSuccessfulBackupTime:` + strings.Replace(fmt.Sprintf("%v", this.LastSuccessfulBackupTime), "Time", "k8s_io_apimachinery_pkg_apis_meta_v1.Time", 1) + `,`, + `LastBackupDuration:` + fmt.Sprintf("%v", this.LastBackupDuration) + `,`, + `BackupCount:` + fmt.Sprintf("%v", this.BackupCount) + `,`, + `TotalSize:` + fmt.Sprintf("%v", this.TotalSize) + `,`, + `}`, + }, "") + return s +} +func (this *Restic) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Restic{`, + `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, + `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "ResticSpec", "ResticSpec", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *ResticList) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ResticList{`, + `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "Restic", "Restic", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *ResticSpec) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ResticSpec{`, + `Selector:` + strings.Replace(strings.Replace(this.Selector.String(), "LabelSelector", "k8s_io_apimachinery_pkg_apis_meta_v1.LabelSelector", 1), `&`, ``, 1) + `,`, + `FileGroups:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.FileGroups), "FileGroup", "FileGroup", 1), `&`, ``, 1) + `,`, + `Backend:` + strings.Replace(strings.Replace(this.Backend.String(), "Backend", "kmodules_xyz_objectstore_api_api_v1.Backend", 1), `&`, ``, 1) + `,`, + `Schedule:` + fmt.Sprintf("%v", this.Schedule) + `,`, + `VolumeMounts:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.VolumeMounts), "VolumeMount", "k8s_io_api_core_v1.VolumeMount", 1), `&`, ``, 1) + `,`, + `Resources:` + strings.Replace(strings.Replace(this.Resources.String(), "ResourceRequirements", "k8s_io_api_core_v1.ResourceRequirements", 1), `&`, ``, 1) + `,`, + `RetentionPolicies:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.RetentionPolicies), "RetentionPolicy", "RetentionPolicy", 1), `&`, ``, 1) + `,`, + `Type:` + fmt.Sprintf("%v", this.Type) + `,`, + `Paused:` + fmt.Sprintf("%v", this.Paused) + `,`, + `ImagePullSecrets:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ImagePullSecrets), "LocalObjectReference", "k8s_io_api_core_v1.LocalObjectReference", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *RestoreStats) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&RestoreStats{`, + `Path:` + fmt.Sprintf("%v", this.Path) + `,`, + `Phase:` + fmt.Sprintf("%v", this.Phase) + `,`, + `Duration:` + fmt.Sprintf("%v", this.Duration) + `,`, + `}`, + }, "") + return s +} +func (this *RetentionPolicy) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&RetentionPolicy{`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `KeepLast:` + fmt.Sprintf("%v", this.KeepLast) + `,`, + `KeepHourly:` + fmt.Sprintf("%v", this.KeepHourly) + `,`, + `KeepDaily:` + fmt.Sprintf("%v", this.KeepDaily) + `,`, + `KeepWeekly:` + fmt.Sprintf("%v", this.KeepWeekly) + `,`, + `KeepMonthly:` + fmt.Sprintf("%v", this.KeepMonthly) + `,`, + `KeepYearly:` + fmt.Sprintf("%v", this.KeepYearly) + `,`, + `KeepTags:` + fmt.Sprintf("%v", this.KeepTags) + `,`, + `Prune:` + fmt.Sprintf("%v", this.Prune) + `,`, + `DryRun:` + fmt.Sprintf("%v", this.DryRun) + `,`, + `}`, + }, "") + return s +} +func valueToStringGenerated(v interface{}) string { + rv := reflect.ValueOf(v) + if rv.IsNil() { + return "nil" + } + pv := reflect.Indirect(rv).Interface() + return fmt.Sprintf("*%v", pv) +} +func (m *FileGroup) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: FileGroup: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FileGroup: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Path = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tags", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Tags = append(m.Tags, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RetentionPolicyName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RetentionPolicyName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *LocalTypedReference) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: LocalTypedReference: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: LocalTypedReference: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Kind = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field APIVersion", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.APIVersion = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Recovery) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Recovery: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Recovery: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RecoveryList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: RecoveryList: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RecoveryList: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Items = append(m.Items, Recovery{}) + if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RecoverySpec) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: RecoverySpec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RecoverySpec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Repository", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Repository.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Snapshot", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Snapshot = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Paths", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Paths = append(m.Paths, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RecoveredVolumes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RecoveredVolumes = append(m.RecoveredVolumes, kmodules_xyz_objectstore_api_api_v1.LocalSpec{}) + if err := m.RecoveredVolumes[len(m.RecoveredVolumes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ImagePullSecrets", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ImagePullSecrets = append(m.ImagePullSecrets, k8s_io_api_core_v1.LocalObjectReference{}) + if err := m.ImagePullSecrets[len(m.ImagePullSecrets)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NodeSelector", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.NodeSelector == nil { + m.NodeSelector = make(map[string]string) + } + var mapkey string + var mapvalue string + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return ErrInvalidLengthGenerated + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + var stringLenmapvalue uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapvalue |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapvalue := int(stringLenmapvalue) + if intStringLenmapvalue < 0 { + return ErrInvalidLengthGenerated + } + postStringIndexmapvalue := iNdEx + intStringLenmapvalue + if postStringIndexmapvalue > l { + return io.ErrUnexpectedEOF + } + mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) + iNdEx = postStringIndexmapvalue + } else { + iNdEx = entryPreIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.NodeSelector[mapkey] = mapvalue + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RecoveryStatus) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: RecoveryStatus: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RecoveryStatus: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ObservedGeneration", wireType) + } + m.ObservedGeneration = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ObservedGeneration |= (int64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Phase", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Phase = RecoveryPhase(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Stats", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Stats = append(m.Stats, RestoreStats{}) + if err := m.Stats[len(m.Stats)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Repository) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Repository: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Repository: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RepositoryList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: RepositoryList: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RepositoryList: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Items = append(m.Items, Repository{}) + if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RepositorySpec) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: RepositorySpec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RepositorySpec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Backend", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Backend.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field WipeOut", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.WipeOut = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RepositoryStatus) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: RepositoryStatus: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RepositoryStatus: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ObservedGeneration", wireType) + } + m.ObservedGeneration = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ObservedGeneration |= (int64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FirstBackupTime", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.FirstBackupTime == nil { + m.FirstBackupTime = &k8s_io_apimachinery_pkg_apis_meta_v1.Time{} + } + if err := m.FirstBackupTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LastBackupTime", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.LastBackupTime == nil { + m.LastBackupTime = &k8s_io_apimachinery_pkg_apis_meta_v1.Time{} + } + if err := m.LastBackupTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Integrity", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Integrity = &b + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SnapshotCount", wireType) + } + m.SnapshotCount = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.SnapshotCount |= (int64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SnapshotsRemovedOnLastCleanup", wireType) + } + m.SnapshotsRemovedOnLastCleanup = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.SnapshotsRemovedOnLastCleanup |= (int64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LastSuccessfulBackupTime", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.LastSuccessfulBackupTime == nil { + m.LastSuccessfulBackupTime = &k8s_io_apimachinery_pkg_apis_meta_v1.Time{} + } + if err := m.LastSuccessfulBackupTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LastBackupDuration", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.LastBackupDuration = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 10: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BackupCount", wireType) + } + m.BackupCount = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.BackupCount |= (int64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalSize", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TotalSize = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Restic) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Restic: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Restic: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ResticList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ResticList: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ResticList: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Items = append(m.Items, Restic{}) + if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ResticSpec) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ResticSpec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ResticSpec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Selector", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Selector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FileGroups", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.FileGroups = append(m.FileGroups, FileGroup{}) + if err := m.FileGroups[len(m.FileGroups)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Backend", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Backend.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Schedule", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Schedule = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VolumeMounts", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.VolumeMounts = append(m.VolumeMounts, k8s_io_api_core_v1.VolumeMount{}) + if err := m.VolumeMounts[len(m.VolumeMounts)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Resources", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Resources.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RetentionPolicies", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RetentionPolicies = append(m.RetentionPolicies, RetentionPolicy{}) + if err := m.RetentionPolicies[len(m.RetentionPolicies)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Type = BackupType(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Paused", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.Paused = bool(v != 0) + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ImagePullSecrets", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ImagePullSecrets = append(m.ImagePullSecrets, k8s_io_api_core_v1.LocalObjectReference{}) + if err := m.ImagePullSecrets[len(m.ImagePullSecrets)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RestoreStats) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: RestoreStats: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RestoreStats: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Path = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Phase", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Phase = RecoveryPhase(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Duration", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Duration = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RetentionPolicy) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: RetentionPolicy: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RetentionPolicy: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field KeepLast", wireType) + } + m.KeepLast = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.KeepLast |= (int64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field KeepHourly", wireType) + } + m.KeepHourly = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.KeepHourly |= (int64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field KeepDaily", wireType) + } + m.KeepDaily = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.KeepDaily |= (int64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field KeepWeekly", wireType) + } + m.KeepWeekly = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.KeepWeekly |= (int64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field KeepMonthly", wireType) + } + m.KeepMonthly = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.KeepMonthly |= (int64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field KeepYearly", wireType) + } + m.KeepYearly = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.KeepYearly |= (int64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field KeepTags", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.KeepTags = append(m.KeepTags, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Prune", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.Prune = bool(v != 0) + case 10: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DryRun", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.DryRun = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipGenerated(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowGenerated + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowGenerated + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + return iNdEx, nil + case 1: + iNdEx += 8 + return iNdEx, nil + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowGenerated + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + iNdEx += length + if length < 0 { + return 0, ErrInvalidLengthGenerated + } + return iNdEx, nil + case 3: + for { + var innerWire uint64 + var start int = iNdEx + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowGenerated + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + innerWire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + innerWireType := int(innerWire & 0x7) + if innerWireType == 4 { + break + } + next, err := skipGenerated(dAtA[start:]) + if err != nil { + return 0, err + } + iNdEx = start + next + } + return iNdEx, nil + case 4: + return iNdEx, nil + case 5: + iNdEx += 4 + return iNdEx, nil + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + } + panic("unreachable") +} + +var ( + ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") +) + +func init() { + proto.RegisterFile("stash.appscode.dev/stash/apis/stash/v1alpha1/generated.proto", fileDescriptorGenerated) +} + +var fileDescriptorGenerated = []byte{ + // 1709 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x58, 0xcd, 0x6f, 0x23, 0x49, + 0x15, 0x4f, 0xc7, 0x1f, 0xb1, 0xcb, 0xf9, 0xac, 0x2c, 0x52, 0x13, 0x76, 0xed, 0x91, 0x57, 0xa0, + 0x00, 0xd9, 0x36, 0xe3, 0x1d, 0x96, 0x68, 0x59, 0x40, 0x78, 0x87, 0x5d, 0x42, 0x92, 0x4d, 0x54, + 0x8e, 0x66, 0x94, 0x65, 0x61, 0xa9, 0x74, 0xbf, 0xd8, 0x8d, 0xdb, 0xdd, 0x4d, 0x57, 0xb5, 0xc1, + 0x73, 0xe2, 0x80, 0xb8, 0x21, 0x71, 0xe0, 0xc4, 0x5f, 0xc1, 0x89, 0x7f, 0x00, 0x81, 0x86, 0x03, + 0xd2, 0x1c, 0xe7, 0x80, 0x22, 0xc6, 0x48, 0x1c, 0xb8, 0x72, 0xe3, 0x84, 0xaa, 0xba, 0xfa, 0xcb, + 0x8e, 0x87, 0xc4, 0x9a, 0xcd, 0xc1, 0x52, 0xf7, 0x7b, 0xaf, 0x7e, 0xef, 0xa3, 0x5e, 0xfd, 0xea, + 0xb5, 0xd1, 0x7b, 0x8c, 0x53, 0xd6, 0x37, 0xa8, 0xef, 0x33, 0xd3, 0xb3, 0xc0, 0xb0, 0x60, 0xd4, + 0x92, 0xa2, 0x16, 0xf5, 0x6d, 0xa6, 0x1e, 0x47, 0xf7, 0xa9, 0xe3, 0xf7, 0xe9, 0xfd, 0x56, 0x0f, + 0x5c, 0x08, 0x28, 0x07, 0xcb, 0xf0, 0x03, 0x8f, 0x7b, 0x78, 0x6f, 0x76, 0xb5, 0x11, 0x8b, 0x6c, + 0xa6, 0x1e, 0xe3, 0xd5, 0x3b, 0x6f, 0xf5, 0x6c, 0xde, 0x0f, 0x2f, 0x0c, 0xd3, 0x1b, 0xb6, 0x7a, + 0x5e, 0xcf, 0x6b, 0x49, 0x90, 0x8b, 0xf0, 0x52, 0xbe, 0xc9, 0x17, 0xf9, 0x14, 0x81, 0xef, 0x34, + 0x07, 0xfb, 0xcc, 0xb0, 0x3d, 0x11, 0x48, 0xcb, 0xf4, 0x02, 0x68, 0x8d, 0x66, 0x02, 0xd8, 0x79, + 0x90, 0xda, 0x0c, 0xa9, 0xd9, 0xb7, 0x5d, 0x08, 0xc6, 0x2d, 0x7f, 0xd0, 0x8b, 0xa2, 0x1f, 0x02, + 0xa7, 0xd7, 0xad, 0x6a, 0xcd, 0x5b, 0x15, 0x84, 0x2e, 0xb7, 0x87, 0x30, 0xb3, 0xe0, 0x9d, 0xff, + 0xb7, 0x80, 0x99, 0x7d, 0x18, 0xd2, 0x99, 0x75, 0x6f, 0x0f, 0x86, 0x9e, 0x15, 0x3a, 0xc0, 0x8c, + 0x5f, 0x8c, 0x9f, 0xb4, 0xbc, 0x8b, 0x9f, 0x82, 0xc9, 0x19, 0xf7, 0x02, 0x78, 0x4b, 0x24, 0x25, + 0x7e, 0xb3, 0xd1, 0x35, 0x7f, 0xaf, 0xa1, 0xea, 0x07, 0xb6, 0x03, 0x1f, 0x06, 0x5e, 0xe8, 0xe3, + 0x7b, 0xa8, 0xe8, 0x53, 0xde, 0xd7, 0xb5, 0x7b, 0xda, 0x6e, 0xb5, 0xb3, 0xfa, 0xf4, 0xaa, 0xb1, + 0x34, 0xb9, 0x6a, 0x14, 0x4f, 0x29, 0xef, 0x13, 0xa9, 0xc1, 0xaf, 0xa3, 0x22, 0xa7, 0x3d, 0xa6, + 0x2f, 0xdf, 0x2b, 0xec, 0x56, 0x3b, 0x15, 0xa1, 0x3d, 0xa3, 0x3d, 0x46, 0xa4, 0x14, 0x1f, 0xa3, + 0xed, 0x00, 0x38, 0xb8, 0xdc, 0xf6, 0xdc, 0x53, 0xcf, 0xb1, 0xcd, 0xf1, 0x47, 0x74, 0x08, 0x7a, + 0x41, 0xc2, 0x7d, 0x41, 0xc1, 0x6d, 0x93, 0x59, 0x13, 0x72, 0xdd, 0xba, 0xe6, 0x6f, 0x34, 0xb4, + 0x7d, 0xe4, 0x99, 0xd4, 0x39, 0x1b, 0xfb, 0x60, 0x11, 0xb8, 0x84, 0x00, 0x5c, 0x13, 0x44, 0x98, + 0x03, 0xdb, 0xb5, 0xa6, 0xc3, 0x3c, 0xb4, 0x5d, 0x8b, 0x48, 0x8d, 0xb0, 0x70, 0x85, 0xe7, 0xe5, + 0xbc, 0x85, 0x74, 0x25, 0x35, 0xb8, 0x8d, 0x10, 0xf5, 0xed, 0x47, 0x10, 0x30, 0xdb, 0x73, 0x55, + 0x84, 0x58, 0xd9, 0xa1, 0xef, 0x9e, 0x1e, 0x28, 0x0d, 0xc9, 0x58, 0x35, 0xff, 0xb0, 0x8c, 0x2a, + 0x04, 0x4c, 0x6f, 0x04, 0xc1, 0x18, 0xff, 0x04, 0x55, 0xc4, 0x96, 0x5b, 0x94, 0x53, 0x19, 0x48, + 0xad, 0xfd, 0x35, 0x23, 0xda, 0x39, 0x23, 0xbb, 0x73, 0x86, 0x3f, 0xe8, 0x45, 0x0d, 0x2a, 0xac, + 0x8d, 0xd1, 0x7d, 0xe3, 0x44, 0xee, 0xcc, 0x31, 0x70, 0x9a, 0x3a, 0x4c, 0x65, 0x24, 0x41, 0xc5, + 0x9f, 0xa0, 0x22, 0xf3, 0xc1, 0x94, 0x49, 0xd4, 0xda, 0xef, 0x1a, 0xb7, 0xe9, 0x7f, 0x23, 0x8e, + 0xb3, 0xeb, 0x83, 0x99, 0x16, 0x40, 0xbc, 0x11, 0x89, 0x8a, 0x2d, 0x54, 0x66, 0x9c, 0xf2, 0x90, + 0xc9, 0xe4, 0x6b, 0xed, 0xf7, 0x16, 0xc4, 0x97, 0x18, 0x9d, 0x75, 0xe5, 0xa1, 0x1c, 0xbd, 0x13, + 0x85, 0xdd, 0xfc, 0xab, 0x86, 0x56, 0x63, 0xd3, 0x23, 0x9b, 0x71, 0xfc, 0xc9, 0x4c, 0xd9, 0x8c, + 0x9b, 0x95, 0x4d, 0xac, 0x96, 0x45, 0xdb, 0x54, 0xae, 0x2a, 0xb1, 0x24, 0x53, 0xb2, 0x1f, 0xa2, + 0x92, 0xcd, 0x61, 0x18, 0xf5, 0x67, 0xad, 0xfd, 0xce, 0x62, 0x39, 0x75, 0xd6, 0x94, 0x8b, 0xd2, + 0x81, 0x00, 0x23, 0x11, 0x66, 0xf3, 0x5f, 0xc5, 0x34, 0x17, 0x51, 0x48, 0xfc, 0x18, 0xa1, 0x00, + 0x7c, 0x8f, 0xd9, 0xdc, 0x0b, 0xc6, 0x2a, 0x9b, 0x37, 0x33, 0xd9, 0x18, 0x82, 0x49, 0xd2, 0x2d, + 0x4f, 0x1a, 0x38, 0xdd, 0x77, 0x92, 0x2c, 0x27, 0x19, 0x28, 0xbc, 0x87, 0x2a, 0xcc, 0xa5, 0x3e, + 0xeb, 0x7b, 0x5c, 0xb5, 0x70, 0x92, 0x74, 0x57, 0xc9, 0x49, 0x62, 0x81, 0x1b, 0xa8, 0x24, 0xce, + 0xa6, 0xd8, 0x48, 0x71, 0x28, 0xab, 0x22, 0x70, 0x71, 0x64, 0x19, 0x89, 0xe4, 0x98, 0xa3, 0xcd, + 0x20, 0x8a, 0x1b, 0xac, 0x47, 0x9e, 0x13, 0x0e, 0x81, 0xe9, 0x45, 0x59, 0x20, 0xc3, 0xc8, 0x92, + 0x86, 0x91, 0x21, 0x8d, 0x4f, 0x45, 0xfc, 0xe2, 0x27, 0x4a, 0x2f, 0xce, 0xa0, 0x6c, 0x24, 0x5d, + 0x85, 0xb1, 0x49, 0xa6, 0xf0, 0xc8, 0x8c, 0x07, 0xec, 0xa2, 0x4d, 0x7b, 0x48, 0x7b, 0x70, 0x1a, + 0x3a, 0x4e, 0x17, 0xcc, 0x00, 0x38, 0xd3, 0x4b, 0xd2, 0xeb, 0xee, 0x75, 0x35, 0x92, 0x4e, 0xa6, + 0x0b, 0x95, 0xf8, 0x3b, 0x98, 0x42, 0x22, 0x33, 0xd8, 0xf8, 0xd7, 0x1a, 0x5a, 0x75, 0x3d, 0x0b, + 0xba, 0xe0, 0x80, 0xc9, 0xbd, 0x40, 0x2f, 0x4b, 0x67, 0x47, 0x8b, 0x9f, 0x1b, 0xe3, 0xa3, 0x0c, + 0xdc, 0xf7, 0x5c, 0x1e, 0x8c, 0x3b, 0xaf, 0xa9, 0x80, 0x56, 0xb3, 0x2a, 0x92, 0xf3, 0xbb, 0xf3, + 0x1d, 0xb4, 0x35, 0xb3, 0x10, 0x6f, 0xa2, 0xc2, 0x00, 0xa2, 0x26, 0xa9, 0x12, 0xf1, 0x88, 0x5f, + 0x43, 0xa5, 0x11, 0x75, 0x42, 0x45, 0x52, 0x24, 0x7a, 0x79, 0x77, 0x79, 0x5f, 0x6b, 0xfe, 0x47, + 0x43, 0xeb, 0xf9, 0xf3, 0x85, 0x7f, 0x80, 0xb0, 0x77, 0xc1, 0x20, 0x18, 0x81, 0xf5, 0x61, 0x44, + 0xe1, 0x82, 0xb6, 0x04, 0x5a, 0xa1, 0xb3, 0xa3, 0x62, 0xc2, 0x27, 0x33, 0x16, 0xe4, 0x9a, 0x55, + 0xf8, 0x01, 0x2a, 0xf9, 0x7d, 0xca, 0x62, 0x76, 0xac, 0xc7, 0xcd, 0x7e, 0x2a, 0x84, 0xff, 0xbd, + 0x6a, 0xac, 0xc5, 0xbe, 0xa5, 0x80, 0x44, 0xc6, 0xf8, 0x53, 0x54, 0x12, 0x67, 0x3a, 0xea, 0xb2, + 0x05, 0xe8, 0x48, 0x76, 0x95, 0xc8, 0x86, 0xa5, 0xc7, 0x4b, 0xbe, 0x92, 0x08, 0xb7, 0xf9, 0xc7, + 0x65, 0x94, 0x39, 0x0f, 0x77, 0xc0, 0xaf, 0x3f, 0xce, 0xf1, 0xeb, 0xad, 0xf9, 0x2f, 0x8e, 0x74, + 0x2e, 0xc3, 0x5e, 0x4e, 0x31, 0xec, 0xb7, 0x17, 0xf6, 0xf0, 0x72, 0x8e, 0xfd, 0x9b, 0x6c, 0x97, + 0xd8, 0xf8, 0x0e, 0x58, 0xf6, 0x47, 0x79, 0x96, 0xdd, 0x5f, 0x34, 0xaf, 0x39, 0x3c, 0xfb, 0xbb, + 0x5c, 0x3e, 0x8a, 0x69, 0x57, 0x2e, 0xa8, 0x39, 0x00, 0x75, 0xe9, 0xd7, 0xda, 0x7b, 0x37, 0x22, + 0xae, 0x4e, 0xb4, 0xa6, 0xb3, 0xa1, 0xfc, 0xac, 0x28, 0x01, 0x89, 0xd1, 0xf0, 0x97, 0xd1, 0xca, + 0xcf, 0x6d, 0x1f, 0x4e, 0xc2, 0x88, 0x68, 0x2b, 0xa9, 0xe9, 0xe3, 0x48, 0x4c, 0x62, 0x7d, 0xf3, + 0x4f, 0x65, 0xb4, 0x39, 0xbd, 0x27, 0xaf, 0xf4, 0x5c, 0xda, 0x68, 0xe3, 0xd2, 0x0e, 0x18, 0x17, + 0x41, 0x86, 0xfe, 0x99, 0xad, 0xe6, 0x97, 0x5a, 0xfb, 0x2b, 0x37, 0xdb, 0x3b, 0xb1, 0xa2, 0xb3, + 0x3d, 0xb9, 0x6a, 0x6c, 0x7c, 0x90, 0x87, 0x21, 0xd3, 0xb8, 0xf8, 0x12, 0xad, 0x3b, 0x34, 0xe7, + 0xa9, 0x70, 0x6b, 0x4f, 0x78, 0x72, 0xd5, 0x58, 0x3f, 0xca, 0xa1, 0x90, 0x29, 0x54, 0xfc, 0x55, + 0x54, 0xb5, 0x5d, 0x0e, 0xbd, 0xc0, 0xe6, 0x63, 0xbd, 0x28, 0x0b, 0xbc, 0x36, 0xb9, 0x6a, 0x54, + 0x0f, 0x62, 0x21, 0x49, 0xf5, 0xf8, 0x9b, 0x68, 0x2d, 0xbe, 0xd3, 0xde, 0xf7, 0x42, 0x97, 0xeb, + 0x65, 0x59, 0xc6, 0xcf, 0xa9, 0x32, 0xae, 0x75, 0xb3, 0x4a, 0x92, 0xb7, 0xc5, 0x03, 0xf4, 0x46, + 0x2c, 0x60, 0x04, 0x86, 0xde, 0x08, 0xac, 0x13, 0x57, 0x44, 0xf7, 0xbe, 0x03, 0xd4, 0x0d, 0x7d, + 0x7d, 0x45, 0x82, 0x7d, 0x51, 0x81, 0xbd, 0xd1, 0x7d, 0x99, 0x31, 0x79, 0x39, 0x16, 0xfe, 0x95, + 0x86, 0x74, 0x91, 0x69, 0x37, 0x34, 0x4d, 0x60, 0xec, 0x32, 0x74, 0x32, 0x95, 0xac, 0xdc, 0xba, + 0x92, 0xaf, 0x4f, 0xae, 0x1a, 0xfa, 0xd1, 0x1c, 0x3c, 0x32, 0xd7, 0x93, 0x68, 0xbe, 0xb4, 0xde, + 0x0f, 0x43, 0xd5, 0x7c, 0x55, 0xc9, 0xea, 0x49, 0xf3, 0x1d, 0xcd, 0x58, 0x90, 0x6b, 0x56, 0xe1, + 0xaf, 0xa3, 0xda, 0x85, 0x94, 0x44, 0xa5, 0x47, 0xb2, 0x5a, 0xdb, 0x0a, 0xa4, 0xd6, 0x49, 0x55, + 0x24, 0x6b, 0x87, 0x5b, 0xa8, 0xca, 0x3d, 0x4e, 0x9d, 0xae, 0xfd, 0x04, 0xf4, 0x9a, 0xf4, 0xbc, + 0xa5, 0x16, 0x55, 0xcf, 0x62, 0x05, 0x49, 0x6d, 0x9a, 0x7f, 0xd1, 0x50, 0x59, 0x5c, 0x06, 0xb6, + 0x79, 0x07, 0x0c, 0xff, 0x71, 0x8e, 0xe1, 0xf7, 0x6f, 0x7f, 0x65, 0xd9, 0xe6, 0x3c, 0x76, 0x6f, + 0xfe, 0x59, 0x13, 0xd7, 0x95, 0x30, 0xb9, 0x03, 0xc6, 0x3d, 0xcf, 0x33, 0xee, 0x83, 0x45, 0x32, + 0x99, 0xc3, 0xb6, 0xff, 0x2e, 0xc7, 0x79, 0x48, 0xa6, 0xa5, 0xa8, 0xc2, 0xe2, 0x01, 0x2a, 0xca, + 0xe3, 0xed, 0x1b, 0xe6, 0x41, 0x2f, 0xc0, 0x89, 0x67, 0x9e, 0xcc, 0xbc, 0x1a, 0xcf, 0x48, 0x09, + 0x2c, 0x1e, 0x20, 0x74, 0x19, 0x7f, 0x72, 0xc6, 0x19, 0x7d, 0xe3, 0x76, 0x19, 0x25, 0x9f, 0xac, + 0x69, 0x03, 0x24, 0x22, 0x46, 0x32, 0xf0, 0xd9, 0x9b, 0xa3, 0xf0, 0x4a, 0x6f, 0x0e, 0x31, 0xa3, + 0x9b, 0x7d, 0x10, 0x48, 0x92, 0xd9, 0xb2, 0x33, 0xba, 0x92, 0x93, 0xc4, 0x02, 0x9f, 0xa3, 0xd5, + 0x91, 0x9c, 0x8b, 0x8f, 0xc5, 0xb1, 0x89, 0x07, 0xe1, 0xc6, 0x75, 0x83, 0xf0, 0xa3, 0xd4, 0x2e, + 0x1d, 0x37, 0x33, 0x42, 0x46, 0x72, 0x50, 0xf8, 0x1c, 0x55, 0x03, 0x60, 0x5e, 0x18, 0x98, 0xc0, + 0x24, 0x65, 0xce, 0x19, 0xb0, 0x89, 0x32, 0x22, 0xf0, 0xb3, 0xd0, 0x0e, 0x60, 0x08, 0x2e, 0x67, + 0xe9, 0x61, 0x8d, 0xb5, 0x8c, 0xa4, 0x68, 0x62, 0xa4, 0xde, 0xca, 0x7f, 0x98, 0xdb, 0xc0, 0xf4, + 0x15, 0x19, 0xfb, 0xb7, 0x6e, 0xdb, 0x83, 0xb9, 0xef, 0xfb, 0xce, 0xe7, 0x95, 0xe3, 0x2d, 0x32, + 0x8d, 0x4f, 0x66, 0x5d, 0x62, 0x03, 0x15, 0xf9, 0xd8, 0x8f, 0xb8, 0x35, 0xe5, 0xb6, 0xe2, 0xd9, + 0xd8, 0x17, 0x03, 0x2b, 0x52, 0x9c, 0x38, 0xf6, 0x81, 0x48, 0x3b, 0xfc, 0x25, 0x54, 0xf6, 0x69, + 0xc8, 0xc0, 0x92, 0x6c, 0x58, 0x49, 0x47, 0xa7, 0x53, 0x29, 0x25, 0x4a, 0x7b, 0xed, 0x37, 0x0a, + 0xfa, 0xec, 0xbe, 0x51, 0xc4, 0x68, 0xb3, 0x9a, 0x1d, 0x85, 0x6f, 0xf0, 0x8f, 0xcb, 0x62, 0xd3, + 0xfa, 0x1e, 0xaa, 0x58, 0xf1, 0x85, 0x50, 0xc8, 0x77, 0x67, 0x72, 0x0d, 0x24, 0x16, 0xcd, 0xbf, + 0x17, 0xd0, 0xc6, 0xd4, 0x06, 0x25, 0x7f, 0xa1, 0x68, 0x73, 0xff, 0x42, 0xd9, 0x43, 0x95, 0x01, + 0x80, 0x2f, 0x2e, 0x18, 0x19, 0x5c, 0x21, 0xf5, 0x71, 0xa8, 0xe4, 0x24, 0xb1, 0xc0, 0x6d, 0x84, + 0xc4, 0xf3, 0xf7, 0xbd, 0x30, 0x70, 0xc6, 0x32, 0xa6, 0x42, 0x7a, 0x78, 0x0f, 0x13, 0x0d, 0xc9, + 0x58, 0x89, 0xdb, 0x45, 0xbc, 0x3d, 0xa4, 0xb6, 0x13, 0x8d, 0x0f, 0x85, 0xb4, 0x61, 0x0f, 0x63, + 0x05, 0x49, 0x6d, 0x62, 0x27, 0x8f, 0x01, 0x06, 0xce, 0x58, 0x2f, 0xcd, 0x3a, 0x89, 0x34, 0x24, + 0x63, 0x25, 0x6e, 0x3e, 0xf1, 0x76, 0xec, 0xb9, 0xbc, 0xef, 0x8c, 0xd5, 0xd0, 0x91, 0xdc, 0x7c, + 0x87, 0xa9, 0x8a, 0x64, 0xed, 0x62, 0x57, 0xe7, 0x40, 0x45, 0x3e, 0x2b, 0xb3, 0xae, 0x22, 0x0d, + 0xc9, 0x58, 0xe1, 0xdd, 0xa8, 0x62, 0x67, 0xb4, 0xc7, 0xf4, 0x8a, 0xfc, 0x58, 0x5f, 0x8d, 0xab, + 0x25, 0xff, 0x45, 0x4b, 0xb4, 0xf8, 0x4d, 0x54, 0xf2, 0x83, 0xd0, 0x05, 0xd5, 0xbf, 0x09, 0x75, + 0x9f, 0x0a, 0x21, 0x89, 0x74, 0xa2, 0xcb, 0xad, 0x60, 0x4c, 0x42, 0x57, 0x5e, 0xd7, 0x99, 0x2e, + 0x7f, 0x28, 0xa5, 0x44, 0x69, 0x3b, 0xc6, 0xd3, 0x17, 0xf5, 0xa5, 0x67, 0x2f, 0xea, 0x4b, 0xcf, + 0x5f, 0xd4, 0x97, 0x7e, 0x39, 0xa9, 0x6b, 0x4f, 0x27, 0x75, 0xed, 0xd9, 0xa4, 0xae, 0x3d, 0x9f, + 0xd4, 0xb5, 0x7f, 0x4c, 0xea, 0xda, 0x6f, 0xff, 0x59, 0x5f, 0xfa, 0xb8, 0x12, 0x9f, 0xd5, 0xff, + 0x05, 0x00, 0x00, 0xff, 0xff, 0x57, 0x6b, 0x94, 0xeb, 0xa8, 0x15, 0x00, 0x00, +} diff --git a/apis/stash/v1alpha1/generated.proto b/apis/stash/v1alpha1/generated.proto new file mode 100644 index 000000000..3405470a8 --- /dev/null +++ b/apis/stash/v1alpha1/generated.proto @@ -0,0 +1,258 @@ +/* +Copyright The Stash Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// This file was autogenerated by go-to-protobuf. Do not edit it manually! + +syntax = 'proto2'; + +package stash.appscode.dev.stash.apis.stash.v1alpha1; + +import "k8s.io/api/core/v1/generated.proto"; +import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; +import "k8s.io/apimachinery/pkg/runtime/generated.proto"; +import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; +import "kmodules.xyz/objectstore-api/api/v1/generated.proto"; + +// Package-wide variables from generator "generated". +option go_package = "v1alpha1"; + +message FileGroup { + // Source of the backup volumeName:path + optional string path = 1; + + // Tags of a snapshots + repeated string tags = 2; + + // retention policy of snapshots + optional string retentionPolicyName = 3; +} + +// LocalTypedReference contains enough information to let you inspect or modify the referred object. +message LocalTypedReference { + // Kind of the referent. + // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + // +optional + optional string kind = 1; + + // Name of the referent. + // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + // +optional + optional string name = 2; + + // API version of the referent. + // +optional + optional string apiVersion = 3; +} + +// +kubebuilder:object:root=true +// +kubebuilder:resource:path=recoveries,singular=recovery,shortName=rec,categories={storage,appscode,all} +// +kubebuilder:subresource:status +// +kubebuilder:printcolumn:name="Repository-NS",type="string",JSONPath=".spec.repository.namespace" +// +kubebuilder:printcolumn:name="Repository-Name",type="string",JSONPath=".spec.repository.name" +// +kubebuilder:printcolumn:name="Snapshot",type="string",JSONPath=".spec.snapshot" +// +kubebuilder:printcolumn:name="Phase",type="string",JSONPath=".status.phase" +// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp" +message Recovery { + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + + optional RecoverySpec spec = 2; + + optional RecoveryStatus status = 3; +} + +message RecoveryList { + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + + repeated Recovery items = 2; +} + +message RecoverySpec { + optional k8s.io.api.core.v1.ObjectReference repository = 1; + + // Snapshot to recover. Default is latest snapshot. + // +optional + optional string snapshot = 2; + + repeated string paths = 3; + + repeated kmodules.xyz.objectstore_api.api.v1.LocalSpec recoveredVolumes = 4; + + repeated k8s.io.api.core.v1.LocalObjectReference imagePullSecrets = 5; + + // NodeSelector is a selector which must be true for the pod to fit on a node. + // Selector which must match a node's labels for the pod to be scheduled on that node. + // More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + map nodeSelector = 6; +} + +message RecoveryStatus { + // observedGeneration is the most recent generation observed for this resource. It corresponds to the + // resource's generation, which is updated on mutation by the API Server. + // +optional + optional int64 observedGeneration = 1; + + optional string phase = 2; + + repeated RestoreStats stats = 3; +} + +// +kubebuilder:object:root=true +// +kubebuilder:resource:path=repositories,singular=repository,shortName=repo,categories={stash,appscode} +// +kubebuilder:subresource:status +// +kubebuilder:printcolumn:name="Integrity",type="boolean",JSONPath=".status.integrity" +// +kubebuilder:printcolumn:name="Size",type="string",JSONPath=".status.size" +// +kubebuilder:printcolumn:name="Snapshot-Count",type="integer",JSONPath=".status.snapshotCount" +// +kubebuilder:printcolumn:name="Last-Successful-Backup",type="date",format="date-time",JSONPath=".status.lastBackupTime" +// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp" +message Repository { + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + + optional RepositorySpec spec = 2; + + optional RepositoryStatus status = 3; +} + +message RepositoryList { + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + + repeated Repository items = 2; +} + +message RepositorySpec { + // Backend specify the storage where backed up snapshot will be stored + optional kmodules.xyz.objectstore_api.api.v1.Backend backend = 1; + + // If true, delete respective restic repository + // +optional + optional bool wipeOut = 2; +} + +message RepositoryStatus { + // ObservedGeneration is the most recent generation observed for this Repository. It corresponds to the + // Repository's generation, which is updated on mutation by the API Server. + // +optional + optional int64 observedGeneration = 1; + + // FirstBackupTime indicates the timestamp when the first backup was taken + optional k8s.io.apimachinery.pkg.apis.meta.v1.Time firstBackupTime = 2; + + // LastBackupTime indicates the timestamp when the latest backup was taken + optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastBackupTime = 3; + + // Integrity shows result of repository integrity check after last backup + optional bool integrity = 4; + + // TotalSize show size of repository after last backup + optional string totalSize = 11; + + // SnapshotCount shows number of snapshots stored in the repository + optional int64 snapshotCount = 6; + + // SnapshotsRemovedOnLastCleanup shows number of old snapshots cleaned up according to retention policy on last backup session + optional int64 snapshotsRemovedOnLastCleanup = 7; + + // Deprecated + optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastSuccessfulBackupTime = 8; + + // Deprecated + optional string lastBackupDuration = 9; + + // Deprecated + optional int64 backupCount = 10; +} + +// +kubebuilder:object:root=true +// +kubebuilder:resource:path=restics,singular=restic,shortName=rst,categories={stash,appscode,all} +// +kubebuilder:subresource:status +// +kubebuilder:printcolumn:name="Selector",type="string",JSONPath=".spec.selector" +// +kubebuilder:printcolumn:name="Schedule",type="string",JSONPath=".spec.schedule" +// +kubebuilder:printcolumn:name="Backup-Type",type="string",JSONPath=".spec.type",priority=10 +// +kubebuilder:printcolumn:name="Paused",type="boolean",JSONPath=".spec.paused" +// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp" +message Restic { + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + + optional ResticSpec spec = 2; +} + +message ResticList { + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + + repeated Restic items = 2; +} + +message ResticSpec { + optional k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 1; + + repeated FileGroup fileGroups = 2; + + optional kmodules.xyz.objectstore_api.api.v1.Backend backend = 3; + + optional string schedule = 4; + + // Pod volumes to mount into the sidecar container's filesystem. + repeated k8s.io.api.core.v1.VolumeMount volumeMounts = 5; + + // Compute Resources required by the sidecar container. + optional k8s.io.api.core.v1.ResourceRequirements resources = 6; + + repeated RetentionPolicy retentionPolicies = 7; + + // https://github.com/stashed/stash/issues/225 + optional string type = 8; + + // Indicates that the Restic is paused from taking backup. Default value is 'false' + // +optional + optional bool paused = 9; + + // ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. + // If specified, these secrets will be passed to individual puller implementations for them to use. For example, + // in the case of docker, only DockerConfig type secrets are honored. + // More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod + // +optional + repeated k8s.io.api.core.v1.LocalObjectReference imagePullSecrets = 10; +} + +message RestoreStats { + optional string path = 1; + + optional string phase = 2; + + optional string duration = 3; +} + +message RetentionPolicy { + optional string name = 1; + + optional int64 keepLast = 2; + + optional int64 keepHourly = 3; + + optional int64 keepDaily = 4; + + optional int64 keepWeekly = 5; + + optional int64 keepMonthly = 6; + + optional int64 keepYearly = 7; + + repeated string keepTags = 8; + + optional bool prune = 9; + + optional bool dryRun = 10; +} + diff --git a/apis/stash/v1alpha1/openapi_generated.go b/apis/stash/v1alpha1/openapi_generated.go index 5634bd205..1be8480fa 100644 --- a/apis/stash/v1alpha1/openapi_generated.go +++ b/apis/stash/v1alpha1/openapi_generated.go @@ -351,6 +351,9 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "kmodules.xyz/offshoot-api/api/v1.ServicePort": schema_kmodulesxyz_offshoot_api_api_v1_ServicePort(ref), "kmodules.xyz/offshoot-api/api/v1.ServiceSpec": schema_kmodulesxyz_offshoot_api_api_v1_ServiceSpec(ref), "kmodules.xyz/offshoot-api/api/v1.ServiceTemplateSpec": schema_kmodulesxyz_offshoot_api_api_v1_ServiceTemplateSpec(ref), + "kmodules.xyz/prober/api/v1.HTTPPostAction": schema_kmodulesxyz_prober_api_v1_HTTPPostAction(ref), + "kmodules.xyz/prober/api/v1.Handler": schema_kmodulesxyz_prober_api_v1_Handler(ref), + "kmodules.xyz/prober/api/v1.ValueList": schema_kmodulesxyz_prober_api_v1_ValueList(ref), "stash.appscode.dev/stash/apis/stash/v1alpha1.FileGroup": schema_stash_apis_stash_v1alpha1_FileGroup(ref), "stash.appscode.dev/stash/apis/stash/v1alpha1.LocalTypedReference": schema_stash_apis_stash_v1alpha1_LocalTypedReference(ref), "stash.appscode.dev/stash/apis/stash/v1alpha1.Recovery": schema_stash_apis_stash_v1alpha1_Recovery(ref), @@ -14471,8 +14474,7 @@ func schema_custom_resources_apis_appcatalog_v1alpha1_AppBinding(ref common.Refe return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "AppBinding defines a generic user application.", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -14876,7 +14878,7 @@ func schema_kmodulesxyz_objectstore_api_api_v1_AzureSpec(ref common.ReferenceCal "maxConnections": { SchemaProps: spec.SchemaProps{ Type: []string{"integer"}, - Format: "int32", + Format: "int64", }, }, }, @@ -14906,7 +14908,7 @@ func schema_kmodulesxyz_objectstore_api_api_v1_B2Spec(ref common.ReferenceCallba "maxConnections": { SchemaProps: spec.SchemaProps{ Type: []string{"integer"}, - Format: "int32", + Format: "int64", }, }, }, @@ -14991,7 +14993,7 @@ func schema_kmodulesxyz_objectstore_api_api_v1_GCSSpec(ref common.ReferenceCallb "maxConnections": { SchemaProps: spec.SchemaProps{ Type: []string{"integer"}, - Format: "int32", + Format: "int64", }, }, }, @@ -15955,6 +15957,147 @@ func schema_kmodulesxyz_offshoot_api_api_v1_ServiceTemplateSpec(ref common.Refer } } +func schema_kmodulesxyz_prober_api_v1_HTTPPostAction(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "HTTPPostAction describes an action based on HTTP Post requests.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "path": { + SchemaProps: spec.SchemaProps{ + Description: "Path to access on the HTTP server.", + Type: []string{"string"}, + Format: "", + }, + }, + "port": { + SchemaProps: spec.SchemaProps{ + Description: "Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.", + Ref: ref("k8s.io/apimachinery/pkg/util/intstr.IntOrString"), + }, + }, + "host": { + SchemaProps: spec.SchemaProps{ + Description: "Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead.", + Type: []string{"string"}, + Format: "", + }, + }, + "scheme": { + SchemaProps: spec.SchemaProps{ + Description: "Scheme to use for connecting to the host. Defaults to HTTP.", + Type: []string{"string"}, + Format: "", + }, + }, + "httpHeaders": { + SchemaProps: spec.SchemaProps{ + Description: "Custom headers to set in the request. HTTP allows repeated headers.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("k8s.io/api/core/v1.HTTPHeader"), + }, + }, + }, + }, + }, + "body": { + SchemaProps: spec.SchemaProps{ + Description: "Body to set in the request.", + Type: []string{"string"}, + Format: "", + }, + }, + "form": { + SchemaProps: spec.SchemaProps{ + Description: "Form to set in the request body.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("kmodules.xyz/prober/api/v1.ValueList"), + }, + }, + }, + }, + }, + }, + Required: []string{"port"}, + }, + }, + Dependencies: []string{ + "k8s.io/api/core/v1.HTTPHeader", "k8s.io/apimachinery/pkg/util/intstr.IntOrString", "kmodules.xyz/prober/api/v1.ValueList"}, + } +} + +func schema_kmodulesxyz_prober_api_v1_Handler(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "Handler defines a specific action that should be taken", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "exec": { + SchemaProps: spec.SchemaProps{ + Description: "One and only one of the following should be specified. Exec specifies the action to take.", + Ref: ref("k8s.io/api/core/v1.ExecAction"), + }, + }, + "httpGet": { + SchemaProps: spec.SchemaProps{ + Description: "HTTPGet specifies the http Get request to perform.", + Ref: ref("k8s.io/api/core/v1.HTTPGetAction"), + }, + }, + "httpPost": { + SchemaProps: spec.SchemaProps{ + Description: "HTTPPost specifies the http Post request to perform.", + Ref: ref("kmodules.xyz/prober/api/v1.HTTPPostAction"), + }, + }, + "tcpSocket": { + SchemaProps: spec.SchemaProps{ + Description: "TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported", + Ref: ref("k8s.io/api/core/v1.TCPSocketAction"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "k8s.io/api/core/v1.ExecAction", "k8s.io/api/core/v1.HTTPGetAction", "k8s.io/api/core/v1.TCPSocketAction", "kmodules.xyz/prober/api/v1.HTTPPostAction"}, + } +} + +func schema_kmodulesxyz_prober_api_v1_ValueList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "values": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + }, + }, + }, + } +} + func schema_stash_apis_stash_v1alpha1_FileGroup(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -16205,7 +16348,8 @@ func schema_stash_apis_stash_v1alpha1_RecoveryStatus(ref common.ReferenceCallbac "observedGeneration": { SchemaProps: spec.SchemaProps{ Description: "observedGeneration is the most recent generation observed for this resource. It corresponds to the resource's generation, which is updated on mutation by the API Server.", - Ref: ref("github.com/appscode/go/encoding/json/types.IntHash"), + Type: []string{"integer"}, + Format: "int64", }, }, "phase": { @@ -16230,7 +16374,7 @@ func schema_stash_apis_stash_v1alpha1_RecoveryStatus(ref common.ReferenceCallbac }, }, Dependencies: []string{ - "github.com/appscode/go/encoding/json/types.IntHash", "stash.appscode.dev/stash/apis/stash/v1alpha1.RestoreStats"}, + "stash.appscode.dev/stash/apis/stash/v1alpha1.RestoreStats"}, } } @@ -16381,9 +16525,9 @@ func schema_stash_apis_stash_v1alpha1_RepositoryStatus(ref common.ReferenceCallb Format: "", }, }, - "size": { + "totalSize": { SchemaProps: spec.SchemaProps{ - Description: "Size show size of repository after last backup", + Description: "TotalSize show size of repository after last backup", Type: []string{"string"}, Format: "", }, @@ -16392,14 +16536,14 @@ func schema_stash_apis_stash_v1alpha1_RepositoryStatus(ref common.ReferenceCallb SchemaProps: spec.SchemaProps{ Description: "SnapshotCount shows number of snapshots stored in the repository", Type: []string{"integer"}, - Format: "int32", + Format: "int64", }, }, "snapshotsRemovedOnLastCleanup": { SchemaProps: spec.SchemaProps{ Description: "SnapshotsRemovedOnLastCleanup shows number of old snapshots cleaned up according to retention policy on last backup session", Type: []string{"integer"}, - Format: "int32", + Format: "int64", }, }, "lastSuccessfulBackupTime": { @@ -16658,37 +16802,37 @@ func schema_stash_apis_stash_v1alpha1_RetentionPolicy(ref common.ReferenceCallba "keepLast": { SchemaProps: spec.SchemaProps{ Type: []string{"integer"}, - Format: "int32", + Format: "int64", }, }, "keepHourly": { SchemaProps: spec.SchemaProps{ Type: []string{"integer"}, - Format: "int32", + Format: "int64", }, }, "keepDaily": { SchemaProps: spec.SchemaProps{ Type: []string{"integer"}, - Format: "int32", + Format: "int64", }, }, "keepWeekly": { SchemaProps: spec.SchemaProps{ Type: []string{"integer"}, - Format: "int32", + Format: "int64", }, }, "keepMonthly": { SchemaProps: spec.SchemaProps{ Type: []string{"integer"}, - Format: "int32", + Format: "int64", }, }, "keepYearly": { SchemaProps: spec.SchemaProps{ Type: []string{"integer"}, - Format: "int32", + Format: "int64", }, }, "keepTags": { diff --git a/apis/stash/v1alpha1/recovery_types.go b/apis/stash/v1alpha1/recovery_types.go index 4f6205571..152b51379 100644 --- a/apis/stash/v1alpha1/recovery_types.go +++ b/apis/stash/v1alpha1/recovery_types.go @@ -16,7 +16,6 @@ limitations under the License. package v1alpha1 import ( - "github.com/appscode/go/encoding/json/types" core "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" store "kmodules.xyz/objectstore-api/api/v1" @@ -42,32 +41,32 @@ const ( // +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp" type Recovery struct { metav1.TypeMeta `json:",inline,omitempty"` - metav1.ObjectMeta `json:"metadata,omitempty"` - Spec RecoverySpec `json:"spec,omitempty"` - Status RecoveryStatus `json:"status,omitempty"` + metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + Spec RecoverySpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` + Status RecoveryStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` } type RecoverySpec struct { - Repository core.ObjectReference `json:"repository"` + Repository core.ObjectReference `json:"repository" protobuf:"bytes,1,opt,name=repository"` // Snapshot to recover. Default is latest snapshot. // +optional - Snapshot string `json:"snapshot,omitempty"` - Paths []string `json:"paths,omitempty"` - RecoveredVolumes []store.LocalSpec `json:"recoveredVolumes,omitempty"` - ImagePullSecrets []core.LocalObjectReference `json:"imagePullSecrets,omitempty"` + Snapshot string `json:"snapshot,omitempty" protobuf:"bytes,2,opt,name=snapshot"` + Paths []string `json:"paths,omitempty" protobuf:"bytes,3,rep,name=paths"` + RecoveredVolumes []store.LocalSpec `json:"recoveredVolumes,omitempty" protobuf:"bytes,4,rep,name=recoveredVolumes"` + ImagePullSecrets []core.LocalObjectReference `json:"imagePullSecrets,omitempty" protobuf:"bytes,5,rep,name=imagePullSecrets"` // NodeSelector is a selector which must be true for the pod to fit on a node. // Selector which must match a node's labels for the pod to be scheduled on that node. // More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - NodeSelector map[string]string `json:"nodeSelector,omitempty"` + NodeSelector map[string]string `json:"nodeSelector,omitempty" protobuf:"bytes,6,rep,name=nodeSelector"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object type RecoveryList struct { metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []Recovery `json:"items,omitempty"` + metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + Items []Recovery `json:"items,omitempty" protobuf:"bytes,2,rep,name=items"` } type RecoveryPhase string @@ -84,13 +83,13 @@ type RecoveryStatus struct { // observedGeneration is the most recent generation observed for this resource. It corresponds to the // resource's generation, which is updated on mutation by the API Server. // +optional - ObservedGeneration *types.IntHash `json:"observedGeneration,omitempty"` - Phase RecoveryPhase `json:"phase,omitempty"` - Stats []RestoreStats `json:"stats,omitempty"` + ObservedGeneration int64 `json:"observedGeneration,omitempty" protobuf:"varint,1,opt,name=observedGeneration"` + Phase RecoveryPhase `json:"phase,omitempty" protobuf:"bytes,2,opt,name=phase,casttype=RecoveryPhase"` + Stats []RestoreStats `json:"stats,omitempty" protobuf:"bytes,3,rep,name=stats"` } type RestoreStats struct { - Path string `json:"path,omitempty"` - Phase RecoveryPhase `json:"phase,omitempty"` - Duration string `json:"duration,omitempty"` + Path string `json:"path,omitempty" protobuf:"bytes,1,opt,name=path"` + Phase RecoveryPhase `json:"phase,omitempty" protobuf:"bytes,2,opt,name=phase,casttype=RecoveryPhase"` + Duration string `json:"duration,omitempty" protobuf:"bytes,3,opt,name=duration"` } diff --git a/apis/stash/v1alpha1/repository_types.go b/apis/stash/v1alpha1/repository_types.go index e1d94ad54..11de4d0f8 100644 --- a/apis/stash/v1alpha1/repository_types.go +++ b/apis/stash/v1alpha1/repository_types.go @@ -40,49 +40,49 @@ const ( // +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp" type Repository struct { metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - Spec RepositorySpec `json:"spec,omitempty"` - Status RepositoryStatus `json:"status,omitempty"` + metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + Spec RepositorySpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` + Status RepositoryStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` } type RepositorySpec struct { // Backend specify the storage where backed up snapshot will be stored - Backend store.Backend `json:"backend,omitempty"` + Backend store.Backend `json:"backend,omitempty" protobuf:"bytes,1,opt,name=backend"` // If true, delete respective restic repository // +optional - WipeOut bool `json:"wipeOut,omitempty"` + WipeOut bool `json:"wipeOut,omitempty" protobuf:"varint,2,opt,name=wipeOut"` } type RepositoryStatus struct { // ObservedGeneration is the most recent generation observed for this Repository. It corresponds to the // Repository's generation, which is updated on mutation by the API Server. // +optional - ObservedGeneration int64 `json:"observedGeneration,omitempty"` + ObservedGeneration int64 `json:"observedGeneration,omitempty" protobuf:"varint,1,opt,name=observedGeneration"` // FirstBackupTime indicates the timestamp when the first backup was taken - FirstBackupTime *metav1.Time `json:"firstBackupTime,omitempty"` + FirstBackupTime *metav1.Time `json:"firstBackupTime,omitempty" protobuf:"bytes,2,opt,name=firstBackupTime"` // LastBackupTime indicates the timestamp when the latest backup was taken - LastBackupTime *metav1.Time `json:"lastBackupTime,omitempty"` + LastBackupTime *metav1.Time `json:"lastBackupTime,omitempty" protobuf:"bytes,3,opt,name=lastBackupTime"` // Integrity shows result of repository integrity check after last backup - Integrity *bool `json:"integrity,omitempty"` - // Size show size of repository after last backup - Size string `json:"size,omitempty"` + Integrity *bool `json:"integrity,omitempty" protobuf:"varint,4,opt,name=integrity"` + // TotalSize show size of repository after last backup + TotalSize string `json:"totalSize,omitempty" protobuf:"bytes,11,opt,name=totalSize"` // SnapshotCount shows number of snapshots stored in the repository - SnapshotCount int `json:"snapshotCount,omitempty"` + SnapshotCount int64 `json:"snapshotCount,omitempty" protobuf:"varint,6,opt,name=snapshotCount"` // SnapshotsRemovedOnLastCleanup shows number of old snapshots cleaned up according to retention policy on last backup session - SnapshotsRemovedOnLastCleanup int `json:"snapshotsRemovedOnLastCleanup,omitempty"` + SnapshotsRemovedOnLastCleanup int64 `json:"snapshotsRemovedOnLastCleanup,omitempty" protobuf:"varint,7,opt,name=snapshotsRemovedOnLastCleanup"` // Deprecated - LastSuccessfulBackupTime *metav1.Time `json:"lastSuccessfulBackupTime,omitempty"` + LastSuccessfulBackupTime *metav1.Time `json:"lastSuccessfulBackupTime,omitempty" protobuf:"bytes,8,opt,name=lastSuccessfulBackupTime"` // Deprecated - LastBackupDuration string `json:"lastBackupDuration,omitempty"` + LastBackupDuration string `json:"lastBackupDuration,omitempty" protobuf:"bytes,9,opt,name=lastBackupDuration"` // Deprecated - BackupCount int64 `json:"backupCount,omitempty"` + BackupCount int64 `json:"backupCount,omitempty" protobuf:"varint,10,opt,name=backupCount"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object type RepositoryList struct { metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []Repository `json:"items,omitempty"` + metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + Items []Repository `json:"items,omitempty" protobuf:"bytes,2,rep,name=items"` } diff --git a/apis/stash/v1alpha1/restic_types.go b/apis/stash/v1alpha1/restic_types.go index 3736591e5..263de6baf 100644 --- a/apis/stash/v1alpha1/restic_types.go +++ b/apis/stash/v1alpha1/restic_types.go @@ -41,48 +41,48 @@ const ( // +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp" type Restic struct { metav1.TypeMeta `json:",inline,omitempty"` - metav1.ObjectMeta `json:"metadata,omitempty"` - Spec ResticSpec `json:"spec,omitempty"` + metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + Spec ResticSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` } type ResticSpec struct { - Selector metav1.LabelSelector `json:"selector,omitempty"` - FileGroups []FileGroup `json:"fileGroups,omitempty"` - Backend store.Backend `json:"backend,omitempty"` - Schedule string `json:"schedule,omitempty"` + Selector metav1.LabelSelector `json:"selector,omitempty" protobuf:"bytes,1,opt,name=selector"` + FileGroups []FileGroup `json:"fileGroups,omitempty" protobuf:"bytes,2,rep,name=fileGroups"` + Backend store.Backend `json:"backend,omitempty" protobuf:"bytes,3,opt,name=backend"` + Schedule string `json:"schedule,omitempty" protobuf:"bytes,4,opt,name=schedule"` // Pod volumes to mount into the sidecar container's filesystem. - VolumeMounts []core.VolumeMount `json:"volumeMounts,omitempty"` + VolumeMounts []core.VolumeMount `json:"volumeMounts,omitempty" protobuf:"bytes,5,rep,name=volumeMounts"` // Compute Resources required by the sidecar container. - Resources core.ResourceRequirements `json:"resources,omitempty"` - RetentionPolicies []RetentionPolicy `json:"retentionPolicies,omitempty"` + Resources core.ResourceRequirements `json:"resources,omitempty" protobuf:"bytes,6,opt,name=resources"` + RetentionPolicies []RetentionPolicy `json:"retentionPolicies,omitempty" protobuf:"bytes,7,rep,name=retentionPolicies"` // https://github.com/stashed/stash/issues/225 - Type BackupType `json:"type,omitempty"` + Type BackupType `json:"type,omitempty" protobuf:"bytes,8,opt,name=type,casttype=BackupType"` //Indicates that the Restic is paused from taking backup. Default value is 'false' // +optional - Paused bool `json:"paused,omitempty"` + Paused bool `json:"paused,omitempty" protobuf:"varint,9,opt,name=paused"` // ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. // If specified, these secrets will be passed to individual puller implementations for them to use. For example, // in the case of docker, only DockerConfig type secrets are honored. // More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod // +optional - ImagePullSecrets []core.LocalObjectReference `json:"imagePullSecrets,omitempty"` + ImagePullSecrets []core.LocalObjectReference `json:"imagePullSecrets,omitempty" protobuf:"bytes,10,rep,name=imagePullSecrets"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object type ResticList struct { metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []Restic `json:"items,omitempty"` + metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + Items []Restic `json:"items,omitempty" protobuf:"bytes,2,rep,name=items"` } type FileGroup struct { // Source of the backup volumeName:path - Path string `json:"path,omitempty"` + Path string `json:"path,omitempty" protobuf:"bytes,1,opt,name=path"` // Tags of a snapshots - Tags []string `json:"tags,omitempty"` + Tags []string `json:"tags,omitempty" protobuf:"bytes,2,rep,name=tags"` // retention policy of snapshots - RetentionPolicyName string `json:"retentionPolicyName,omitempty"` + RetentionPolicyName string `json:"retentionPolicyName,omitempty" protobuf:"bytes,3,opt,name=retentionPolicyName"` } type BackupType string @@ -105,14 +105,14 @@ const ( ) type RetentionPolicy struct { - Name string `json:"name"` - KeepLast int `json:"keepLast,omitempty"` - KeepHourly int `json:"keepHourly,omitempty"` - KeepDaily int `json:"keepDaily,omitempty"` - KeepWeekly int `json:"keepWeekly,omitempty"` - KeepMonthly int `json:"keepMonthly,omitempty"` - KeepYearly int `json:"keepYearly,omitempty"` - KeepTags []string `json:"keepTags,omitempty"` - Prune bool `json:"prune"` - DryRun bool `json:"dryRun,omitempty"` + Name string `json:"name" protobuf:"bytes,1,opt,name=name"` + KeepLast int64 `json:"keepLast,omitempty" protobuf:"varint,2,opt,name=keepLast"` + KeepHourly int64 `json:"keepHourly,omitempty" protobuf:"varint,3,opt,name=keepHourly"` + KeepDaily int64 `json:"keepDaily,omitempty" protobuf:"varint,4,opt,name=keepDaily"` + KeepWeekly int64 `json:"keepWeekly,omitempty" protobuf:"varint,5,opt,name=keepWeekly"` + KeepMonthly int64 `json:"keepMonthly,omitempty" protobuf:"varint,6,opt,name=keepMonthly"` + KeepYearly int64 `json:"keepYearly,omitempty" protobuf:"varint,7,opt,name=keepYearly"` + KeepTags []string `json:"keepTags,omitempty" protobuf:"bytes,8,rep,name=keepTags"` + Prune bool `json:"prune" protobuf:"varint,9,opt,name=prune"` + DryRun bool `json:"dryRun,omitempty" protobuf:"varint,10,opt,name=dryRun"` } diff --git a/apis/stash/v1alpha1/workload.go b/apis/stash/v1alpha1/workload.go index a37d81e42..b4cf982ad 100644 --- a/apis/stash/v1alpha1/workload.go +++ b/apis/stash/v1alpha1/workload.go @@ -27,14 +27,14 @@ type LocalTypedReference struct { // Kind of the referent. // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds // +optional - Kind string `json:"kind,omitempty"` + Kind string `json:"kind,omitempty" protobuf:"bytes,1,opt,name=kind"` // Name of the referent. // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names // +optional - Name string `json:"name,omitempty"` + Name string `json:"name,omitempty" protobuf:"bytes,2,opt,name=name"` // API version of the referent. // +optional - APIVersion string `json:"apiVersion,omitempty"` + APIVersion string `json:"apiVersion,omitempty" protobuf:"bytes,3,opt,name=apiVersion"` } func (workload *LocalTypedReference) Canonicalize() error { diff --git a/apis/stash/v1alpha1/zz_generated.deepcopy.go b/apis/stash/v1alpha1/zz_generated.deepcopy.go index 71b9caa19..29a283a92 100644 --- a/apis/stash/v1alpha1/zz_generated.deepcopy.go +++ b/apis/stash/v1alpha1/zz_generated.deepcopy.go @@ -168,10 +168,6 @@ func (in *RecoverySpec) DeepCopy() *RecoverySpec { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *RecoveryStatus) DeepCopyInto(out *RecoveryStatus) { *out = *in - if in.ObservedGeneration != nil { - in, out := &in.ObservedGeneration, &out.ObservedGeneration - *out = (*in).DeepCopy() - } if in.Stats != nil { in, out := &in.Stats, &out.Stats *out = make([]RestoreStats, len(*in)) diff --git a/apis/stash/v1beta1/backup_batch_types.go b/apis/stash/v1beta1/backup_batch_types.go index 1eb44d39e..edbd76b98 100644 --- a/apis/stash/v1beta1/backup_batch_types.go +++ b/apis/stash/v1beta1/backup_batch_types.go @@ -40,53 +40,53 @@ const ( // +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp" type BackupBatch struct { metav1.TypeMeta `json:",inline,omitempty"` - metav1.ObjectMeta `json:"metadata,omitempty"` - Spec BackupBatchSpec `json:"spec,omitempty"` - Status BackupBatchStatus `json:"status,omitempty"` + metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + Spec BackupBatchSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` + Status BackupBatchStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` } type BackupBatchSpec struct { // backupConfigurationTemplates is a list of backup configurations that are part of this batch // +optional - BackupConfigurationTemplates []BackupConfigurationTemplate `json:"backupConfigurationTemplates,omitempty"` + BackupConfigurationTemplates []BackupConfigurationTemplate `json:"backupConfigurationTemplates,omitempty" protobuf:"bytes,1,rep,name=backupConfigurationTemplates"` // Schedule specifies the schedule for invoking backup sessions // +optional - Schedule string `json:"schedule,omitempty"` + Schedule string `json:"schedule,omitempty" protobuf:"bytes,2,opt,name=schedule"` // Driver indicates the name of the agent to use to backup the target. // Supported values are "Restic", "VolumeSnapshotter". // Default value is "Restic". // +optional - Driver Snapshotter `json:"driver,omitempty"` + Driver Snapshotter `json:"driver,omitempty" protobuf:"bytes,3,opt,name=driver,casttype=Snapshotter"` // Repository refer to the Repository crd that holds backend information // +optional - Repository core.LocalObjectReference `json:"repository,omitempty"` + Repository core.LocalObjectReference `json:"repository,omitempty" protobuf:"bytes,4,opt,name=repository"` // RetentionPolicy indicates the policy to follow to clean old backup snapshots - RetentionPolicy v1alpha1.RetentionPolicy `json:"retentionPolicy"` + RetentionPolicy v1alpha1.RetentionPolicy `json:"retentionPolicy" protobuf:"bytes,5,opt,name=retentionPolicy"` // Indicates that the BackupConfiguration is paused from taking backup. Default value is 'false' // +optional - Paused bool `json:"paused,omitempty"` + Paused bool `json:"paused,omitempty" protobuf:"varint,6,opt,name=paused"` // BackupHistoryLimit specifies the number of BackupSession and it's associate resources to keep. // This is helpful for debugging purpose. // Default: 1 // +optional - BackupHistoryLimit *int32 `json:"backupHistoryLimit,omitempty"` + BackupHistoryLimit *int32 `json:"backupHistoryLimit,omitempty" protobuf:"varint,7,opt,name=backupHistoryLimit"` // Actions that Stash should take in response to backup sessions. // Cannot be updated. // +optional - Hooks *Hooks `json:"hooks,omitempty"` + Hooks *Hooks `json:"hooks,omitempty" protobuf:"bytes,8,opt,name=hooks"` } type BackupBatchStatus struct { // ObservedGeneration is the most recent generation observed for this BackupBatch. It corresponds to the // BackupBatch's generation, which is updated on mutation by the API Server. // +optional - ObservedGeneration int64 `json:"observedGeneration,omitempty"` + ObservedGeneration int64 `json:"observedGeneration,omitempty" protobuf:"varint,1,opt,name=observedGeneration"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object type BackupBatchList struct { metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []BackupBatch `json:"items,omitempty"` + metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + Items []BackupBatch `json:"items,omitempty" protobuf:"bytes,2,rep,name=items"` } diff --git a/apis/stash/v1beta1/backup_blueprint_types.go b/apis/stash/v1beta1/backup_blueprint_types.go index 4fef3c2a5..758d35961 100644 --- a/apis/stash/v1beta1/backup_blueprint_types.go +++ b/apis/stash/v1beta1/backup_blueprint_types.go @@ -41,42 +41,42 @@ const ( // +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp" type BackupBlueprint struct { metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - Spec BackupBlueprintSpec `json:"spec,omitempty"` + metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + Spec BackupBlueprintSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` } type BackupBlueprintSpec struct { // RepositorySpec is used to create Repository crd for respective workload - v1alpha1.RepositorySpec `json:",inline"` - Schedule string `json:"schedule,omitempty"` + v1alpha1.RepositorySpec `json:",inline" protobuf:"bytes,1,opt,name=repositorySpec"` + Schedule string `json:"schedule,omitempty" protobuf:"bytes,2,opt,name=schedule"` // Task specify the Task crd that specifies steps for backup process // +optional - Task TaskRef `json:"task,omitempty"` + Task TaskRef `json:"task,omitempty" protobuf:"bytes,3,opt,name=task"` // RetentionPolicy indicates the policy to follow to clean old backup snapshots - RetentionPolicy v1alpha1.RetentionPolicy `json:"retentionPolicy"` + RetentionPolicy v1alpha1.RetentionPolicy `json:"retentionPolicy" protobuf:"bytes,4,opt,name=retentionPolicy"` // RuntimeSettings allow to specify Resources, NodeSelector, Affinity, Toleration, ReadinessProbe etc. // +optional - RuntimeSettings ofst.RuntimeSettings `json:"runtimeSettings,omitempty"` + RuntimeSettings ofst.RuntimeSettings `json:"runtimeSettings,omitempty" protobuf:"bytes,5,opt,name=runtimeSettings"` // Temp directory configuration for functions/sidecar // An `EmptyDir` will always be mounted at /tmp with this settings // +optional - TempDir EmptyDirSettings `json:"tempDir,omitempty"` + TempDir EmptyDirSettings `json:"tempDir,omitempty" protobuf:"bytes,6,opt,name=tempDir"` // InterimVolumeTemplate specifies a template for a volume to hold targeted data temporarily // before uploading to backend or inserting into target. It is only usable for job model. // Don't specify it in sidecar model. // +optional - InterimVolumeTemplate *core.PersistentVolumeClaim `json:"interimVolumeTemplate,omitempty"` + InterimVolumeTemplate *core.PersistentVolumeClaim `json:"interimVolumeTemplate,omitempty" protobuf:"bytes,7,opt,name=interimVolumeTemplate"` // BackupHistoryLimit specifies the number of BackupSession and it's associate resources to keep. // This is helpful for debugging purpose. // Default: 1 // +optional - BackupHistoryLimit *int32 `json:"backupHistoryLimit,omitempty"` + BackupHistoryLimit *int32 `json:"backupHistoryLimit,omitempty" protobuf:"varint,8,opt,name=backupHistoryLimit"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object type BackupBlueprintList struct { metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []BackupBlueprint `json:"items,omitempty"` + metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + Items []BackupBlueprint `json:"items,omitempty" protobuf:"bytes,2,rep,name=items"` } diff --git a/apis/stash/v1beta1/backup_configuration_types.go b/apis/stash/v1beta1/backup_configuration_types.go index bb34c0df1..c33ee8745 100644 --- a/apis/stash/v1beta1/backup_configuration_types.go +++ b/apis/stash/v1beta1/backup_configuration_types.go @@ -22,6 +22,7 @@ import ( "k8s.io/apimachinery/pkg/api/resource" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ofst "kmodules.xyz/offshoot-api/api/v1" + prober "kmodules.xyz/prober/api/v1" ) const ( @@ -43,67 +44,67 @@ const ( // +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp" type BackupConfiguration struct { metav1.TypeMeta `json:",inline,omitempty"` - metav1.ObjectMeta `json:"metadata,omitempty"` - Spec BackupConfigurationSpec `json:"spec,omitempty"` - Status BackupConfigurationStatus `json:"status,omitempty"` + metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + Spec BackupConfigurationSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` + Status BackupConfigurationStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object type BackupConfigurationTemplate struct { metav1.TypeMeta `json:",inline,omitempty"` - metav1.ObjectMeta `json:"metadata,omitempty"` - Spec BackupConfigurationTemplateSpec `json:"spec,omitempty"` + metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + Spec BackupConfigurationTemplateSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` } type BackupConfigurationTemplateSpec struct { // Task specify the Task crd that specifies the steps to take backup // +optional - Task TaskRef `json:"task,omitempty"` + Task TaskRef `json:"task,omitempty" protobuf:"bytes,1,opt,name=task"` // Target specify the backup target // +optional - Target *BackupTarget `json:"target,omitempty"` + Target *BackupTarget `json:"target,omitempty" protobuf:"bytes,2,opt,name=target"` // RuntimeSettings allow to specify Resources, NodeSelector, Affinity, Toleration, ReadinessProbe etc. // +optional - RuntimeSettings ofst.RuntimeSettings `json:"runtimeSettings,omitempty"` + RuntimeSettings ofst.RuntimeSettings `json:"runtimeSettings,omitempty" protobuf:"bytes,3,opt,name=runtimeSettings"` // Temp directory configuration for functions/sidecar // An `EmptyDir` will always be mounted at /tmp with this settings // +optional - TempDir EmptyDirSettings `json:"tempDir,omitempty"` + TempDir EmptyDirSettings `json:"tempDir,omitempty" protobuf:"bytes,4,opt,name=tempDir"` // InterimVolumeTemplate specifies a template for a volume to hold targeted data temporarily // before uploading to backend or inserting into target. It is only usable for job model. // Don't specify it in sidecar model. // +optional - InterimVolumeTemplate *core.PersistentVolumeClaim `json:"interimVolumeTemplate,omitempty"` + InterimVolumeTemplate *core.PersistentVolumeClaim `json:"interimVolumeTemplate,omitempty" protobuf:"bytes,5,opt,name=interimVolumeTemplate"` // Actions that Stash should take in response to backup sessions. // Cannot be updated. // +optional - Hooks *Hooks `json:"hooks,omitempty"` + Hooks *Hooks `json:"hooks,omitempty" protobuf:"bytes,6,opt,name=hooks"` } type BackupConfigurationSpec struct { - BackupConfigurationTemplateSpec `json:",inline,omitempty"` + BackupConfigurationTemplateSpec `json:",inline,omitempty" protobuf:"bytes,1,opt,name=backupConfigurationTemplateSpec"` // Schedule specifies the schedule for invoking backup sessions // +optional - Schedule string `json:"schedule,omitempty"` + Schedule string `json:"schedule,omitempty" protobuf:"bytes,2,opt,name=schedule"` // Driver indicates the name of the agent to use to backup the target. // Supported values are "Restic", "VolumeSnapshotter". // Default value is "Restic". // +optional - Driver Snapshotter `json:"driver,omitempty"` + Driver Snapshotter `json:"driver,omitempty" protobuf:"bytes,3,opt,name=driver,casttype=Snapshotter"` // Repository refer to the Repository crd that holds backend information // +optional - Repository core.LocalObjectReference `json:"repository,omitempty"` + Repository core.LocalObjectReference `json:"repository,omitempty" protobuf:"bytes,4,opt,name=repository"` // RetentionPolicy indicates the policy to follow to clean old backup snapshots - RetentionPolicy v1alpha1.RetentionPolicy `json:"retentionPolicy"` + RetentionPolicy v1alpha1.RetentionPolicy `json:"retentionPolicy" protobuf:"bytes,5,opt,name=retentionPolicy"` // Indicates that the BackupConfiguration is paused from taking backup. Default value is 'false' // +optional - Paused bool `json:"paused,omitempty"` + Paused bool `json:"paused,omitempty" protobuf:"varint,6,opt,name=paused"` // BackupHistoryLimit specifies the number of BackupSession and it's associate resources to keep. // This is helpful for debugging purpose. // Default: 1 // +optional - BackupHistoryLimit *int32 `json:"backupHistoryLimit,omitempty"` + BackupHistoryLimit *int32 `json:"backupHistoryLimit,omitempty" protobuf:"varint,7,opt,name=backupHistoryLimit"` } // Hooks describes actions that Stash should take in response to backup sessions. For the PostBackup @@ -112,18 +113,18 @@ type BackupConfigurationSpec struct { type Hooks struct { // PreBackup is called immediately before a backup session is initiated. // +optional - PreBackup *core.Handler `json:"preBackup,omitempty"` + PreBackup *prober.Handler `json:"preBackup,omitempty" protobuf:"bytes,1,opt,name=preBackup"` // PostBackup is called immediately after a backup session is complete. // +optional - PostBackup *core.Handler `json:"postBackup,omitempty"` + PostBackup *prober.Handler `json:"postBackup,omitempty" protobuf:"bytes,2,opt,name=postBackup"` } type EmptyDirSettings struct { - Medium core.StorageMedium `json:"medium,omitempty"` - SizeLimit *resource.Quantity `json:"sizeLimit,omitempty"` + Medium core.StorageMedium `json:"medium,omitempty" protobuf:"bytes,1,opt,name=medium,casttype=k8s.io/api/core/v1.StorageMedium"` + SizeLimit *resource.Quantity `json:"sizeLimit,omitempty" protobuf:"bytes,2,opt,name=sizeLimit"` // More info: https://github.com/restic/restic/blob/master/doc/manual_rest.rst#caching - DisableCaching bool `json:"disableCaching,omitempty"` + DisableCaching bool `json:"disableCaching,omitempty" protobuf:"varint,3,opt,name=disableCaching"` } type Snapshotter string @@ -137,13 +138,13 @@ type BackupConfigurationStatus struct { // ObservedGeneration is the most recent generation observed for this BackupConfiguration. It corresponds to the // BackupConfiguration's generation, which is updated on mutation by the API Server. // +optional - ObservedGeneration int64 `json:"observedGeneration,omitempty"` + ObservedGeneration int64 `json:"observedGeneration,omitempty" protobuf:"varint,1,opt,name=observedGeneration"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object type BackupConfigurationList struct { metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []BackupConfiguration `json:"items,omitempty"` + metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + Items []BackupConfiguration `json:"items,omitempty" protobuf:"bytes,2,rep,name=items"` } diff --git a/apis/stash/v1beta1/backup_session_types.go b/apis/stash/v1beta1/backup_session_types.go index 25526eba0..4e091c9c4 100644 --- a/apis/stash/v1beta1/backup_session_types.go +++ b/apis/stash/v1beta1/backup_session_types.go @@ -38,15 +38,15 @@ const ( // +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp" type BackupSession struct { metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - Spec BackupSessionSpec `json:"spec,omitempty"` - Status BackupSessionStatus `json:"status,omitempty"` + metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + Spec BackupSessionSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` + Status BackupSessionStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` } type BackupSessionSpec struct { // Invoker refers to the BackupConfiguration or BackupBatch being used to invoke this backup session // +optional - Invoker BackupInvokerRef `json:"invoker,omitempty"` + Invoker BackupInvokerRef `json:"invoker,omitempty" protobuf:"bytes,1,opt,name=invoker"` } type BackupSessionPhase string @@ -71,66 +71,66 @@ type BackupSessionStatus struct { // Phase indicates the overall phase of the backup process for this BackupSession. Phase will be "Succeeded" only if // phase of all hosts are "Succeeded". If any of the host fail to complete backup, Phase will be "Failed". // +optional - Phase BackupSessionPhase `json:"phase,omitempty"` + Phase BackupSessionPhase `json:"phase,omitempty" protobuf:"bytes,1,opt,name=phase,casttype=BackupSessionPhase"` // TotalHosts specifies total number of hosts that will be backed up for this BackupSession // +optional - TotalHosts *int32 `json:"totalHosts,omitempty"` + TotalHosts *int32 `json:"totalHosts,omitempty" protobuf:"varint,2,opt,name=totalHosts"` // SessionDuration specify total time taken to complete current backup session (sum of backup duration of all hosts) // +optional - SessionDuration string `json:"sessionDuration,omitempty"` + SessionDuration string `json:"sessionDuration,omitempty" protobuf:"bytes,3,opt,name=sessionDuration"` // Stats shows statistics of individual hosts for this backup session // +optional - Stats []HostBackupStats `json:"stats,omitempty"` + Stats []HostBackupStats `json:"stats,omitempty" protobuf:"bytes,4,rep,name=stats"` } type HostBackupStats struct { // Hostname indicate name of the host that has been backed up // +optional - Hostname string `json:"hostname,omitempty"` + Hostname string `json:"hostname,omitempty" protobuf:"bytes,1,opt,name=hostname"` // Phase indicates backup phase of this host // +optional - Phase HostBackupPhase `json:"phase,omitempty"` + Phase HostBackupPhase `json:"phase,omitempty" protobuf:"bytes,2,opt,name=phase,casttype=HostBackupPhase"` // Snapshots specifies the stats of individual snapshots that has been taken for this host in current backup session // +optional - Snapshots []SnapshotStats `json:"snapshots,omitempty"` + Snapshots []SnapshotStats `json:"snapshots,omitempty" protobuf:"bytes,3,rep,name=snapshots"` // Duration indicates total time taken to complete backup for this hosts // +optional - Duration string `json:"duration,omitempty"` + Duration string `json:"duration,omitempty" protobuf:"bytes,4,opt,name=duration"` // Error indicates string value of error in case of backup failure // +optional - Error string `json:"error,omitempty"` + Error string `json:"error,omitempty" protobuf:"bytes,5,opt,name=error"` } type SnapshotStats struct { // Name indicates the name of the backup snapshot created for this host - Name string `json:"name,omitempty"` + Name string `json:"name,omitempty" protobuf:"bytes,1,opt,name=name"` // Path indicates the directory that has been backed up in this snapshot - Path string `json:"path,omitempty"` - // Size indicates the size of data to backup in target directory - Size string `json:"size,omitempty"` + Path string `json:"path,omitempty" protobuf:"bytes,2,opt,name=path"` + // TotalSize indicates the size of data to backup in target directory + TotalSize string `json:"totalSize,omitempty" protobuf:"bytes,7,opt,name=totalSize"` // Uploaded indicates size of data uploaded to backend for this snapshot - Uploaded string `json:"uploaded,omitempty"` + Uploaded string `json:"uploaded,omitempty" protobuf:"bytes,4,opt,name=uploaded"` // ProcessingTime indicates time taken to process the target data - ProcessingTime string `json:"processingTime,omitempty"` + ProcessingTime string `json:"processingTime,omitempty" protobuf:"bytes,5,opt,name=processingTime"` // FileStats shows statistics of files of this snapshot - FileStats FileStats `json:"fileStats,omitempty"` + FileStats FileStats `json:"fileStats,omitempty" protobuf:"bytes,6,opt,name=fileStats"` } type FileStats struct { // TotalFiles shows total number of files that has been backed up - TotalFiles *int `json:"totalFiles,omitempty"` + TotalFiles *int64 `json:"totalFiles,omitempty" protobuf:"varint,1,opt,name=totalFiles"` // NewFiles shows total number of new files that has been created since last backup - NewFiles *int `json:"newFiles,omitempty"` + NewFiles *int64 `json:"newFiles,omitempty" protobuf:"varint,2,opt,name=newFiles"` // ModifiedFiles shows total number of files that has been modified since last backup - ModifiedFiles *int `json:"modifiedFiles,omitempty"` + ModifiedFiles *int64 `json:"modifiedFiles,omitempty" protobuf:"varint,3,opt,name=modifiedFiles"` // UnmodifiedFiles shows total number of files that has not been changed since last backup - UnmodifiedFiles *int `json:"unmodifiedFiles,omitempty"` + UnmodifiedFiles *int64 `json:"unmodifiedFiles,omitempty" protobuf:"varint,4,opt,name=unmodifiedFiles"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object type BackupSessionList struct { metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []BackupSession `json:"items,omitempty"` + metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + Items []BackupSession `json:"items,omitempty" protobuf:"bytes,2,rep,name=items"` } diff --git a/apis/stash/v1beta1/function_types.go b/apis/stash/v1beta1/function_types.go index b81189487..b191cf8a4 100644 --- a/apis/stash/v1beta1/function_types.go +++ b/apis/stash/v1beta1/function_types.go @@ -37,8 +37,8 @@ const ( // +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp" type Function struct { metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - Spec FunctionSpec `json:"spec,omitempty"` + metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + Spec FunctionSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` } type FunctionSpec struct { @@ -47,7 +47,7 @@ type FunctionSpec struct { // This field is optional to allow higher level config management to default or override // container images in workload controllers like Deployments and StatefulSets. // +optional - Image string `json:"image,omitempty"` + Image string `json:"image,omitempty" protobuf:"bytes,1,opt,name=image"` // Entrypoint array. Not executed within a shell. // The docker image's ENTRYPOINT is used if this is not provided. // Variable references $(VAR_NAME) are expanded using the container's environment. If a variable @@ -57,7 +57,7 @@ type FunctionSpec struct { // Cannot be updated. // More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell // +optional - Command []string `json:"command,omitempty"` + Command []string `json:"command,omitempty" protobuf:"bytes,2,rep,name=command"` // Arguments to the entrypoint. // The docker image's CMD is used if this is not provided. // Variable references $(VAR_NAME) are expanded using the container's environment. If a variable @@ -67,13 +67,13 @@ type FunctionSpec struct { // Cannot be updated. // More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell // +optional - Args []string `json:"args,omitempty"` + Args []string `json:"args,omitempty" protobuf:"bytes,3,rep,name=args"` // Container's working directory. // If not specified, the container runtime's default will be used, which // might be configured in the container image. // Cannot be updated. // +optional - WorkingDir string `json:"workingDir,omitempty"` + WorkingDir string `json:"workingDir,omitempty" protobuf:"bytes,4,opt,name=workingDir"` // List of ports to expose from the container. Exposing a port here gives // the system additional information about the network connections a // container uses, but is primarily informational. Not specifying a port here @@ -84,31 +84,31 @@ type FunctionSpec struct { // +optional // +patchMergeKey=containerPort // +patchStrategy=merge - Ports []core.ContainerPort `json:"ports,omitempty" patchStrategy:"merge" patchMergeKey:"containerPort"` + Ports []core.ContainerPort `json:"ports,omitempty" patchStrategy:"merge" patchMergeKey:"containerPort" protobuf:"bytes,5,rep,name=ports"` // Pod volumes to mount into the container's filesystem. // Cannot be updated. // +optional // +patchMergeKey=mountPath // +patchStrategy=merge - VolumeMounts []core.VolumeMount `json:"volumeMounts,omitempty" patchStrategy:"merge" patchMergeKey:"mountPath"` + VolumeMounts []core.VolumeMount `json:"volumeMounts,omitempty" patchStrategy:"merge" patchMergeKey:"mountPath" protobuf:"bytes,6,rep,name=volumeMounts"` // volumeDevices is the list of block devices to be used by the container. // This is an alpha feature and may change in the future. // +patchMergeKey=devicePath // +patchStrategy=merge // +optional - VolumeDevices []core.VolumeDevice `json:"volumeDevices,omitempty" patchStrategy:"merge" patchMergeKey:"devicePath"` + VolumeDevices []core.VolumeDevice `json:"volumeDevices,omitempty" patchStrategy:"merge" patchMergeKey:"devicePath" protobuf:"bytes,7,rep,name=volumeDevices"` // RuntimeSettings allow to specify Resources, LivenessProbe, ReadinessProbe, Lifecycle, SecurityContext etc. // +optional - RuntimeSettings *ofst.ContainerRuntimeSettings `json:"runtimeSettings,omitempty"` + RuntimeSettings *ofst.ContainerRuntimeSettings `json:"runtimeSettings,omitempty" protobuf:"bytes,8,opt,name=runtimeSettings"` // Name of PodSecurityPolicy(PSP) required by this function // +optional - PodSecurityPolicyName string `json:"podSecurityPolicyName,omitempty"` + PodSecurityPolicyName string `json:"podSecurityPolicyName,omitempty" protobuf:"bytes,9,opt,name=podSecurityPolicyName"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object type FunctionList struct { metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []Function `json:"items,omitempty"` + metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + Items []Function `json:"items,omitempty" protobuf:"bytes,2,rep,name=items"` } diff --git a/apis/stash/v1beta1/generated.pb.go b/apis/stash/v1beta1/generated.pb.go new file mode 100644 index 000000000..6d40636f9 --- /dev/null +++ b/apis/stash/v1beta1/generated.pb.go @@ -0,0 +1,9787 @@ +/* +Copyright The Stash Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: stash.appscode.dev/stash/apis/stash/v1beta1/generated.proto + +/* + Package v1beta1 is a generated protocol buffer package. + + It is generated from these files: + stash.appscode.dev/stash/apis/stash/v1beta1/generated.proto + + It has these top-level messages: + BackupBatch + BackupBatchList + BackupBatchSpec + BackupBatchStatus + BackupBlueprint + BackupBlueprintList + BackupBlueprintSpec + BackupConfiguration + BackupConfigurationList + BackupConfigurationSpec + BackupConfigurationStatus + BackupConfigurationTemplate + BackupConfigurationTemplateSpec + BackupInvokerRef + BackupSession + BackupSessionList + BackupSessionSpec + BackupSessionStatus + BackupTarget + EmptyDirSettings + FileStats + Function + FunctionList + FunctionRef + FunctionSpec + Hooks + HostBackupStats + HostRestoreStats + Param + RestoreSession + RestoreSessionList + RestoreSessionSpec + RestoreSessionStatus + RestoreTarget + Rule + SnapshotStats + TargetRef + Task + TaskList + TaskRef + TaskSpec +*/ +package v1beta1 + +import ( + fmt "fmt" + io "io" + math "math" + reflect "reflect" + strings "strings" + + proto "github.com/gogo/protobuf/proto" + k8s_io_api_core_v1 "k8s.io/api/core/v1" + k8s_io_apimachinery_pkg_api_resource "k8s.io/apimachinery/pkg/api/resource" + kmodules_xyz_offshoot_api_api_v1 "kmodules.xyz/offshoot-api/api/v1" + kmodules_xyz_prober_api_v1 "kmodules.xyz/prober/api/v1" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package + +func (m *BackupBatch) Reset() { *m = BackupBatch{} } +func (*BackupBatch) ProtoMessage() {} +func (*BackupBatch) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{0} } + +func (m *BackupBatchList) Reset() { *m = BackupBatchList{} } +func (*BackupBatchList) ProtoMessage() {} +func (*BackupBatchList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{1} } + +func (m *BackupBatchSpec) Reset() { *m = BackupBatchSpec{} } +func (*BackupBatchSpec) ProtoMessage() {} +func (*BackupBatchSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{2} } + +func (m *BackupBatchStatus) Reset() { *m = BackupBatchStatus{} } +func (*BackupBatchStatus) ProtoMessage() {} +func (*BackupBatchStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{3} } + +func (m *BackupBlueprint) Reset() { *m = BackupBlueprint{} } +func (*BackupBlueprint) ProtoMessage() {} +func (*BackupBlueprint) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{4} } + +func (m *BackupBlueprintList) Reset() { *m = BackupBlueprintList{} } +func (*BackupBlueprintList) ProtoMessage() {} +func (*BackupBlueprintList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{5} } + +func (m *BackupBlueprintSpec) Reset() { *m = BackupBlueprintSpec{} } +func (*BackupBlueprintSpec) ProtoMessage() {} +func (*BackupBlueprintSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{6} } + +func (m *BackupConfiguration) Reset() { *m = BackupConfiguration{} } +func (*BackupConfiguration) ProtoMessage() {} +func (*BackupConfiguration) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{7} } + +func (m *BackupConfigurationList) Reset() { *m = BackupConfigurationList{} } +func (*BackupConfigurationList) ProtoMessage() {} +func (*BackupConfigurationList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{8} } + +func (m *BackupConfigurationSpec) Reset() { *m = BackupConfigurationSpec{} } +func (*BackupConfigurationSpec) ProtoMessage() {} +func (*BackupConfigurationSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{9} } + +func (m *BackupConfigurationStatus) Reset() { *m = BackupConfigurationStatus{} } +func (*BackupConfigurationStatus) ProtoMessage() {} +func (*BackupConfigurationStatus) Descriptor() ([]byte, []int) { + return fileDescriptorGenerated, []int{10} +} + +func (m *BackupConfigurationTemplate) Reset() { *m = BackupConfigurationTemplate{} } +func (*BackupConfigurationTemplate) ProtoMessage() {} +func (*BackupConfigurationTemplate) Descriptor() ([]byte, []int) { + return fileDescriptorGenerated, []int{11} +} + +func (m *BackupConfigurationTemplateSpec) Reset() { *m = BackupConfigurationTemplateSpec{} } +func (*BackupConfigurationTemplateSpec) ProtoMessage() {} +func (*BackupConfigurationTemplateSpec) Descriptor() ([]byte, []int) { + return fileDescriptorGenerated, []int{12} +} + +func (m *BackupInvokerRef) Reset() { *m = BackupInvokerRef{} } +func (*BackupInvokerRef) ProtoMessage() {} +func (*BackupInvokerRef) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{13} } + +func (m *BackupSession) Reset() { *m = BackupSession{} } +func (*BackupSession) ProtoMessage() {} +func (*BackupSession) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{14} } + +func (m *BackupSessionList) Reset() { *m = BackupSessionList{} } +func (*BackupSessionList) ProtoMessage() {} +func (*BackupSessionList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{15} } + +func (m *BackupSessionSpec) Reset() { *m = BackupSessionSpec{} } +func (*BackupSessionSpec) ProtoMessage() {} +func (*BackupSessionSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{16} } + +func (m *BackupSessionStatus) Reset() { *m = BackupSessionStatus{} } +func (*BackupSessionStatus) ProtoMessage() {} +func (*BackupSessionStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{17} } + +func (m *BackupTarget) Reset() { *m = BackupTarget{} } +func (*BackupTarget) ProtoMessage() {} +func (*BackupTarget) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{18} } + +func (m *EmptyDirSettings) Reset() { *m = EmptyDirSettings{} } +func (*EmptyDirSettings) ProtoMessage() {} +func (*EmptyDirSettings) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{19} } + +func (m *FileStats) Reset() { *m = FileStats{} } +func (*FileStats) ProtoMessage() {} +func (*FileStats) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{20} } + +func (m *Function) Reset() { *m = Function{} } +func (*Function) ProtoMessage() {} +func (*Function) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{21} } + +func (m *FunctionList) Reset() { *m = FunctionList{} } +func (*FunctionList) ProtoMessage() {} +func (*FunctionList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{22} } + +func (m *FunctionRef) Reset() { *m = FunctionRef{} } +func (*FunctionRef) ProtoMessage() {} +func (*FunctionRef) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{23} } + +func (m *FunctionSpec) Reset() { *m = FunctionSpec{} } +func (*FunctionSpec) ProtoMessage() {} +func (*FunctionSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{24} } + +func (m *Hooks) Reset() { *m = Hooks{} } +func (*Hooks) ProtoMessage() {} +func (*Hooks) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{25} } + +func (m *HostBackupStats) Reset() { *m = HostBackupStats{} } +func (*HostBackupStats) ProtoMessage() {} +func (*HostBackupStats) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{26} } + +func (m *HostRestoreStats) Reset() { *m = HostRestoreStats{} } +func (*HostRestoreStats) ProtoMessage() {} +func (*HostRestoreStats) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{27} } + +func (m *Param) Reset() { *m = Param{} } +func (*Param) ProtoMessage() {} +func (*Param) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{28} } + +func (m *RestoreSession) Reset() { *m = RestoreSession{} } +func (*RestoreSession) ProtoMessage() {} +func (*RestoreSession) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{29} } + +func (m *RestoreSessionList) Reset() { *m = RestoreSessionList{} } +func (*RestoreSessionList) ProtoMessage() {} +func (*RestoreSessionList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{30} } + +func (m *RestoreSessionSpec) Reset() { *m = RestoreSessionSpec{} } +func (*RestoreSessionSpec) ProtoMessage() {} +func (*RestoreSessionSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{31} } + +func (m *RestoreSessionStatus) Reset() { *m = RestoreSessionStatus{} } +func (*RestoreSessionStatus) ProtoMessage() {} +func (*RestoreSessionStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{32} } + +func (m *RestoreTarget) Reset() { *m = RestoreTarget{} } +func (*RestoreTarget) ProtoMessage() {} +func (*RestoreTarget) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{33} } + +func (m *Rule) Reset() { *m = Rule{} } +func (*Rule) ProtoMessage() {} +func (*Rule) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{34} } + +func (m *SnapshotStats) Reset() { *m = SnapshotStats{} } +func (*SnapshotStats) ProtoMessage() {} +func (*SnapshotStats) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{35} } + +func (m *TargetRef) Reset() { *m = TargetRef{} } +func (*TargetRef) ProtoMessage() {} +func (*TargetRef) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{36} } + +func (m *Task) Reset() { *m = Task{} } +func (*Task) ProtoMessage() {} +func (*Task) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{37} } + +func (m *TaskList) Reset() { *m = TaskList{} } +func (*TaskList) ProtoMessage() {} +func (*TaskList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{38} } + +func (m *TaskRef) Reset() { *m = TaskRef{} } +func (*TaskRef) ProtoMessage() {} +func (*TaskRef) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{39} } + +func (m *TaskSpec) Reset() { *m = TaskSpec{} } +func (*TaskSpec) ProtoMessage() {} +func (*TaskSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{40} } + +func init() { + proto.RegisterType((*BackupBatch)(nil), "stash.appscode.dev.stash.apis.stash.v1beta1.BackupBatch") + proto.RegisterType((*BackupBatchList)(nil), "stash.appscode.dev.stash.apis.stash.v1beta1.BackupBatchList") + proto.RegisterType((*BackupBatchSpec)(nil), "stash.appscode.dev.stash.apis.stash.v1beta1.BackupBatchSpec") + proto.RegisterType((*BackupBatchStatus)(nil), "stash.appscode.dev.stash.apis.stash.v1beta1.BackupBatchStatus") + proto.RegisterType((*BackupBlueprint)(nil), "stash.appscode.dev.stash.apis.stash.v1beta1.BackupBlueprint") + proto.RegisterType((*BackupBlueprintList)(nil), "stash.appscode.dev.stash.apis.stash.v1beta1.BackupBlueprintList") + proto.RegisterType((*BackupBlueprintSpec)(nil), "stash.appscode.dev.stash.apis.stash.v1beta1.BackupBlueprintSpec") + proto.RegisterType((*BackupConfiguration)(nil), "stash.appscode.dev.stash.apis.stash.v1beta1.BackupConfiguration") + proto.RegisterType((*BackupConfigurationList)(nil), "stash.appscode.dev.stash.apis.stash.v1beta1.BackupConfigurationList") + proto.RegisterType((*BackupConfigurationSpec)(nil), "stash.appscode.dev.stash.apis.stash.v1beta1.BackupConfigurationSpec") + proto.RegisterType((*BackupConfigurationStatus)(nil), "stash.appscode.dev.stash.apis.stash.v1beta1.BackupConfigurationStatus") + proto.RegisterType((*BackupConfigurationTemplate)(nil), "stash.appscode.dev.stash.apis.stash.v1beta1.BackupConfigurationTemplate") + proto.RegisterType((*BackupConfigurationTemplateSpec)(nil), "stash.appscode.dev.stash.apis.stash.v1beta1.BackupConfigurationTemplateSpec") + proto.RegisterType((*BackupInvokerRef)(nil), "stash.appscode.dev.stash.apis.stash.v1beta1.BackupInvokerRef") + proto.RegisterType((*BackupSession)(nil), "stash.appscode.dev.stash.apis.stash.v1beta1.BackupSession") + proto.RegisterType((*BackupSessionList)(nil), "stash.appscode.dev.stash.apis.stash.v1beta1.BackupSessionList") + proto.RegisterType((*BackupSessionSpec)(nil), "stash.appscode.dev.stash.apis.stash.v1beta1.BackupSessionSpec") + proto.RegisterType((*BackupSessionStatus)(nil), "stash.appscode.dev.stash.apis.stash.v1beta1.BackupSessionStatus") + proto.RegisterType((*BackupTarget)(nil), "stash.appscode.dev.stash.apis.stash.v1beta1.BackupTarget") + proto.RegisterType((*EmptyDirSettings)(nil), "stash.appscode.dev.stash.apis.stash.v1beta1.EmptyDirSettings") + proto.RegisterType((*FileStats)(nil), "stash.appscode.dev.stash.apis.stash.v1beta1.FileStats") + proto.RegisterType((*Function)(nil), "stash.appscode.dev.stash.apis.stash.v1beta1.Function") + proto.RegisterType((*FunctionList)(nil), "stash.appscode.dev.stash.apis.stash.v1beta1.FunctionList") + proto.RegisterType((*FunctionRef)(nil), "stash.appscode.dev.stash.apis.stash.v1beta1.FunctionRef") + proto.RegisterType((*FunctionSpec)(nil), "stash.appscode.dev.stash.apis.stash.v1beta1.FunctionSpec") + proto.RegisterType((*Hooks)(nil), "stash.appscode.dev.stash.apis.stash.v1beta1.Hooks") + proto.RegisterType((*HostBackupStats)(nil), "stash.appscode.dev.stash.apis.stash.v1beta1.HostBackupStats") + proto.RegisterType((*HostRestoreStats)(nil), "stash.appscode.dev.stash.apis.stash.v1beta1.HostRestoreStats") + proto.RegisterType((*Param)(nil), "stash.appscode.dev.stash.apis.stash.v1beta1.Param") + proto.RegisterType((*RestoreSession)(nil), "stash.appscode.dev.stash.apis.stash.v1beta1.RestoreSession") + proto.RegisterType((*RestoreSessionList)(nil), "stash.appscode.dev.stash.apis.stash.v1beta1.RestoreSessionList") + proto.RegisterType((*RestoreSessionSpec)(nil), "stash.appscode.dev.stash.apis.stash.v1beta1.RestoreSessionSpec") + proto.RegisterType((*RestoreSessionStatus)(nil), "stash.appscode.dev.stash.apis.stash.v1beta1.RestoreSessionStatus") + proto.RegisterType((*RestoreTarget)(nil), "stash.appscode.dev.stash.apis.stash.v1beta1.RestoreTarget") + proto.RegisterType((*Rule)(nil), "stash.appscode.dev.stash.apis.stash.v1beta1.Rule") + proto.RegisterType((*SnapshotStats)(nil), "stash.appscode.dev.stash.apis.stash.v1beta1.SnapshotStats") + proto.RegisterType((*TargetRef)(nil), "stash.appscode.dev.stash.apis.stash.v1beta1.TargetRef") + proto.RegisterType((*Task)(nil), "stash.appscode.dev.stash.apis.stash.v1beta1.Task") + proto.RegisterType((*TaskList)(nil), "stash.appscode.dev.stash.apis.stash.v1beta1.TaskList") + proto.RegisterType((*TaskRef)(nil), "stash.appscode.dev.stash.apis.stash.v1beta1.TaskRef") + proto.RegisterType((*TaskSpec)(nil), "stash.appscode.dev.stash.apis.stash.v1beta1.TaskSpec") +} +func (m *BackupBatch) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BackupBatch) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size())) + n1, err := m.ObjectMeta.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n1 + dAtA[i] = 0x12 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.Spec.Size())) + n2, err := m.Spec.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n2 + dAtA[i] = 0x1a + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.Status.Size())) + n3, err := m.Status.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n3 + return i, nil +} + +func (m *BackupBatchList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BackupBatchList) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.ListMeta.Size())) + n4, err := m.ListMeta.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n4 + if len(m.Items) > 0 { + for _, msg := range m.Items { + dAtA[i] = 0x12 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } + } + return i, nil +} + +func (m *BackupBatchSpec) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BackupBatchSpec) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.BackupConfigurationTemplates) > 0 { + for _, msg := range m.BackupConfigurationTemplates { + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } + } + dAtA[i] = 0x12 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Schedule))) + i += copy(dAtA[i:], m.Schedule) + dAtA[i] = 0x1a + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Driver))) + i += copy(dAtA[i:], m.Driver) + dAtA[i] = 0x22 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.Repository.Size())) + n5, err := m.Repository.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n5 + dAtA[i] = 0x2a + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.RetentionPolicy.Size())) + n6, err := m.RetentionPolicy.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n6 + dAtA[i] = 0x30 + i++ + if m.Paused { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i++ + if m.BackupHistoryLimit != nil { + dAtA[i] = 0x38 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(*m.BackupHistoryLimit)) + } + if m.Hooks != nil { + dAtA[i] = 0x42 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.Hooks.Size())) + n7, err := m.Hooks.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n7 + } + return i, nil +} + +func (m *BackupBatchStatus) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BackupBatchStatus) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0x8 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.ObservedGeneration)) + return i, nil +} + +func (m *BackupBlueprint) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BackupBlueprint) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size())) + n8, err := m.ObjectMeta.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n8 + dAtA[i] = 0x12 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.Spec.Size())) + n9, err := m.Spec.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n9 + return i, nil +} + +func (m *BackupBlueprintList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BackupBlueprintList) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.ListMeta.Size())) + n10, err := m.ListMeta.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n10 + if len(m.Items) > 0 { + for _, msg := range m.Items { + dAtA[i] = 0x12 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } + } + return i, nil +} + +func (m *BackupBlueprintSpec) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BackupBlueprintSpec) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.RepositorySpec.Size())) + n11, err := m.RepositorySpec.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n11 + dAtA[i] = 0x12 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Schedule))) + i += copy(dAtA[i:], m.Schedule) + dAtA[i] = 0x1a + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.Task.Size())) + n12, err := m.Task.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n12 + dAtA[i] = 0x22 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.RetentionPolicy.Size())) + n13, err := m.RetentionPolicy.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n13 + dAtA[i] = 0x2a + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.RuntimeSettings.Size())) + n14, err := m.RuntimeSettings.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n14 + dAtA[i] = 0x32 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.TempDir.Size())) + n15, err := m.TempDir.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n15 + if m.InterimVolumeTemplate != nil { + dAtA[i] = 0x3a + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.InterimVolumeTemplate.Size())) + n16, err := m.InterimVolumeTemplate.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n16 + } + if m.BackupHistoryLimit != nil { + dAtA[i] = 0x40 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(*m.BackupHistoryLimit)) + } + return i, nil +} + +func (m *BackupConfiguration) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BackupConfiguration) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size())) + n17, err := m.ObjectMeta.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n17 + dAtA[i] = 0x12 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.Spec.Size())) + n18, err := m.Spec.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n18 + dAtA[i] = 0x1a + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.Status.Size())) + n19, err := m.Status.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n19 + return i, nil +} + +func (m *BackupConfigurationList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BackupConfigurationList) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.ListMeta.Size())) + n20, err := m.ListMeta.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n20 + if len(m.Items) > 0 { + for _, msg := range m.Items { + dAtA[i] = 0x12 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } + } + return i, nil +} + +func (m *BackupConfigurationSpec) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BackupConfigurationSpec) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.BackupConfigurationTemplateSpec.Size())) + n21, err := m.BackupConfigurationTemplateSpec.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n21 + dAtA[i] = 0x12 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Schedule))) + i += copy(dAtA[i:], m.Schedule) + dAtA[i] = 0x1a + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Driver))) + i += copy(dAtA[i:], m.Driver) + dAtA[i] = 0x22 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.Repository.Size())) + n22, err := m.Repository.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n22 + dAtA[i] = 0x2a + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.RetentionPolicy.Size())) + n23, err := m.RetentionPolicy.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n23 + dAtA[i] = 0x30 + i++ + if m.Paused { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i++ + if m.BackupHistoryLimit != nil { + dAtA[i] = 0x38 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(*m.BackupHistoryLimit)) + } + return i, nil +} + +func (m *BackupConfigurationStatus) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BackupConfigurationStatus) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0x8 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.ObservedGeneration)) + return i, nil +} + +func (m *BackupConfigurationTemplate) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BackupConfigurationTemplate) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size())) + n24, err := m.ObjectMeta.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n24 + dAtA[i] = 0x12 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.Spec.Size())) + n25, err := m.Spec.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n25 + return i, nil +} + +func (m *BackupConfigurationTemplateSpec) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BackupConfigurationTemplateSpec) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.Task.Size())) + n26, err := m.Task.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n26 + if m.Target != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.Target.Size())) + n27, err := m.Target.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n27 + } + dAtA[i] = 0x1a + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.RuntimeSettings.Size())) + n28, err := m.RuntimeSettings.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n28 + dAtA[i] = 0x22 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.TempDir.Size())) + n29, err := m.TempDir.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n29 + if m.InterimVolumeTemplate != nil { + dAtA[i] = 0x2a + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.InterimVolumeTemplate.Size())) + n30, err := m.InterimVolumeTemplate.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n30 + } + if m.Hooks != nil { + dAtA[i] = 0x32 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.Hooks.Size())) + n31, err := m.Hooks.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n31 + } + return i, nil +} + +func (m *BackupInvokerRef) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BackupInvokerRef) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.APIGroup))) + i += copy(dAtA[i:], m.APIGroup) + dAtA[i] = 0x12 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Kind))) + i += copy(dAtA[i:], m.Kind) + dAtA[i] = 0x1a + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) + i += copy(dAtA[i:], m.Name) + return i, nil +} + +func (m *BackupSession) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BackupSession) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size())) + n32, err := m.ObjectMeta.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n32 + dAtA[i] = 0x12 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.Spec.Size())) + n33, err := m.Spec.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n33 + dAtA[i] = 0x1a + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.Status.Size())) + n34, err := m.Status.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n34 + return i, nil +} + +func (m *BackupSessionList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BackupSessionList) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.ListMeta.Size())) + n35, err := m.ListMeta.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n35 + if len(m.Items) > 0 { + for _, msg := range m.Items { + dAtA[i] = 0x12 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } + } + return i, nil +} + +func (m *BackupSessionSpec) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BackupSessionSpec) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.Invoker.Size())) + n36, err := m.Invoker.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n36 + return i, nil +} + +func (m *BackupSessionStatus) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BackupSessionStatus) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Phase))) + i += copy(dAtA[i:], m.Phase) + if m.TotalHosts != nil { + dAtA[i] = 0x10 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(*m.TotalHosts)) + } + dAtA[i] = 0x1a + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.SessionDuration))) + i += copy(dAtA[i:], m.SessionDuration) + if len(m.Stats) > 0 { + for _, msg := range m.Stats { + dAtA[i] = 0x22 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } + } + return i, nil +} + +func (m *BackupTarget) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BackupTarget) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.Ref.Size())) + n37, err := m.Ref.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n37 + if len(m.Paths) > 0 { + for _, s := range m.Paths { + dAtA[i] = 0x12 + i++ + l = len(s) + for l >= 1<<7 { + dAtA[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + dAtA[i] = uint8(l) + i++ + i += copy(dAtA[i:], s) + } + } + if len(m.VolumeMounts) > 0 { + for _, msg := range m.VolumeMounts { + dAtA[i] = 0x1a + i++ + i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } + } + if m.Replicas != nil { + dAtA[i] = 0x20 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(*m.Replicas)) + } + dAtA[i] = 0x2a + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.VolumeSnapshotClassName))) + i += copy(dAtA[i:], m.VolumeSnapshotClassName) + return i, nil +} + +func (m *EmptyDirSettings) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *EmptyDirSettings) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Medium))) + i += copy(dAtA[i:], m.Medium) + if m.SizeLimit != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.SizeLimit.Size())) + n38, err := m.SizeLimit.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n38 + } + dAtA[i] = 0x18 + i++ + if m.DisableCaching { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i++ + return i, nil +} + +func (m *FileStats) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *FileStats) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.TotalFiles != nil { + dAtA[i] = 0x8 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(*m.TotalFiles)) + } + if m.NewFiles != nil { + dAtA[i] = 0x10 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(*m.NewFiles)) + } + if m.ModifiedFiles != nil { + dAtA[i] = 0x18 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(*m.ModifiedFiles)) + } + if m.UnmodifiedFiles != nil { + dAtA[i] = 0x20 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(*m.UnmodifiedFiles)) + } + return i, nil +} + +func (m *Function) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Function) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size())) + n39, err := m.ObjectMeta.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n39 + dAtA[i] = 0x12 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.Spec.Size())) + n40, err := m.Spec.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n40 + return i, nil +} + +func (m *FunctionList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *FunctionList) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.ListMeta.Size())) + n41, err := m.ListMeta.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n41 + if len(m.Items) > 0 { + for _, msg := range m.Items { + dAtA[i] = 0x12 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } + } + return i, nil +} + +func (m *FunctionRef) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *FunctionRef) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) + i += copy(dAtA[i:], m.Name) + if len(m.Params) > 0 { + for _, msg := range m.Params { + dAtA[i] = 0x12 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } + } + return i, nil +} + +func (m *FunctionSpec) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *FunctionSpec) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Image))) + i += copy(dAtA[i:], m.Image) + if len(m.Command) > 0 { + for _, s := range m.Command { + dAtA[i] = 0x12 + i++ + l = len(s) + for l >= 1<<7 { + dAtA[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + dAtA[i] = uint8(l) + i++ + i += copy(dAtA[i:], s) + } + } + if len(m.Args) > 0 { + for _, s := range m.Args { + dAtA[i] = 0x1a + i++ + l = len(s) + for l >= 1<<7 { + dAtA[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + dAtA[i] = uint8(l) + i++ + i += copy(dAtA[i:], s) + } + } + dAtA[i] = 0x22 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.WorkingDir))) + i += copy(dAtA[i:], m.WorkingDir) + if len(m.Ports) > 0 { + for _, msg := range m.Ports { + dAtA[i] = 0x2a + i++ + i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } + } + if len(m.VolumeMounts) > 0 { + for _, msg := range m.VolumeMounts { + dAtA[i] = 0x32 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } + } + if len(m.VolumeDevices) > 0 { + for _, msg := range m.VolumeDevices { + dAtA[i] = 0x3a + i++ + i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } + } + if m.RuntimeSettings != nil { + dAtA[i] = 0x42 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.RuntimeSettings.Size())) + n42, err := m.RuntimeSettings.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n42 + } + dAtA[i] = 0x4a + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.PodSecurityPolicyName))) + i += copy(dAtA[i:], m.PodSecurityPolicyName) + return i, nil +} + +func (m *Hooks) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Hooks) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.PreBackup != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.PreBackup.Size())) + n43, err := m.PreBackup.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n43 + } + if m.PostBackup != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.PostBackup.Size())) + n44, err := m.PostBackup.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n44 + } + return i, nil +} + +func (m *HostBackupStats) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *HostBackupStats) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Hostname))) + i += copy(dAtA[i:], m.Hostname) + dAtA[i] = 0x12 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Phase))) + i += copy(dAtA[i:], m.Phase) + if len(m.Snapshots) > 0 { + for _, msg := range m.Snapshots { + dAtA[i] = 0x1a + i++ + i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } + } + dAtA[i] = 0x22 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Duration))) + i += copy(dAtA[i:], m.Duration) + dAtA[i] = 0x2a + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Error))) + i += copy(dAtA[i:], m.Error) + return i, nil +} + +func (m *HostRestoreStats) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *HostRestoreStats) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Hostname))) + i += copy(dAtA[i:], m.Hostname) + dAtA[i] = 0x12 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Phase))) + i += copy(dAtA[i:], m.Phase) + dAtA[i] = 0x1a + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Duration))) + i += copy(dAtA[i:], m.Duration) + dAtA[i] = 0x22 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Error))) + i += copy(dAtA[i:], m.Error) + return i, nil +} + +func (m *Param) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Param) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) + i += copy(dAtA[i:], m.Name) + dAtA[i] = 0x12 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Value))) + i += copy(dAtA[i:], m.Value) + return i, nil +} + +func (m *RestoreSession) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RestoreSession) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size())) + n45, err := m.ObjectMeta.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n45 + dAtA[i] = 0x12 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.Spec.Size())) + n46, err := m.Spec.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n46 + dAtA[i] = 0x1a + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.Status.Size())) + n47, err := m.Status.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n47 + return i, nil +} + +func (m *RestoreSessionList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RestoreSessionList) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.ListMeta.Size())) + n48, err := m.ListMeta.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n48 + if len(m.Items) > 0 { + for _, msg := range m.Items { + dAtA[i] = 0x12 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } + } + return i, nil +} + +func (m *RestoreSessionSpec) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RestoreSessionSpec) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Driver))) + i += copy(dAtA[i:], m.Driver) + dAtA[i] = 0x12 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.Repository.Size())) + n49, err := m.Repository.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n49 + dAtA[i] = 0x1a + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.Task.Size())) + n50, err := m.Task.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n50 + if m.Target != nil { + dAtA[i] = 0x22 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.Target.Size())) + n51, err := m.Target.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n51 + } + if len(m.Rules) > 0 { + for _, msg := range m.Rules { + dAtA[i] = 0x2a + i++ + i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } + } + dAtA[i] = 0x32 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.RuntimeSettings.Size())) + n52, err := m.RuntimeSettings.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n52 + dAtA[i] = 0x3a + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.TempDir.Size())) + n53, err := m.TempDir.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n53 + if m.InterimVolumeTemplate != nil { + dAtA[i] = 0x42 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.InterimVolumeTemplate.Size())) + n54, err := m.InterimVolumeTemplate.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n54 + } + return i, nil +} + +func (m *RestoreSessionStatus) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RestoreSessionStatus) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Phase))) + i += copy(dAtA[i:], m.Phase) + if m.TotalHosts != nil { + dAtA[i] = 0x10 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(*m.TotalHosts)) + } + dAtA[i] = 0x1a + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.SessionDuration))) + i += copy(dAtA[i:], m.SessionDuration) + if len(m.Stats) > 0 { + for _, msg := range m.Stats { + dAtA[i] = 0x22 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } + } + return i, nil +} + +func (m *RestoreTarget) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RestoreTarget) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Replicas != nil { + dAtA[i] = 0x8 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(*m.Replicas)) + } + dAtA[i] = 0x12 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.Ref.Size())) + n55, err := m.Ref.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n55 + if len(m.VolumeMounts) > 0 { + for _, msg := range m.VolumeMounts { + dAtA[i] = 0x1a + i++ + i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } + } + if len(m.VolumeClaimTemplates) > 0 { + for _, msg := range m.VolumeClaimTemplates { + dAtA[i] = 0x22 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } + } + return i, nil +} + +func (m *Rule) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Rule) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.TargetHosts) > 0 { + for _, s := range m.TargetHosts { + dAtA[i] = 0xa + i++ + l = len(s) + for l >= 1<<7 { + dAtA[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + dAtA[i] = uint8(l) + i++ + i += copy(dAtA[i:], s) + } + } + dAtA[i] = 0x12 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.SourceHost))) + i += copy(dAtA[i:], m.SourceHost) + if len(m.Snapshots) > 0 { + for _, s := range m.Snapshots { + dAtA[i] = 0x1a + i++ + l = len(s) + for l >= 1<<7 { + dAtA[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + dAtA[i] = uint8(l) + i++ + i += copy(dAtA[i:], s) + } + } + if len(m.Paths) > 0 { + for _, s := range m.Paths { + dAtA[i] = 0x22 + i++ + l = len(s) + for l >= 1<<7 { + dAtA[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + dAtA[i] = uint8(l) + i++ + i += copy(dAtA[i:], s) + } + } + return i, nil +} + +func (m *SnapshotStats) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SnapshotStats) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) + i += copy(dAtA[i:], m.Name) + dAtA[i] = 0x12 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Path))) + i += copy(dAtA[i:], m.Path) + dAtA[i] = 0x22 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Uploaded))) + i += copy(dAtA[i:], m.Uploaded) + dAtA[i] = 0x2a + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.ProcessingTime))) + i += copy(dAtA[i:], m.ProcessingTime) + dAtA[i] = 0x32 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.FileStats.Size())) + n56, err := m.FileStats.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n56 + dAtA[i] = 0x3a + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.TotalSize))) + i += copy(dAtA[i:], m.TotalSize) + return i, nil +} + +func (m *TargetRef) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *TargetRef) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.APIVersion))) + i += copy(dAtA[i:], m.APIVersion) + dAtA[i] = 0x12 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Kind))) + i += copy(dAtA[i:], m.Kind) + dAtA[i] = 0x1a + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) + i += copy(dAtA[i:], m.Name) + return i, nil +} + +func (m *Task) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Task) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size())) + n57, err := m.ObjectMeta.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n57 + dAtA[i] = 0x12 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.Spec.Size())) + n58, err := m.Spec.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n58 + return i, nil +} + +func (m *TaskList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *TaskList) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.ListMeta.Size())) + n59, err := m.ListMeta.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n59 + if len(m.Items) > 0 { + for _, msg := range m.Items { + dAtA[i] = 0x12 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } + } + return i, nil +} + +func (m *TaskRef) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *TaskRef) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) + i += copy(dAtA[i:], m.Name) + if len(m.Params) > 0 { + for _, msg := range m.Params { + dAtA[i] = 0x12 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } + } + return i, nil +} + +func (m *TaskSpec) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *TaskSpec) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Steps) > 0 { + for _, msg := range m.Steps { + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } + } + if len(m.Volumes) > 0 { + for _, msg := range m.Volumes { + dAtA[i] = 0x12 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } + } + return i, nil +} + +func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return offset + 1 +} +func (m *BackupBatch) Size() (n int) { + var l int + _ = l + l = m.ObjectMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Spec.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Status.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *BackupBatchList) Size() (n int) { + var l int + _ = l + l = m.ListMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Items) > 0 { + for _, e := range m.Items { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *BackupBatchSpec) Size() (n int) { + var l int + _ = l + if len(m.BackupConfigurationTemplates) > 0 { + for _, e := range m.BackupConfigurationTemplates { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + l = len(m.Schedule) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Driver) + n += 1 + l + sovGenerated(uint64(l)) + l = m.Repository.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.RetentionPolicy.Size() + n += 1 + l + sovGenerated(uint64(l)) + n += 2 + if m.BackupHistoryLimit != nil { + n += 1 + sovGenerated(uint64(*m.BackupHistoryLimit)) + } + if m.Hooks != nil { + l = m.Hooks.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *BackupBatchStatus) Size() (n int) { + var l int + _ = l + n += 1 + sovGenerated(uint64(m.ObservedGeneration)) + return n +} + +func (m *BackupBlueprint) Size() (n int) { + var l int + _ = l + l = m.ObjectMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Spec.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *BackupBlueprintList) Size() (n int) { + var l int + _ = l + l = m.ListMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Items) > 0 { + for _, e := range m.Items { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *BackupBlueprintSpec) Size() (n int) { + var l int + _ = l + l = m.RepositorySpec.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Schedule) + n += 1 + l + sovGenerated(uint64(l)) + l = m.Task.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.RetentionPolicy.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.RuntimeSettings.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.TempDir.Size() + n += 1 + l + sovGenerated(uint64(l)) + if m.InterimVolumeTemplate != nil { + l = m.InterimVolumeTemplate.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.BackupHistoryLimit != nil { + n += 1 + sovGenerated(uint64(*m.BackupHistoryLimit)) + } + return n +} + +func (m *BackupConfiguration) Size() (n int) { + var l int + _ = l + l = m.ObjectMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Spec.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Status.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *BackupConfigurationList) Size() (n int) { + var l int + _ = l + l = m.ListMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Items) > 0 { + for _, e := range m.Items { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *BackupConfigurationSpec) Size() (n int) { + var l int + _ = l + l = m.BackupConfigurationTemplateSpec.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Schedule) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Driver) + n += 1 + l + sovGenerated(uint64(l)) + l = m.Repository.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.RetentionPolicy.Size() + n += 1 + l + sovGenerated(uint64(l)) + n += 2 + if m.BackupHistoryLimit != nil { + n += 1 + sovGenerated(uint64(*m.BackupHistoryLimit)) + } + return n +} + +func (m *BackupConfigurationStatus) Size() (n int) { + var l int + _ = l + n += 1 + sovGenerated(uint64(m.ObservedGeneration)) + return n +} + +func (m *BackupConfigurationTemplate) Size() (n int) { + var l int + _ = l + l = m.ObjectMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Spec.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *BackupConfigurationTemplateSpec) Size() (n int) { + var l int + _ = l + l = m.Task.Size() + n += 1 + l + sovGenerated(uint64(l)) + if m.Target != nil { + l = m.Target.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + l = m.RuntimeSettings.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.TempDir.Size() + n += 1 + l + sovGenerated(uint64(l)) + if m.InterimVolumeTemplate != nil { + l = m.InterimVolumeTemplate.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.Hooks != nil { + l = m.Hooks.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *BackupInvokerRef) Size() (n int) { + var l int + _ = l + l = len(m.APIGroup) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Kind) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Name) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *BackupSession) Size() (n int) { + var l int + _ = l + l = m.ObjectMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Spec.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Status.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *BackupSessionList) Size() (n int) { + var l int + _ = l + l = m.ListMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Items) > 0 { + for _, e := range m.Items { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *BackupSessionSpec) Size() (n int) { + var l int + _ = l + l = m.Invoker.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *BackupSessionStatus) Size() (n int) { + var l int + _ = l + l = len(m.Phase) + n += 1 + l + sovGenerated(uint64(l)) + if m.TotalHosts != nil { + n += 1 + sovGenerated(uint64(*m.TotalHosts)) + } + l = len(m.SessionDuration) + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Stats) > 0 { + for _, e := range m.Stats { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *BackupTarget) Size() (n int) { + var l int + _ = l + l = m.Ref.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Paths) > 0 { + for _, s := range m.Paths { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.VolumeMounts) > 0 { + for _, e := range m.VolumeMounts { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if m.Replicas != nil { + n += 1 + sovGenerated(uint64(*m.Replicas)) + } + l = len(m.VolumeSnapshotClassName) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *EmptyDirSettings) Size() (n int) { + var l int + _ = l + l = len(m.Medium) + n += 1 + l + sovGenerated(uint64(l)) + if m.SizeLimit != nil { + l = m.SizeLimit.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + n += 2 + return n +} + +func (m *FileStats) Size() (n int) { + var l int + _ = l + if m.TotalFiles != nil { + n += 1 + sovGenerated(uint64(*m.TotalFiles)) + } + if m.NewFiles != nil { + n += 1 + sovGenerated(uint64(*m.NewFiles)) + } + if m.ModifiedFiles != nil { + n += 1 + sovGenerated(uint64(*m.ModifiedFiles)) + } + if m.UnmodifiedFiles != nil { + n += 1 + sovGenerated(uint64(*m.UnmodifiedFiles)) + } + return n +} + +func (m *Function) Size() (n int) { + var l int + _ = l + l = m.ObjectMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Spec.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *FunctionList) Size() (n int) { + var l int + _ = l + l = m.ListMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Items) > 0 { + for _, e := range m.Items { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *FunctionRef) Size() (n int) { + var l int + _ = l + l = len(m.Name) + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Params) > 0 { + for _, e := range m.Params { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *FunctionSpec) Size() (n int) { + var l int + _ = l + l = len(m.Image) + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Command) > 0 { + for _, s := range m.Command { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.Args) > 0 { + for _, s := range m.Args { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + l = len(m.WorkingDir) + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Ports) > 0 { + for _, e := range m.Ports { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.VolumeMounts) > 0 { + for _, e := range m.VolumeMounts { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.VolumeDevices) > 0 { + for _, e := range m.VolumeDevices { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if m.RuntimeSettings != nil { + l = m.RuntimeSettings.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + l = len(m.PodSecurityPolicyName) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *Hooks) Size() (n int) { + var l int + _ = l + if m.PreBackup != nil { + l = m.PreBackup.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.PostBackup != nil { + l = m.PostBackup.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *HostBackupStats) Size() (n int) { + var l int + _ = l + l = len(m.Hostname) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Phase) + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Snapshots) > 0 { + for _, e := range m.Snapshots { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + l = len(m.Duration) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Error) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *HostRestoreStats) Size() (n int) { + var l int + _ = l + l = len(m.Hostname) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Phase) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Duration) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Error) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *Param) Size() (n int) { + var l int + _ = l + l = len(m.Name) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Value) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *RestoreSession) Size() (n int) { + var l int + _ = l + l = m.ObjectMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Spec.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Status.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *RestoreSessionList) Size() (n int) { + var l int + _ = l + l = m.ListMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Items) > 0 { + for _, e := range m.Items { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *RestoreSessionSpec) Size() (n int) { + var l int + _ = l + l = len(m.Driver) + n += 1 + l + sovGenerated(uint64(l)) + l = m.Repository.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Task.Size() + n += 1 + l + sovGenerated(uint64(l)) + if m.Target != nil { + l = m.Target.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if len(m.Rules) > 0 { + for _, e := range m.Rules { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + l = m.RuntimeSettings.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.TempDir.Size() + n += 1 + l + sovGenerated(uint64(l)) + if m.InterimVolumeTemplate != nil { + l = m.InterimVolumeTemplate.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *RestoreSessionStatus) Size() (n int) { + var l int + _ = l + l = len(m.Phase) + n += 1 + l + sovGenerated(uint64(l)) + if m.TotalHosts != nil { + n += 1 + sovGenerated(uint64(*m.TotalHosts)) + } + l = len(m.SessionDuration) + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Stats) > 0 { + for _, e := range m.Stats { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *RestoreTarget) Size() (n int) { + var l int + _ = l + if m.Replicas != nil { + n += 1 + sovGenerated(uint64(*m.Replicas)) + } + l = m.Ref.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.VolumeMounts) > 0 { + for _, e := range m.VolumeMounts { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.VolumeClaimTemplates) > 0 { + for _, e := range m.VolumeClaimTemplates { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *Rule) Size() (n int) { + var l int + _ = l + if len(m.TargetHosts) > 0 { + for _, s := range m.TargetHosts { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + l = len(m.SourceHost) + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Snapshots) > 0 { + for _, s := range m.Snapshots { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.Paths) > 0 { + for _, s := range m.Paths { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *SnapshotStats) Size() (n int) { + var l int + _ = l + l = len(m.Name) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Path) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Uploaded) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.ProcessingTime) + n += 1 + l + sovGenerated(uint64(l)) + l = m.FileStats.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.TotalSize) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *TargetRef) Size() (n int) { + var l int + _ = l + l = len(m.APIVersion) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Kind) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Name) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *Task) Size() (n int) { + var l int + _ = l + l = m.ObjectMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Spec.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *TaskList) Size() (n int) { + var l int + _ = l + l = m.ListMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Items) > 0 { + for _, e := range m.Items { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *TaskRef) Size() (n int) { + var l int + _ = l + l = len(m.Name) + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Params) > 0 { + for _, e := range m.Params { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *TaskSpec) Size() (n int) { + var l int + _ = l + if len(m.Steps) > 0 { + for _, e := range m.Steps { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.Volumes) > 0 { + for _, e := range m.Volumes { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func sovGenerated(x uint64) (n int) { + for { + n++ + x >>= 7 + if x == 0 { + break + } + } + return n +} +func sozGenerated(x uint64) (n int) { + return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (this *BackupBatch) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&BackupBatch{`, + `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, + `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "BackupBatchSpec", "BackupBatchSpec", 1), `&`, ``, 1) + `,`, + `Status:` + strings.Replace(strings.Replace(this.Status.String(), "BackupBatchStatus", "BackupBatchStatus", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *BackupBatchList) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&BackupBatchList{`, + `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "BackupBatch", "BackupBatch", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *BackupBatchSpec) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&BackupBatchSpec{`, + `BackupConfigurationTemplates:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.BackupConfigurationTemplates), "BackupConfigurationTemplate", "BackupConfigurationTemplate", 1), `&`, ``, 1) + `,`, + `Schedule:` + fmt.Sprintf("%v", this.Schedule) + `,`, + `Driver:` + fmt.Sprintf("%v", this.Driver) + `,`, + `Repository:` + strings.Replace(strings.Replace(this.Repository.String(), "LocalObjectReference", "k8s_io_api_core_v1.LocalObjectReference", 1), `&`, ``, 1) + `,`, + `RetentionPolicy:` + strings.Replace(strings.Replace(this.RetentionPolicy.String(), "RetentionPolicy", "stash_appscode_dev_stash_apis_stash_v1alpha1.RetentionPolicy", 1), `&`, ``, 1) + `,`, + `Paused:` + fmt.Sprintf("%v", this.Paused) + `,`, + `BackupHistoryLimit:` + valueToStringGenerated(this.BackupHistoryLimit) + `,`, + `Hooks:` + strings.Replace(fmt.Sprintf("%v", this.Hooks), "Hooks", "Hooks", 1) + `,`, + `}`, + }, "") + return s +} +func (this *BackupBatchStatus) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&BackupBatchStatus{`, + `ObservedGeneration:` + fmt.Sprintf("%v", this.ObservedGeneration) + `,`, + `}`, + }, "") + return s +} +func (this *BackupBlueprint) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&BackupBlueprint{`, + `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, + `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "BackupBlueprintSpec", "BackupBlueprintSpec", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *BackupBlueprintList) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&BackupBlueprintList{`, + `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "BackupBlueprint", "BackupBlueprint", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *BackupBlueprintSpec) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&BackupBlueprintSpec{`, + `RepositorySpec:` + strings.Replace(strings.Replace(this.RepositorySpec.String(), "RepositorySpec", "stash_appscode_dev_stash_apis_stash_v1alpha1.RepositorySpec", 1), `&`, ``, 1) + `,`, + `Schedule:` + fmt.Sprintf("%v", this.Schedule) + `,`, + `Task:` + strings.Replace(strings.Replace(this.Task.String(), "TaskRef", "TaskRef", 1), `&`, ``, 1) + `,`, + `RetentionPolicy:` + strings.Replace(strings.Replace(this.RetentionPolicy.String(), "RetentionPolicy", "stash_appscode_dev_stash_apis_stash_v1alpha1.RetentionPolicy", 1), `&`, ``, 1) + `,`, + `RuntimeSettings:` + strings.Replace(strings.Replace(this.RuntimeSettings.String(), "RuntimeSettings", "kmodules_xyz_offshoot_api_api_v1.RuntimeSettings", 1), `&`, ``, 1) + `,`, + `TempDir:` + strings.Replace(strings.Replace(this.TempDir.String(), "EmptyDirSettings", "EmptyDirSettings", 1), `&`, ``, 1) + `,`, + `InterimVolumeTemplate:` + strings.Replace(fmt.Sprintf("%v", this.InterimVolumeTemplate), "PersistentVolumeClaim", "k8s_io_api_core_v1.PersistentVolumeClaim", 1) + `,`, + `BackupHistoryLimit:` + valueToStringGenerated(this.BackupHistoryLimit) + `,`, + `}`, + }, "") + return s +} +func (this *BackupConfiguration) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&BackupConfiguration{`, + `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, + `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "BackupConfigurationSpec", "BackupConfigurationSpec", 1), `&`, ``, 1) + `,`, + `Status:` + strings.Replace(strings.Replace(this.Status.String(), "BackupConfigurationStatus", "BackupConfigurationStatus", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *BackupConfigurationList) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&BackupConfigurationList{`, + `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "BackupConfiguration", "BackupConfiguration", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *BackupConfigurationSpec) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&BackupConfigurationSpec{`, + `BackupConfigurationTemplateSpec:` + strings.Replace(strings.Replace(this.BackupConfigurationTemplateSpec.String(), "BackupConfigurationTemplateSpec", "BackupConfigurationTemplateSpec", 1), `&`, ``, 1) + `,`, + `Schedule:` + fmt.Sprintf("%v", this.Schedule) + `,`, + `Driver:` + fmt.Sprintf("%v", this.Driver) + `,`, + `Repository:` + strings.Replace(strings.Replace(this.Repository.String(), "LocalObjectReference", "k8s_io_api_core_v1.LocalObjectReference", 1), `&`, ``, 1) + `,`, + `RetentionPolicy:` + strings.Replace(strings.Replace(this.RetentionPolicy.String(), "RetentionPolicy", "stash_appscode_dev_stash_apis_stash_v1alpha1.RetentionPolicy", 1), `&`, ``, 1) + `,`, + `Paused:` + fmt.Sprintf("%v", this.Paused) + `,`, + `BackupHistoryLimit:` + valueToStringGenerated(this.BackupHistoryLimit) + `,`, + `}`, + }, "") + return s +} +func (this *BackupConfigurationStatus) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&BackupConfigurationStatus{`, + `ObservedGeneration:` + fmt.Sprintf("%v", this.ObservedGeneration) + `,`, + `}`, + }, "") + return s +} +func (this *BackupConfigurationTemplate) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&BackupConfigurationTemplate{`, + `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, + `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "BackupConfigurationTemplateSpec", "BackupConfigurationTemplateSpec", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *BackupConfigurationTemplateSpec) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&BackupConfigurationTemplateSpec{`, + `Task:` + strings.Replace(strings.Replace(this.Task.String(), "TaskRef", "TaskRef", 1), `&`, ``, 1) + `,`, + `Target:` + strings.Replace(fmt.Sprintf("%v", this.Target), "BackupTarget", "BackupTarget", 1) + `,`, + `RuntimeSettings:` + strings.Replace(strings.Replace(this.RuntimeSettings.String(), "RuntimeSettings", "kmodules_xyz_offshoot_api_api_v1.RuntimeSettings", 1), `&`, ``, 1) + `,`, + `TempDir:` + strings.Replace(strings.Replace(this.TempDir.String(), "EmptyDirSettings", "EmptyDirSettings", 1), `&`, ``, 1) + `,`, + `InterimVolumeTemplate:` + strings.Replace(fmt.Sprintf("%v", this.InterimVolumeTemplate), "PersistentVolumeClaim", "k8s_io_api_core_v1.PersistentVolumeClaim", 1) + `,`, + `Hooks:` + strings.Replace(fmt.Sprintf("%v", this.Hooks), "Hooks", "Hooks", 1) + `,`, + `}`, + }, "") + return s +} +func (this *BackupInvokerRef) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&BackupInvokerRef{`, + `APIGroup:` + fmt.Sprintf("%v", this.APIGroup) + `,`, + `Kind:` + fmt.Sprintf("%v", this.Kind) + `,`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `}`, + }, "") + return s +} +func (this *BackupSession) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&BackupSession{`, + `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, + `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "BackupSessionSpec", "BackupSessionSpec", 1), `&`, ``, 1) + `,`, + `Status:` + strings.Replace(strings.Replace(this.Status.String(), "BackupSessionStatus", "BackupSessionStatus", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *BackupSessionList) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&BackupSessionList{`, + `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "BackupSession", "BackupSession", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *BackupSessionSpec) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&BackupSessionSpec{`, + `Invoker:` + strings.Replace(strings.Replace(this.Invoker.String(), "BackupInvokerRef", "BackupInvokerRef", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *BackupSessionStatus) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&BackupSessionStatus{`, + `Phase:` + fmt.Sprintf("%v", this.Phase) + `,`, + `TotalHosts:` + valueToStringGenerated(this.TotalHosts) + `,`, + `SessionDuration:` + fmt.Sprintf("%v", this.SessionDuration) + `,`, + `Stats:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Stats), "HostBackupStats", "HostBackupStats", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *BackupTarget) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&BackupTarget{`, + `Ref:` + strings.Replace(strings.Replace(this.Ref.String(), "TargetRef", "TargetRef", 1), `&`, ``, 1) + `,`, + `Paths:` + fmt.Sprintf("%v", this.Paths) + `,`, + `VolumeMounts:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.VolumeMounts), "VolumeMount", "k8s_io_api_core_v1.VolumeMount", 1), `&`, ``, 1) + `,`, + `Replicas:` + valueToStringGenerated(this.Replicas) + `,`, + `VolumeSnapshotClassName:` + fmt.Sprintf("%v", this.VolumeSnapshotClassName) + `,`, + `}`, + }, "") + return s +} +func (this *EmptyDirSettings) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&EmptyDirSettings{`, + `Medium:` + fmt.Sprintf("%v", this.Medium) + `,`, + `SizeLimit:` + strings.Replace(fmt.Sprintf("%v", this.SizeLimit), "Quantity", "k8s_io_apimachinery_pkg_api_resource.Quantity", 1) + `,`, + `DisableCaching:` + fmt.Sprintf("%v", this.DisableCaching) + `,`, + `}`, + }, "") + return s +} +func (this *FileStats) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&FileStats{`, + `TotalFiles:` + valueToStringGenerated(this.TotalFiles) + `,`, + `NewFiles:` + valueToStringGenerated(this.NewFiles) + `,`, + `ModifiedFiles:` + valueToStringGenerated(this.ModifiedFiles) + `,`, + `UnmodifiedFiles:` + valueToStringGenerated(this.UnmodifiedFiles) + `,`, + `}`, + }, "") + return s +} +func (this *Function) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Function{`, + `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, + `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "FunctionSpec", "FunctionSpec", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *FunctionList) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&FunctionList{`, + `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "Function", "Function", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *FunctionRef) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&FunctionRef{`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `Params:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Params), "Param", "Param", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *FunctionSpec) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&FunctionSpec{`, + `Image:` + fmt.Sprintf("%v", this.Image) + `,`, + `Command:` + fmt.Sprintf("%v", this.Command) + `,`, + `Args:` + fmt.Sprintf("%v", this.Args) + `,`, + `WorkingDir:` + fmt.Sprintf("%v", this.WorkingDir) + `,`, + `Ports:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Ports), "ContainerPort", "k8s_io_api_core_v1.ContainerPort", 1), `&`, ``, 1) + `,`, + `VolumeMounts:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.VolumeMounts), "VolumeMount", "k8s_io_api_core_v1.VolumeMount", 1), `&`, ``, 1) + `,`, + `VolumeDevices:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.VolumeDevices), "VolumeDevice", "k8s_io_api_core_v1.VolumeDevice", 1), `&`, ``, 1) + `,`, + `RuntimeSettings:` + strings.Replace(fmt.Sprintf("%v", this.RuntimeSettings), "ContainerRuntimeSettings", "kmodules_xyz_offshoot_api_api_v1.ContainerRuntimeSettings", 1) + `,`, + `PodSecurityPolicyName:` + fmt.Sprintf("%v", this.PodSecurityPolicyName) + `,`, + `}`, + }, "") + return s +} +func (this *Hooks) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Hooks{`, + `PreBackup:` + strings.Replace(fmt.Sprintf("%v", this.PreBackup), "Handler", "kmodules_xyz_prober_api_v1.Handler", 1) + `,`, + `PostBackup:` + strings.Replace(fmt.Sprintf("%v", this.PostBackup), "Handler", "kmodules_xyz_prober_api_v1.Handler", 1) + `,`, + `}`, + }, "") + return s +} +func (this *HostBackupStats) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&HostBackupStats{`, + `Hostname:` + fmt.Sprintf("%v", this.Hostname) + `,`, + `Phase:` + fmt.Sprintf("%v", this.Phase) + `,`, + `Snapshots:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Snapshots), "SnapshotStats", "SnapshotStats", 1), `&`, ``, 1) + `,`, + `Duration:` + fmt.Sprintf("%v", this.Duration) + `,`, + `Error:` + fmt.Sprintf("%v", this.Error) + `,`, + `}`, + }, "") + return s +} +func (this *HostRestoreStats) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&HostRestoreStats{`, + `Hostname:` + fmt.Sprintf("%v", this.Hostname) + `,`, + `Phase:` + fmt.Sprintf("%v", this.Phase) + `,`, + `Duration:` + fmt.Sprintf("%v", this.Duration) + `,`, + `Error:` + fmt.Sprintf("%v", this.Error) + `,`, + `}`, + }, "") + return s +} +func (this *Param) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Param{`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `Value:` + fmt.Sprintf("%v", this.Value) + `,`, + `}`, + }, "") + return s +} +func (this *RestoreSession) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&RestoreSession{`, + `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, + `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "RestoreSessionSpec", "RestoreSessionSpec", 1), `&`, ``, 1) + `,`, + `Status:` + strings.Replace(strings.Replace(this.Status.String(), "RestoreSessionStatus", "RestoreSessionStatus", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *RestoreSessionList) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&RestoreSessionList{`, + `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "RestoreSession", "RestoreSession", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *RestoreSessionSpec) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&RestoreSessionSpec{`, + `Driver:` + fmt.Sprintf("%v", this.Driver) + `,`, + `Repository:` + strings.Replace(strings.Replace(this.Repository.String(), "LocalObjectReference", "k8s_io_api_core_v1.LocalObjectReference", 1), `&`, ``, 1) + `,`, + `Task:` + strings.Replace(strings.Replace(this.Task.String(), "TaskRef", "TaskRef", 1), `&`, ``, 1) + `,`, + `Target:` + strings.Replace(fmt.Sprintf("%v", this.Target), "RestoreTarget", "RestoreTarget", 1) + `,`, + `Rules:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Rules), "Rule", "Rule", 1), `&`, ``, 1) + `,`, + `RuntimeSettings:` + strings.Replace(strings.Replace(this.RuntimeSettings.String(), "RuntimeSettings", "kmodules_xyz_offshoot_api_api_v1.RuntimeSettings", 1), `&`, ``, 1) + `,`, + `TempDir:` + strings.Replace(strings.Replace(this.TempDir.String(), "EmptyDirSettings", "EmptyDirSettings", 1), `&`, ``, 1) + `,`, + `InterimVolumeTemplate:` + strings.Replace(fmt.Sprintf("%v", this.InterimVolumeTemplate), "PersistentVolumeClaim", "k8s_io_api_core_v1.PersistentVolumeClaim", 1) + `,`, + `}`, + }, "") + return s +} +func (this *RestoreSessionStatus) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&RestoreSessionStatus{`, + `Phase:` + fmt.Sprintf("%v", this.Phase) + `,`, + `TotalHosts:` + valueToStringGenerated(this.TotalHosts) + `,`, + `SessionDuration:` + fmt.Sprintf("%v", this.SessionDuration) + `,`, + `Stats:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Stats), "HostRestoreStats", "HostRestoreStats", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *RestoreTarget) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&RestoreTarget{`, + `Replicas:` + valueToStringGenerated(this.Replicas) + `,`, + `Ref:` + strings.Replace(strings.Replace(this.Ref.String(), "TargetRef", "TargetRef", 1), `&`, ``, 1) + `,`, + `VolumeMounts:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.VolumeMounts), "VolumeMount", "k8s_io_api_core_v1.VolumeMount", 1), `&`, ``, 1) + `,`, + `VolumeClaimTemplates:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.VolumeClaimTemplates), "PersistentVolumeClaim", "k8s_io_api_core_v1.PersistentVolumeClaim", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *Rule) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Rule{`, + `TargetHosts:` + fmt.Sprintf("%v", this.TargetHosts) + `,`, + `SourceHost:` + fmt.Sprintf("%v", this.SourceHost) + `,`, + `Snapshots:` + fmt.Sprintf("%v", this.Snapshots) + `,`, + `Paths:` + fmt.Sprintf("%v", this.Paths) + `,`, + `}`, + }, "") + return s +} +func (this *SnapshotStats) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&SnapshotStats{`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `Path:` + fmt.Sprintf("%v", this.Path) + `,`, + `Uploaded:` + fmt.Sprintf("%v", this.Uploaded) + `,`, + `ProcessingTime:` + fmt.Sprintf("%v", this.ProcessingTime) + `,`, + `FileStats:` + strings.Replace(strings.Replace(this.FileStats.String(), "FileStats", "FileStats", 1), `&`, ``, 1) + `,`, + `TotalSize:` + fmt.Sprintf("%v", this.TotalSize) + `,`, + `}`, + }, "") + return s +} +func (this *TargetRef) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&TargetRef{`, + `APIVersion:` + fmt.Sprintf("%v", this.APIVersion) + `,`, + `Kind:` + fmt.Sprintf("%v", this.Kind) + `,`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `}`, + }, "") + return s +} +func (this *Task) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Task{`, + `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, + `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "TaskSpec", "TaskSpec", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *TaskList) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&TaskList{`, + `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "Task", "Task", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *TaskRef) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&TaskRef{`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `Params:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Params), "Param", "Param", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *TaskSpec) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&TaskSpec{`, + `Steps:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Steps), "FunctionRef", "FunctionRef", 1), `&`, ``, 1) + `,`, + `Volumes:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Volumes), "Volume", "k8s_io_api_core_v1.Volume", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func valueToStringGenerated(v interface{}) string { + rv := reflect.ValueOf(v) + if rv.IsNil() { + return "nil" + } + pv := reflect.Indirect(rv).Interface() + return fmt.Sprintf("*%v", pv) +} +func (m *BackupBatch) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BackupBatch: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BackupBatch: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BackupBatchList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BackupBatchList: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BackupBatchList: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Items = append(m.Items, BackupBatch{}) + if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BackupBatchSpec) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BackupBatchSpec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BackupBatchSpec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BackupConfigurationTemplates", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.BackupConfigurationTemplates = append(m.BackupConfigurationTemplates, BackupConfigurationTemplate{}) + if err := m.BackupConfigurationTemplates[len(m.BackupConfigurationTemplates)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Schedule", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Schedule = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Driver", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Driver = Snapshotter(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Repository", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Repository.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RetentionPolicy", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.RetentionPolicy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Paused", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.Paused = bool(v != 0) + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BackupHistoryLimit", wireType) + } + var v int32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= (int32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.BackupHistoryLimit = &v + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Hooks", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Hooks == nil { + m.Hooks = &Hooks{} + } + if err := m.Hooks.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BackupBatchStatus) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BackupBatchStatus: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BackupBatchStatus: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ObservedGeneration", wireType) + } + m.ObservedGeneration = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ObservedGeneration |= (int64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BackupBlueprint) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BackupBlueprint: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BackupBlueprint: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BackupBlueprintList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BackupBlueprintList: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BackupBlueprintList: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Items = append(m.Items, BackupBlueprint{}) + if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BackupBlueprintSpec) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BackupBlueprintSpec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BackupBlueprintSpec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RepositorySpec", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.RepositorySpec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Schedule", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Schedule = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Task", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Task.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RetentionPolicy", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.RetentionPolicy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RuntimeSettings", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.RuntimeSettings.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TempDir", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.TempDir.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InterimVolumeTemplate", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.InterimVolumeTemplate == nil { + m.InterimVolumeTemplate = &k8s_io_api_core_v1.PersistentVolumeClaim{} + } + if err := m.InterimVolumeTemplate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BackupHistoryLimit", wireType) + } + var v int32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= (int32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.BackupHistoryLimit = &v + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BackupConfiguration) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BackupConfiguration: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BackupConfiguration: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BackupConfigurationList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BackupConfigurationList: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BackupConfigurationList: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Items = append(m.Items, BackupConfiguration{}) + if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BackupConfigurationSpec) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BackupConfigurationSpec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BackupConfigurationSpec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BackupConfigurationTemplateSpec", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.BackupConfigurationTemplateSpec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Schedule", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Schedule = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Driver", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Driver = Snapshotter(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Repository", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Repository.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RetentionPolicy", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.RetentionPolicy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Paused", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.Paused = bool(v != 0) + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BackupHistoryLimit", wireType) + } + var v int32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= (int32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.BackupHistoryLimit = &v + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BackupConfigurationStatus) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BackupConfigurationStatus: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BackupConfigurationStatus: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ObservedGeneration", wireType) + } + m.ObservedGeneration = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ObservedGeneration |= (int64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BackupConfigurationTemplate) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BackupConfigurationTemplate: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BackupConfigurationTemplate: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BackupConfigurationTemplateSpec) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BackupConfigurationTemplateSpec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BackupConfigurationTemplateSpec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Task", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Task.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Target", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Target == nil { + m.Target = &BackupTarget{} + } + if err := m.Target.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RuntimeSettings", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.RuntimeSettings.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TempDir", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.TempDir.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InterimVolumeTemplate", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.InterimVolumeTemplate == nil { + m.InterimVolumeTemplate = &k8s_io_api_core_v1.PersistentVolumeClaim{} + } + if err := m.InterimVolumeTemplate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Hooks", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Hooks == nil { + m.Hooks = &Hooks{} + } + if err := m.Hooks.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BackupInvokerRef) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BackupInvokerRef: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BackupInvokerRef: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field APIGroup", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.APIGroup = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Kind = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BackupSession) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BackupSession: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BackupSession: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BackupSessionList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BackupSessionList: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BackupSessionList: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Items = append(m.Items, BackupSession{}) + if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BackupSessionSpec) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BackupSessionSpec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BackupSessionSpec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Invoker", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Invoker.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BackupSessionStatus) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BackupSessionStatus: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BackupSessionStatus: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Phase", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Phase = BackupSessionPhase(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalHosts", wireType) + } + var v int32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= (int32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.TotalHosts = &v + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SessionDuration", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SessionDuration = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Stats", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Stats = append(m.Stats, HostBackupStats{}) + if err := m.Stats[len(m.Stats)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BackupTarget) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BackupTarget: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BackupTarget: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ref", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Ref.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Paths", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Paths = append(m.Paths, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VolumeMounts", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.VolumeMounts = append(m.VolumeMounts, k8s_io_api_core_v1.VolumeMount{}) + if err := m.VolumeMounts[len(m.VolumeMounts)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Replicas", wireType) + } + var v int32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= (int32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.Replicas = &v + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VolumeSnapshotClassName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.VolumeSnapshotClassName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *EmptyDirSettings) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: EmptyDirSettings: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EmptyDirSettings: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Medium", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Medium = k8s_io_api_core_v1.StorageMedium(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SizeLimit", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SizeLimit == nil { + m.SizeLimit = &k8s_io_apimachinery_pkg_api_resource.Quantity{} + } + if err := m.SizeLimit.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DisableCaching", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.DisableCaching = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *FileStats) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: FileStats: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FileStats: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalFiles", wireType) + } + var v int64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= (int64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.TotalFiles = &v + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NewFiles", wireType) + } + var v int64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= (int64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.NewFiles = &v + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ModifiedFiles", wireType) + } + var v int64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= (int64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.ModifiedFiles = &v + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field UnmodifiedFiles", wireType) + } + var v int64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= (int64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.UnmodifiedFiles = &v + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Function) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Function: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Function: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *FunctionList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: FunctionList: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FunctionList: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Items = append(m.Items, Function{}) + if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *FunctionRef) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: FunctionRef: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FunctionRef: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Params = append(m.Params, Param{}) + if err := m.Params[len(m.Params)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *FunctionSpec) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: FunctionSpec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: FunctionSpec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Image", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Image = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Command", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Command = append(m.Command, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Args", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Args = append(m.Args, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field WorkingDir", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.WorkingDir = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ports", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Ports = append(m.Ports, k8s_io_api_core_v1.ContainerPort{}) + if err := m.Ports[len(m.Ports)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VolumeMounts", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.VolumeMounts = append(m.VolumeMounts, k8s_io_api_core_v1.VolumeMount{}) + if err := m.VolumeMounts[len(m.VolumeMounts)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VolumeDevices", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.VolumeDevices = append(m.VolumeDevices, k8s_io_api_core_v1.VolumeDevice{}) + if err := m.VolumeDevices[len(m.VolumeDevices)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RuntimeSettings", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.RuntimeSettings == nil { + m.RuntimeSettings = &kmodules_xyz_offshoot_api_api_v1.ContainerRuntimeSettings{} + } + if err := m.RuntimeSettings.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PodSecurityPolicyName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PodSecurityPolicyName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Hooks) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Hooks: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Hooks: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PreBackup", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.PreBackup == nil { + m.PreBackup = &kmodules_xyz_prober_api_v1.Handler{} + } + if err := m.PreBackup.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PostBackup", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.PostBackup == nil { + m.PostBackup = &kmodules_xyz_prober_api_v1.Handler{} + } + if err := m.PostBackup.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *HostBackupStats) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: HostBackupStats: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: HostBackupStats: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Hostname", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Hostname = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Phase", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Phase = HostBackupPhase(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Snapshots", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Snapshots = append(m.Snapshots, SnapshotStats{}) + if err := m.Snapshots[len(m.Snapshots)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Duration", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Duration = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Error = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *HostRestoreStats) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: HostRestoreStats: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: HostRestoreStats: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Hostname", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Hostname = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Phase", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Phase = HostRestorePhase(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Duration", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Duration = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Error = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Param) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Param: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Param: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Value = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RestoreSession) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: RestoreSession: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RestoreSession: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RestoreSessionList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: RestoreSessionList: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RestoreSessionList: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Items = append(m.Items, RestoreSession{}) + if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RestoreSessionSpec) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: RestoreSessionSpec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RestoreSessionSpec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Driver", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Driver = Snapshotter(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Repository", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Repository.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Task", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Task.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Target", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Target == nil { + m.Target = &RestoreTarget{} + } + if err := m.Target.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Rules", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Rules = append(m.Rules, Rule{}) + if err := m.Rules[len(m.Rules)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RuntimeSettings", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.RuntimeSettings.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TempDir", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.TempDir.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InterimVolumeTemplate", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.InterimVolumeTemplate == nil { + m.InterimVolumeTemplate = &k8s_io_api_core_v1.PersistentVolumeClaim{} + } + if err := m.InterimVolumeTemplate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RestoreSessionStatus) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: RestoreSessionStatus: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RestoreSessionStatus: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Phase", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Phase = RestoreSessionPhase(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalHosts", wireType) + } + var v int32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= (int32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.TotalHosts = &v + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SessionDuration", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SessionDuration = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Stats", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Stats = append(m.Stats, HostRestoreStats{}) + if err := m.Stats[len(m.Stats)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RestoreTarget) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: RestoreTarget: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RestoreTarget: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Replicas", wireType) + } + var v int32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= (int32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.Replicas = &v + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ref", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Ref.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VolumeMounts", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.VolumeMounts = append(m.VolumeMounts, k8s_io_api_core_v1.VolumeMount{}) + if err := m.VolumeMounts[len(m.VolumeMounts)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VolumeClaimTemplates", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.VolumeClaimTemplates = append(m.VolumeClaimTemplates, k8s_io_api_core_v1.PersistentVolumeClaim{}) + if err := m.VolumeClaimTemplates[len(m.VolumeClaimTemplates)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Rule) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Rule: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Rule: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TargetHosts", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TargetHosts = append(m.TargetHosts, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SourceHost", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SourceHost = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Snapshots", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Snapshots = append(m.Snapshots, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Paths", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Paths = append(m.Paths, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SnapshotStats) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SnapshotStats: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SnapshotStats: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Path = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Uploaded", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Uploaded = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ProcessingTime", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ProcessingTime = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FileStats", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.FileStats.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalSize", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TotalSize = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TargetRef) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: TargetRef: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TargetRef: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field APIVersion", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.APIVersion = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Kind = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Task) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Task: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Task: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TaskList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: TaskList: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TaskList: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Items = append(m.Items, Task{}) + if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TaskRef) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: TaskRef: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TaskRef: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Params = append(m.Params, Param{}) + if err := m.Params[len(m.Params)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TaskSpec) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: TaskSpec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TaskSpec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Steps", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Steps = append(m.Steps, FunctionRef{}) + if err := m.Steps[len(m.Steps)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Volumes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Volumes = append(m.Volumes, k8s_io_api_core_v1.Volume{}) + if err := m.Volumes[len(m.Volumes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipGenerated(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowGenerated + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowGenerated + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + return iNdEx, nil + case 1: + iNdEx += 8 + return iNdEx, nil + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowGenerated + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + iNdEx += length + if length < 0 { + return 0, ErrInvalidLengthGenerated + } + return iNdEx, nil + case 3: + for { + var innerWire uint64 + var start int = iNdEx + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowGenerated + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + innerWire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + innerWireType := int(innerWire & 0x7) + if innerWireType == 4 { + break + } + next, err := skipGenerated(dAtA[start:]) + if err != nil { + return 0, err + } + iNdEx = start + next + } + return iNdEx, nil + case 4: + return iNdEx, nil + case 5: + iNdEx += 4 + return iNdEx, nil + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + } + panic("unreachable") +} + +var ( + ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") +) + +func init() { + proto.RegisterFile("stash.appscode.dev/stash/apis/stash/v1beta1/generated.proto", fileDescriptorGenerated) +} + +var fileDescriptorGenerated = []byte{ + // 2744 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x5a, 0xdf, 0x6f, 0x5b, 0x49, + 0xf5, 0xef, 0x75, 0x6c, 0xc7, 0x9e, 0xfc, 0x6a, 0xa7, 0xed, 0xae, 0xb7, 0xdf, 0x7e, 0xe3, 0xec, + 0xed, 0x02, 0x81, 0x65, 0xaf, 0x37, 0xd1, 0xfe, 0xec, 0xb6, 0xa5, 0xbd, 0x49, 0xbb, 0xe9, 0xd2, + 0x76, 0xcd, 0x38, 0xcd, 0x8a, 0xee, 0x76, 0xdb, 0x89, 0x3d, 0xb6, 0x2f, 0xb6, 0xef, 0xbd, 0xba, + 0x73, 0xed, 0x25, 0x05, 0xa4, 0x95, 0x40, 0x42, 0x88, 0x17, 0x78, 0xe0, 0x5f, 0x40, 0xe2, 0x05, + 0x21, 0x5e, 0xf6, 0x01, 0x21, 0xca, 0x5b, 0x91, 0x10, 0x2c, 0x08, 0xc1, 0x0a, 0x44, 0x44, 0xc3, + 0x0b, 0x6f, 0xbc, 0x17, 0x09, 0xa1, 0xf9, 0x71, 0x7f, 0xfa, 0x3a, 0x89, 0x9d, 0xd4, 0x15, 0x12, + 0x0f, 0x55, 0xed, 0x33, 0x67, 0xce, 0x99, 0x33, 0x33, 0xe7, 0x73, 0x3e, 0x73, 0x1c, 0xf0, 0x06, + 0x75, 0x31, 0x6d, 0x6a, 0xd8, 0xb6, 0x69, 0xd5, 0xaa, 0x11, 0xad, 0x46, 0x7a, 0x25, 0x2e, 0x2a, + 0x61, 0xdb, 0xa0, 0xf2, 0x63, 0x6f, 0x69, 0x93, 0xb8, 0x78, 0xa9, 0xd4, 0x20, 0x26, 0x71, 0xb0, + 0x4b, 0x6a, 0x9a, 0xed, 0x58, 0xae, 0x05, 0x9f, 0xef, 0x9f, 0xac, 0x79, 0x22, 0x83, 0xca, 0x8f, + 0x72, 0xf2, 0xa9, 0x17, 0x1a, 0x86, 0xdb, 0xec, 0x6e, 0x6a, 0x55, 0xab, 0x53, 0x6a, 0x58, 0x0d, + 0xab, 0xc4, 0x6d, 0x6c, 0x76, 0xeb, 0xfc, 0x1b, 0xff, 0xc2, 0x3f, 0x09, 0xdb, 0xa7, 0xd4, 0xd6, + 0x6b, 0x54, 0x33, 0x2c, 0xb6, 0x8c, 0x52, 0xd5, 0x72, 0x48, 0xa9, 0xd7, 0xe7, 0xff, 0xd4, 0x4b, + 0x81, 0x4e, 0x07, 0x57, 0x9b, 0x86, 0x49, 0x9c, 0xad, 0x92, 0xdd, 0x6a, 0xf0, 0x49, 0x0e, 0xa1, + 0x56, 0xd7, 0xa9, 0x92, 0xa1, 0x66, 0xd1, 0x52, 0x87, 0xb8, 0x38, 0xc9, 0x57, 0x69, 0xd0, 0x2c, + 0xa7, 0x6b, 0xba, 0x46, 0xa7, 0xdf, 0xcd, 0x2b, 0x7b, 0x4d, 0xa0, 0xd5, 0x26, 0xe9, 0xe0, 0xbe, + 0x79, 0x2f, 0xb6, 0x3a, 0x56, 0xad, 0xdb, 0x26, 0x54, 0xfb, 0xea, 0xd6, 0xbd, 0x92, 0x55, 0xaf, + 0xd3, 0xa6, 0x65, 0xb9, 0x2f, 0xb0, 0x90, 0xd8, 0xbf, 0x84, 0xa5, 0x7d, 0x2e, 0x32, 0xc3, 0x76, + 0xac, 0x4d, 0xe2, 0x0c, 0xd2, 0x3d, 0xb7, 0xbf, 0xf3, 0xc6, 0x6d, 0xbb, 0xd9, 0x7f, 0xe0, 0xea, + 0x47, 0x29, 0x30, 0xa5, 0xe3, 0x6a, 0xab, 0x6b, 0xeb, 0xd8, 0xad, 0x36, 0xe1, 0x5d, 0x90, 0x63, + 0xfb, 0x55, 0xc3, 0x2e, 0x2e, 0x28, 0x0b, 0xca, 0xe2, 0xd4, 0xf2, 0x8b, 0x9a, 0x08, 0x5b, 0x0b, + 0x87, 0xad, 0xd9, 0xad, 0x86, 0xb8, 0x12, 0x4c, 0x5b, 0xeb, 0x2d, 0x69, 0x6f, 0x6f, 0x7e, 0x85, + 0x54, 0xdd, 0xeb, 0xc4, 0xc5, 0x3a, 0x7c, 0xb0, 0x5d, 0x3c, 0xb2, 0xb3, 0x5d, 0x04, 0x81, 0x0c, + 0xf9, 0x56, 0xe1, 0xfb, 0x20, 0x4d, 0x6d, 0x52, 0x2d, 0xa4, 0xb8, 0xf5, 0x73, 0xda, 0x10, 0x37, + 0x4e, 0x0b, 0xad, 0xb4, 0x62, 0x93, 0xaa, 0x3e, 0x2d, 0x3d, 0xa5, 0xd9, 0x37, 0xc4, 0xed, 0xc2, + 0x3a, 0xc8, 0x52, 0x17, 0xbb, 0x5d, 0x5a, 0x98, 0xe0, 0x1e, 0x2e, 0x8c, 0xec, 0x81, 0x5b, 0xd1, + 0x67, 0xa5, 0x8f, 0xac, 0xf8, 0x8e, 0xa4, 0x75, 0xf5, 0x37, 0x0a, 0x98, 0x0b, 0x69, 0x5f, 0x33, + 0xa8, 0x0b, 0xdf, 0xeb, 0xdb, 0x3d, 0x6d, 0x7f, 0xbb, 0xc7, 0x66, 0xf3, 0xbd, 0x3b, 0x2a, 0xbd, + 0xe5, 0x3c, 0x49, 0x68, 0xe7, 0x6e, 0x83, 0x8c, 0xe1, 0x92, 0x0e, 0x2d, 0xa4, 0x16, 0x26, 0x16, + 0xa7, 0x96, 0x5f, 0x1b, 0x35, 0x30, 0x7d, 0x46, 0x3a, 0xc9, 0x5c, 0x65, 0xe6, 0x90, 0xb0, 0xaa, + 0xfe, 0x2e, 0x13, 0x09, 0x88, 0x6d, 0x29, 0xfc, 0xa9, 0x02, 0x4e, 0x6f, 0x72, 0xd9, 0x8a, 0x65, + 0xd6, 0x8d, 0x46, 0xd7, 0xc1, 0xae, 0x61, 0x99, 0xeb, 0xa4, 0x63, 0xb7, 0xb1, 0x4b, 0x68, 0x41, + 0xe1, 0x4b, 0x59, 0x1b, 0x61, 0x29, 0x89, 0x06, 0xf5, 0xe7, 0xe4, 0xd2, 0x4e, 0xef, 0xa2, 0x44, + 0xd1, 0xae, 0x6b, 0x82, 0x9f, 0x07, 0x39, 0x96, 0x89, 0x2c, 0x81, 0xf8, 0x2d, 0xcb, 0x07, 0xbb, + 0x5a, 0x91, 0x72, 0xe4, 0x6b, 0xc0, 0x97, 0x41, 0xb6, 0xe6, 0x18, 0x3d, 0xe2, 0xf0, 0xfb, 0x92, + 0xd7, 0xff, 0xdf, 0x3b, 0xef, 0x55, 0x2e, 0x7d, 0xb4, 0x5d, 0x9c, 0xaa, 0x98, 0xd8, 0xa6, 0x4d, + 0xcb, 0x75, 0x89, 0x83, 0xa4, 0x32, 0x7c, 0x0f, 0x00, 0x87, 0xd8, 0x16, 0x35, 0x5c, 0xcb, 0xd9, + 0x2a, 0xa4, 0xf9, 0x61, 0x2f, 0x86, 0x0e, 0x5b, 0x63, 0x10, 0xc7, 0x8f, 0xd6, 0xaa, 0xe2, 0xb6, + 0xc8, 0x04, 0x44, 0xea, 0xc4, 0x21, 0x66, 0x95, 0x04, 0x29, 0x82, 0x7c, 0x1b, 0x28, 0x64, 0x0f, + 0x7e, 0xa8, 0x80, 0x39, 0x87, 0xb8, 0xc4, 0x64, 0x91, 0x95, 0xad, 0xb6, 0x51, 0xdd, 0x2a, 0x64, + 0xb8, 0x8f, 0xf3, 0xfb, 0xdc, 0x6a, 0x91, 0xef, 0x1a, 0x8a, 0x1a, 0xd1, 0x9f, 0x96, 0x8e, 0xe7, + 0x62, 0x03, 0x28, 0xee, 0x0e, 0x7e, 0x1a, 0x64, 0x6d, 0xdc, 0xa5, 0xa4, 0x56, 0xc8, 0x2e, 0x28, + 0x8b, 0xb9, 0x20, 0x0f, 0xca, 0x5c, 0x8a, 0xe4, 0x28, 0xbc, 0x02, 0xa0, 0x38, 0x8d, 0x35, 0x83, + 0xb2, 0xb5, 0x5f, 0x33, 0x3a, 0x86, 0x5b, 0x98, 0x5c, 0x50, 0x16, 0x33, 0xfa, 0x53, 0x3b, 0xdb, + 0x45, 0xa8, 0xf7, 0x8d, 0xa2, 0x84, 0x19, 0xb0, 0x02, 0x32, 0x4d, 0xcb, 0x6a, 0xd1, 0x42, 0x8e, + 0xc7, 0xb9, 0x3c, 0xd4, 0x95, 0x5a, 0x63, 0x33, 0xf5, 0x3c, 0xbb, 0xd3, 0xfc, 0x23, 0x12, 0xb6, + 0xd4, 0x3b, 0xe0, 0x58, 0x5f, 0x46, 0xc3, 0xb7, 0x00, 0xb4, 0x36, 0x29, 0x71, 0x7a, 0xa4, 0xf6, + 0xa6, 0x80, 0x43, 0xc3, 0x32, 0x79, 0xbe, 0x4e, 0xe8, 0xa7, 0x64, 0x94, 0xf0, 0xed, 0x3e, 0x0d, + 0x94, 0x30, 0x4b, 0xfd, 0x53, 0x80, 0x02, 0xed, 0x2e, 0xb1, 0x1d, 0xc3, 0x74, 0xc7, 0x80, 0xa1, + 0x9b, 0x11, 0x0c, 0xbd, 0x38, 0x0a, 0x10, 0x78, 0xab, 0x1d, 0x84, 0xa3, 0xea, 0x1f, 0x15, 0x70, + 0x3c, 0xa6, 0x3b, 0x06, 0x8c, 0xc3, 0x51, 0x8c, 0x3b, 0x77, 0x90, 0xd0, 0x06, 0xe0, 0xdc, 0xfd, + 0x6c, 0x5f, 0x60, 0x1c, 0xeb, 0xbe, 0x0e, 0x66, 0x83, 0x0c, 0x64, 0x12, 0x19, 0xde, 0xb9, 0x61, + 0x33, 0x2e, 0x6c, 0x43, 0x7f, 0x4a, 0xae, 0x61, 0x36, 0x2a, 0x47, 0x31, 0x5f, 0x43, 0x82, 0xd6, + 0x06, 0x48, 0xbb, 0x98, 0xb6, 0x64, 0x89, 0x7b, 0x69, 0xa8, 0x5d, 0x5a, 0xc7, 0xb4, 0x85, 0x48, + 0x3d, 0x38, 0x74, 0x2e, 0xe0, 0xf6, 0x12, 0x71, 0x27, 0x3d, 0x5e, 0xdc, 0x71, 0xc1, 0x9c, 0xe4, + 0x53, 0x15, 0xe2, 0xba, 0x86, 0xd9, 0xa0, 0x12, 0xf9, 0x96, 0xb4, 0x30, 0x2b, 0xd2, 0x3c, 0x1e, + 0x75, 0x87, 0x81, 0x2d, 0xfb, 0xd7, 0x5b, 0xd2, 0x50, 0x74, 0x62, 0xc8, 0x6b, 0x74, 0x00, 0xc5, + 0x5d, 0xc0, 0x26, 0x98, 0x74, 0x49, 0xc7, 0x5e, 0x35, 0x1c, 0x0e, 0x77, 0xfb, 0x8f, 0x57, 0xec, + 0xe9, 0xe5, 0x8e, 0xed, 0x6e, 0xad, 0x1a, 0x8e, 0xef, 0x79, 0x4e, 0x7a, 0x9e, 0x5c, 0x17, 0x56, + 0x91, 0x67, 0x1e, 0xde, 0x03, 0x27, 0x0d, 0xd3, 0x25, 0x8e, 0xd1, 0xd9, 0xb0, 0xda, 0xdd, 0x0e, + 0xf1, 0xea, 0x16, 0x87, 0xcc, 0xa9, 0xe5, 0xcf, 0x26, 0xd5, 0x90, 0x32, 0x71, 0xa8, 0x41, 0xd9, + 0x3e, 0x89, 0x39, 0x2b, 0x6d, 0x6c, 0x74, 0xf4, 0x67, 0x76, 0xb6, 0x8b, 0x27, 0xaf, 0x26, 0xd9, + 0x42, 0xc9, 0x2e, 0x06, 0x60, 0x75, 0x6e, 0x58, 0xac, 0x56, 0x7f, 0x9b, 0xf2, 0x52, 0x28, 0x52, + 0x82, 0xc7, 0x80, 0x7c, 0xf5, 0x08, 0xf2, 0xad, 0x1e, 0x94, 0x77, 0x0c, 0x64, 0x91, 0x66, 0x8c, + 0x45, 0x5e, 0x39, 0xb0, 0xa7, 0xdd, 0xd9, 0xe4, 0xb6, 0x02, 0x9e, 0x4e, 0x98, 0x35, 0x06, 0xc4, + 0x25, 0x51, 0xc4, 0xbd, 0x78, 0xd0, 0x40, 0x07, 0xa0, 0xee, 0xf7, 0x33, 0x89, 0x01, 0x72, 0xec, + 0xfb, 0x85, 0x02, 0x8a, 0xbb, 0x30, 0xba, 0x10, 0x16, 0x5f, 0x3b, 0x2c, 0xa2, 0xc9, 0x0f, 0xfe, + 0x33, 0x72, 0xa5, 0xc5, 0x3d, 0x14, 0xd1, 0x5e, 0xab, 0xfb, 0x1f, 0xe5, 0xfc, 0x6f, 0xa4, 0x9c, + 0x6a, 0x03, 0x3c, 0x33, 0x30, 0x53, 0x0f, 0x95, 0x25, 0xfe, 0x53, 0x01, 0xff, 0xb7, 0xcb, 0x1d, + 0x1b, 0x03, 0x6e, 0x9a, 0x11, 0xdc, 0x3c, 0xdc, 0x34, 0x4a, 0x62, 0x8f, 0xdf, 0xc9, 0x80, 0xbd, + 0xb2, 0xca, 0x27, 0x31, 0xca, 0x21, 0x93, 0x98, 0xdb, 0x20, 0xeb, 0x62, 0xa7, 0x41, 0x5c, 0x19, + 0xed, 0xeb, 0x23, 0x44, 0xbb, 0xce, 0x0d, 0xe8, 0x80, 0xdd, 0x3e, 0xf1, 0x19, 0x49, 0xa3, 0x49, + 0x04, 0x65, 0x62, 0xac, 0x04, 0x25, 0xfd, 0x84, 0x08, 0x4a, 0xe6, 0xf1, 0x13, 0x14, 0xff, 0x11, + 0x98, 0x3d, 0xc4, 0x47, 0xe0, 0xb7, 0x14, 0x70, 0x54, 0x9c, 0xea, 0x55, 0xb3, 0x67, 0xb5, 0x88, + 0x83, 0x48, 0x9d, 0x21, 0x36, 0xb6, 0x8d, 0x37, 0x1d, 0xab, 0x6b, 0xf3, 0x0b, 0x18, 0x42, 0xec, + 0x4b, 0xe5, 0xab, 0x5c, 0x8e, 0x7c, 0x0d, 0xb8, 0x00, 0xd2, 0x2d, 0xc3, 0xac, 0x49, 0x6c, 0xf7, + 0x2f, 0xdd, 0x17, 0x0d, 0xb3, 0x86, 0xf8, 0x08, 0xd3, 0x30, 0x71, 0x87, 0x48, 0x44, 0xf7, 0x35, + 0x6e, 0xe0, 0x0e, 0x41, 0x7c, 0x44, 0xfd, 0x79, 0x0a, 0xcc, 0x88, 0x65, 0x54, 0x08, 0xa5, 0xe3, + 0xa1, 0x4b, 0x77, 0x23, 0x69, 0x3f, 0x4a, 0x2b, 0x4c, 0xae, 0x75, 0x20, 0x51, 0x6a, 0xc6, 0x88, + 0xd2, 0xc5, 0x03, 0xf8, 0xd8, 0x9d, 0x22, 0xfd, 0x5e, 0xf1, 0x1e, 0xf3, 0x52, 0x7f, 0x0c, 0xe4, + 0xe8, 0x4e, 0x94, 0x1c, 0x9d, 0x1d, 0x3d, 0xb8, 0x01, 0xb4, 0xe8, 0x1b, 0xb1, 0x98, 0x2a, 0x62, + 0x4f, 0x27, 0x0d, 0x71, 0x53, 0x65, 0x48, 0xe7, 0x47, 0xf0, 0x1b, 0xdc, 0xf5, 0x20, 0xd7, 0x3d, + 0x99, 0x67, 0x5e, 0xfd, 0xa1, 0x4f, 0xe4, 0x23, 0x67, 0x00, 0x5f, 0x07, 0x19, 0xbb, 0x89, 0x29, + 0x91, 0xa9, 0x71, 0xc6, 0x5b, 0x7b, 0x99, 0x09, 0x1f, 0xf9, 0x15, 0x56, 0x4e, 0xe2, 0x52, 0x24, + 0x66, 0x40, 0x0d, 0x00, 0xd7, 0x72, 0x71, 0x7b, 0xcd, 0xa2, 0x2e, 0xe5, 0x17, 0x2f, 0xa3, 0xcf, + 0xb2, 0x0b, 0xba, 0xee, 0x4b, 0x51, 0x48, 0x03, 0x5e, 0x02, 0x73, 0x54, 0x98, 0x59, 0x95, 0x45, + 0x42, 0xe6, 0x90, 0x8f, 0x8d, 0x95, 0xe8, 0x30, 0x8a, 0xeb, 0x43, 0x0c, 0x32, 0xec, 0x8e, 0xd0, + 0x42, 0x7a, 0x84, 0xa6, 0x01, 0x5b, 0x85, 0x8c, 0x86, 0xd9, 0x08, 0xce, 0x89, 0x7f, 0x45, 0xc2, + 0xb2, 0xfa, 0xe7, 0x14, 0x98, 0x0e, 0x57, 0x06, 0x78, 0x13, 0x4c, 0x38, 0xa4, 0x2e, 0xcf, 0xe7, + 0x95, 0x21, 0x6b, 0x17, 0xaf, 0x27, 0xa4, 0xae, 0x4f, 0x49, 0x5f, 0x13, 0x88, 0xd4, 0x11, 0xb3, + 0x07, 0x8b, 0x20, 0x63, 0x63, 0xb7, 0x29, 0x2e, 0x5c, 0x5e, 0x80, 0x59, 0x99, 0x09, 0x90, 0x90, + 0xc3, 0x2f, 0x83, 0xe9, 0x1e, 0xc7, 0xcc, 0xeb, 0x56, 0xd7, 0x74, 0x59, 0xd6, 0xb1, 0x90, 0x8b, + 0x49, 0xa0, 0xbc, 0x11, 0xe8, 0xe9, 0x27, 0xa4, 0xa7, 0xe9, 0x90, 0x90, 0xa2, 0x88, 0x29, 0xb8, + 0x08, 0x72, 0x0e, 0xb1, 0xdb, 0x46, 0x15, 0x53, 0x5e, 0x63, 0x32, 0xfa, 0x34, 0x4b, 0x0b, 0x24, + 0x65, 0xc8, 0x1f, 0x85, 0xd7, 0xc1, 0x31, 0x2a, 0x09, 0xea, 0x4a, 0x1b, 0x53, 0xca, 0x50, 0x8e, + 0x97, 0x87, 0xbc, 0x5e, 0x94, 0x8e, 0x9e, 0x16, 0x8e, 0x2a, 0x71, 0x35, 0xd4, 0x3f, 0x53, 0xfd, + 0x97, 0x02, 0x8e, 0xc6, 0x0b, 0x14, 0x7c, 0x0b, 0x64, 0x3b, 0xa4, 0x66, 0x74, 0x3b, 0xf2, 0x0e, + 0x2e, 0x7b, 0xb0, 0x70, 0x9d, 0x4b, 0x1f, 0x6d, 0x17, 0x17, 0xfa, 0x7f, 0x50, 0xd2, 0x2a, 0xae, + 0xe5, 0xe0, 0x06, 0x11, 0x3a, 0x48, 0x5a, 0x80, 0xef, 0x82, 0x3c, 0x35, 0xee, 0x11, 0xc1, 0x13, + 0x53, 0x7b, 0xa3, 0x84, 0xe6, 0xfd, 0xd4, 0xa4, 0x7d, 0xa9, 0x8b, 0x4d, 0xd7, 0x70, 0xb7, 0xf4, + 0x99, 0x9d, 0xed, 0x62, 0xbe, 0xe2, 0x19, 0x41, 0x81, 0x3d, 0x78, 0x01, 0xcc, 0xd6, 0x0c, 0x8a, + 0x37, 0xdb, 0x64, 0x85, 0xdb, 0x69, 0xf0, 0xfb, 0x9b, 0x0b, 0x3a, 0x3f, 0xab, 0x91, 0x51, 0x14, + 0xd3, 0x56, 0xff, 0xaa, 0x80, 0xfc, 0x15, 0xa3, 0x4d, 0xf8, 0x7d, 0xf3, 0xd3, 0x87, 0x49, 0xa8, + 0xa4, 0x9b, 0x41, 0xfa, 0x70, 0x29, 0x0a, 0x69, 0xb0, 0x43, 0x33, 0xc9, 0x07, 0x42, 0x3b, 0xc5, + 0xb5, 0xf9, 0xa1, 0xdd, 0x90, 0x32, 0xe4, 0x8f, 0xc2, 0x57, 0xc1, 0x4c, 0xc7, 0xaa, 0x19, 0x75, + 0x83, 0xd4, 0x84, 0xfa, 0x04, 0x57, 0x3f, 0xb6, 0xb3, 0x5d, 0x9c, 0xb9, 0x1e, 0x1e, 0x40, 0x51, + 0x3d, 0x78, 0x1e, 0xcc, 0x75, 0xcd, 0xe8, 0xd4, 0x34, 0x9f, 0x7a, 0x9c, 0x65, 0xe7, 0xcd, 0xe8, + 0x10, 0x8a, 0xeb, 0xaa, 0xbf, 0x52, 0x40, 0xee, 0x4a, 0xd7, 0xac, 0x8e, 0xa9, 0x43, 0xf0, 0x6e, + 0xa4, 0xe4, 0x0d, 0xc7, 0xfd, 0xbc, 0x65, 0x0e, 0xa4, 0xb5, 0x0f, 0x14, 0x30, 0xed, 0x29, 0x8d, + 0xa1, 0xfc, 0xdc, 0x8a, 0x96, 0x9f, 0x97, 0x47, 0x0a, 0x66, 0x40, 0xe5, 0xf9, 0xae, 0x02, 0xa6, + 0x3c, 0x15, 0x46, 0x88, 0x3c, 0x02, 0xa3, 0x0c, 0x22, 0x30, 0xf0, 0x16, 0x7b, 0x9e, 0x39, 0xd8, + 0x5f, 0xce, 0x70, 0xec, 0xac, 0xcc, 0xa6, 0x86, 0x9f, 0x74, 0xcc, 0x12, 0x92, 0x16, 0xd5, 0x7f, + 0xa7, 0x83, 0x8d, 0xe5, 0x35, 0xf0, 0x0c, 0xc8, 0x18, 0x1d, 0xdc, 0xf0, 0xd6, 0x13, 0xc4, 0xc0, + 0x84, 0x48, 0x8c, 0xc1, 0x4f, 0x81, 0xc9, 0xaa, 0xd5, 0xe9, 0x60, 0xce, 0xcc, 0x18, 0x5e, 0x4e, + 0xb1, 0x2a, 0xb7, 0x22, 0x44, 0xc8, 0x1b, 0x83, 0xa7, 0x41, 0x1a, 0x3b, 0x0d, 0x81, 0x95, 0x79, + 0x3d, 0xc7, 0xc2, 0xba, 0xe4, 0x34, 0x28, 0xe2, 0x52, 0xb8, 0x0c, 0xc0, 0x07, 0x96, 0xd3, 0x32, + 0xcc, 0x86, 0x47, 0xae, 0xf3, 0xc1, 0x15, 0x7b, 0xc7, 0x1f, 0x41, 0x21, 0x2d, 0x78, 0x05, 0x64, + 0x6c, 0xcb, 0x71, 0x69, 0x21, 0xc3, 0x77, 0xe2, 0xd9, 0x24, 0xf8, 0x5d, 0xb1, 0x4c, 0x17, 0xb3, + 0xd3, 0x2f, 0x5b, 0x4e, 0xa8, 0x17, 0xcd, 0xbe, 0x31, 0x34, 0x67, 0xff, 0xf5, 0xa1, 0x79, 0xf6, + 0xf0, 0xd0, 0xfc, 0x36, 0x98, 0x11, 0xdf, 0x57, 0x49, 0xcf, 0xa8, 0x12, 0x5a, 0x98, 0xe4, 0xb6, + 0x17, 0x06, 0xdb, 0x16, 0x8a, 0xfa, 0x49, 0x69, 0x7c, 0x26, 0x2c, 0xa5, 0x28, 0x6a, 0x0d, 0x6e, + 0xf5, 0xbf, 0x82, 0xc4, 0x0f, 0x37, 0x67, 0xf7, 0x7e, 0x05, 0xf9, 0x3b, 0x13, 0x7f, 0x0e, 0x1d, + 0xdf, 0xd7, 0x53, 0xa8, 0x02, 0x4e, 0xda, 0x56, 0xad, 0x42, 0xaa, 0x5d, 0xc7, 0x70, 0xb7, 0x44, + 0xef, 0x80, 0x57, 0xa0, 0x7c, 0xa4, 0x9b, 0x72, 0xb2, 0x9c, 0xa4, 0x84, 0x92, 0xe7, 0xaa, 0x3f, + 0x56, 0x80, 0x78, 0x35, 0xc0, 0x32, 0xc8, 0xdb, 0x0e, 0x11, 0xc5, 0x5e, 0xe6, 0xf4, 0x99, 0x68, + 0x4c, 0xe2, 0x07, 0x79, 0x2f, 0x9a, 0x35, 0x6c, 0xd6, 0xda, 0xc4, 0x11, 0x15, 0xa2, 0xec, 0xcd, + 0x44, 0x81, 0x11, 0x58, 0x01, 0xc0, 0xf6, 0x59, 0x86, 0x04, 0xa6, 0x7d, 0x99, 0xe4, 0xc0, 0x5f, + 0xf6, 0xa7, 0xa2, 0x90, 0x19, 0xf5, 0xa3, 0x14, 0x98, 0x8b, 0x71, 0x17, 0xf6, 0xa8, 0x69, 0x5a, + 0xd4, 0x0d, 0xe5, 0xb1, 0x8f, 0x2e, 0x6b, 0x52, 0x8e, 0x7c, 0x0d, 0xf8, 0x8a, 0x47, 0xf2, 0xc4, + 0xab, 0x66, 0x21, 0x4e, 0xf2, 0x42, 0xe6, 0x23, 0x0c, 0xaf, 0x05, 0xf2, 0x5e, 0x0d, 0xf7, 0xf8, + 0xc7, 0x70, 0xc4, 0xd8, 0x23, 0x05, 0x82, 0x70, 0x1d, 0x93, 0x7e, 0xf3, 0x9e, 0x98, 0xa2, 0xc0, + 0x3e, 0x0b, 0xa9, 0xe6, 0xf1, 0xc2, 0x74, 0x34, 0x24, 0x9f, 0x10, 0xfa, 0x1a, 0x0c, 0x35, 0x88, + 0xe3, 0x58, 0x8e, 0x24, 0x23, 0x7e, 0xd2, 0x5d, 0x66, 0x42, 0x24, 0xc6, 0xd4, 0x5f, 0x2b, 0xe0, + 0x28, 0x0b, 0x0d, 0x11, 0xea, 0x5a, 0x0e, 0x19, 0x65, 0xeb, 0x5e, 0x8d, 0x6e, 0xdd, 0xb3, 0xf1, + 0xad, 0x0b, 0xdb, 0x8f, 0xec, 0x5d, 0x38, 0x9c, 0x89, 0xfd, 0x87, 0x93, 0xde, 0x25, 0x9c, 0x1b, + 0x20, 0xc3, 0xc1, 0x74, 0x1f, 0x08, 0x7e, 0x06, 0x64, 0x7a, 0xb8, 0xdd, 0xf5, 0x96, 0xed, 0xdb, + 0xdb, 0x60, 0x42, 0x24, 0xc6, 0xd4, 0xfb, 0x29, 0x30, 0xeb, 0x6d, 0xcd, 0xd8, 0x1e, 0xaa, 0x38, + 0x52, 0xb5, 0xbf, 0x30, 0xd4, 0x75, 0x8a, 0x2e, 0x76, 0xe0, 0x4b, 0xd5, 0x88, 0xbd, 0x54, 0x2f, + 0x1d, 0xc4, 0xc9, 0xee, 0x4f, 0xd5, 0x3f, 0x28, 0x00, 0x46, 0x27, 0x8c, 0x81, 0x2c, 0xdc, 0x8d, + 0x92, 0x85, 0x37, 0x0e, 0x10, 0xde, 0x00, 0xca, 0xf0, 0x83, 0x6c, 0x3c, 0x2c, 0x5e, 0xaa, 0x83, + 0x76, 0xb6, 0x32, 0x7a, 0x3b, 0x3b, 0x75, 0xc8, 0xed, 0xec, 0xc7, 0xf5, 0x0b, 0xe9, 0xfb, 0x7e, + 0x73, 0x31, 0x2d, 0xcb, 0xdd, 0x08, 0xdb, 0xbc, 0x4b, 0x77, 0x71, 0x03, 0x64, 0x1c, 0x56, 0x15, + 0x24, 0xb3, 0x58, 0x1a, 0xce, 0x7c, 0xb7, 0x4d, 0x82, 0xb3, 0x63, 0xdf, 0x28, 0x12, 0xe6, 0x92, + 0xba, 0x96, 0xd9, 0xb1, 0x76, 0x2d, 0x27, 0x9f, 0x50, 0xd7, 0x32, 0xf7, 0xd8, 0xbb, 0x96, 0xea, + 0x8f, 0x52, 0xe0, 0x44, 0x12, 0x3e, 0xc0, 0xb3, 0xd1, 0x36, 0xca, 0x73, 0xf1, 0x32, 0x71, 0x3c, + 0x3a, 0xeb, 0x49, 0xf7, 0x51, 0x36, 0xa3, 0x7d, 0x94, 0xf3, 0x43, 0xf7, 0x51, 0xc2, 0x15, 0x75, + 0x40, 0x23, 0xe5, 0x1f, 0x29, 0x30, 0x13, 0xc9, 0x82, 0x48, 0xdb, 0x41, 0xd9, 0xb5, 0xed, 0x20, + 0x7b, 0x2e, 0xa9, 0x43, 0xee, 0xb9, 0x3c, 0xc6, 0x96, 0xca, 0xd7, 0xc0, 0x89, 0x5e, 0x70, 0xb5, + 0x82, 0x3f, 0x9b, 0x13, 0x1b, 0x3c, 0xc4, 0xa5, 0x3c, 0x2d, 0x9d, 0x9d, 0xd8, 0x48, 0x30, 0x87, + 0x12, 0x9d, 0xa8, 0x3f, 0x53, 0x40, 0x9a, 0x61, 0x00, 0x5c, 0x02, 0x53, 0x02, 0x5d, 0xc4, 0x5d, + 0x52, 0xf8, 0x33, 0x68, 0x6e, 0x67, 0xbb, 0x38, 0xb5, 0x1e, 0x88, 0x51, 0x58, 0x87, 0x3d, 0x8a, + 0x44, 0x07, 0x84, 0x7d, 0x95, 0x74, 0xc1, 0x87, 0xdc, 0x8a, 0x3f, 0x82, 0x42, 0x5a, 0xf0, 0xf9, + 0x38, 0x2f, 0xcc, 0xcb, 0xae, 0x49, 0x12, 0xaf, 0xf3, 0x1b, 0x5d, 0xe9, 0xe4, 0x46, 0x97, 0xfa, + 0x97, 0x14, 0x98, 0x89, 0x10, 0xc5, 0x7d, 0xf0, 0x9b, 0x05, 0x90, 0x66, 0x93, 0xe3, 0x6d, 0x7a, + 0x66, 0x17, 0xf1, 0x11, 0xc6, 0xbf, 0xba, 0x76, 0xdb, 0xc2, 0x35, 0x52, 0x8b, 0xd3, 0xc9, 0x9b, + 0x52, 0x8e, 0x7c, 0x0d, 0x78, 0x01, 0xcc, 0xda, 0x8e, 0x55, 0x65, 0x69, 0x62, 0x36, 0xd6, 0x0d, + 0xbf, 0xc9, 0xe5, 0xb7, 0x76, 0xca, 0x91, 0x51, 0x14, 0xd3, 0x86, 0x0d, 0x90, 0xaf, 0x7b, 0x9d, + 0x1d, 0x09, 0xb7, 0xc3, 0x5d, 0x5b, 0xbf, 0x2f, 0x14, 0xb0, 0x64, 0x5f, 0x84, 0x02, 0xdb, 0xb0, + 0x04, 0xf2, 0x1c, 0x0a, 0x2a, 0xc6, 0x3d, 0xf1, 0x87, 0x24, 0xf9, 0x60, 0xc2, 0xba, 0x37, 0x80, + 0x02, 0x1d, 0xf5, 0x9b, 0x0a, 0xc8, 0xfb, 0x39, 0xc1, 0x4e, 0x1b, 0xdb, 0xc6, 0x06, 0xbb, 0x79, + 0xf2, 0x37, 0xce, 0xd0, 0x69, 0x5f, 0x2a, 0x5f, 0x95, 0x23, 0x28, 0xa4, 0x75, 0x28, 0x3f, 0x89, + 0xfc, 0x52, 0x01, 0xbc, 0xb6, 0x8e, 0x81, 0x60, 0xbe, 0x13, 0x21, 0x98, 0x2f, 0x0f, 0xcd, 0x07, + 0x06, 0xb6, 0x84, 0xee, 0x2b, 0x20, 0xc7, 0x14, 0xc6, 0xc0, 0xf0, 0x36, 0xa2, 0x0c, 0x6f, 0x69, + 0xe8, 0x20, 0x06, 0xf0, 0xba, 0x6f, 0x2b, 0x60, 0x52, 0x72, 0x9e, 0x27, 0xdc, 0x06, 0xfa, 0x89, + 0xdc, 0x4c, 0xce, 0x2b, 0x6f, 0xb3, 0x72, 0x44, 0x6c, 0xef, 0x8f, 0x8c, 0x5f, 0x1b, 0xa9, 0xfb, + 0xc5, 0x20, 0x3f, 0x54, 0x89, 0x88, 0xcd, 0x2b, 0x11, 0xb1, 0x29, 0xbc, 0x0c, 0x26, 0x05, 0x6c, + 0x7a, 0x81, 0x9c, 0x1a, 0x8c, 0xf8, 0x01, 0xf1, 0x10, 0xdf, 0x29, 0xf2, 0xe6, 0xea, 0x2f, 0x3c, + 0x78, 0x38, 0x7f, 0xe4, 0xe3, 0x87, 0xf3, 0x47, 0x3e, 0x79, 0x38, 0x7f, 0xe4, 0xc3, 0x9d, 0x79, + 0xe5, 0xc1, 0xce, 0xbc, 0xf2, 0xf1, 0xce, 0xbc, 0xf2, 0xc9, 0xce, 0xbc, 0xf2, 0xb7, 0x9d, 0x79, + 0xe5, 0x7b, 0x7f, 0x9f, 0x3f, 0x72, 0x6b, 0x52, 0xae, 0xeb, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, + 0xf1, 0xe3, 0x12, 0xd6, 0x9f, 0x31, 0x00, 0x00, +} diff --git a/apis/stash/v1beta1/generated.proto b/apis/stash/v1beta1/generated.proto new file mode 100644 index 000000000..0b6c905ec --- /dev/null +++ b/apis/stash/v1beta1/generated.proto @@ -0,0 +1,686 @@ +/* +Copyright The Stash Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// This file was autogenerated by go-to-protobuf. Do not edit it manually! + +syntax = 'proto2'; + +package stash.appscode.dev.stash.apis.stash.v1beta1; + +import "k8s.io/api/core/v1/generated.proto"; +import "k8s.io/apimachinery/pkg/api/resource/generated.proto"; +import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; +import "k8s.io/apimachinery/pkg/runtime/generated.proto"; +import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; +import "kmodules.xyz/offshoot-api/api/v1/generated.proto"; +import "kmodules.xyz/prober/api/v1/generated.proto"; +import "stash.appscode.dev/stash/apis/stash/v1alpha1/generated.proto"; + +// Package-wide variables from generator "generated". +option go_package = "v1beta1"; + +// +kubebuilder:object:root=true +// +kubebuilder:resource:path=backupbatches,singular=backupbatch,categories={stash,appscode,all} +// +kubebuilder:subresource:status +// +kubebuilder:printcolumn:name="Schedule",type="string",JSONPath=".spec.schedule" +// +kubebuilder:printcolumn:name="Paused",type="boolean",JSONPath=".spec.paused" +// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp" +message BackupBatch { + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + + optional BackupBatchSpec spec = 2; + + optional BackupBatchStatus status = 3; +} + +message BackupBatchList { + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + + repeated BackupBatch items = 2; +} + +message BackupBatchSpec { + // backupConfigurationTemplates is a list of backup configurations that are part of this batch + // +optional + repeated BackupConfigurationTemplate backupConfigurationTemplates = 1; + + // Schedule specifies the schedule for invoking backup sessions + // +optional + optional string schedule = 2; + + // Driver indicates the name of the agent to use to backup the target. + // Supported values are "Restic", "VolumeSnapshotter". + // Default value is "Restic". + // +optional + optional string driver = 3; + + // Repository refer to the Repository crd that holds backend information + // +optional + optional k8s.io.api.core.v1.LocalObjectReference repository = 4; + + // RetentionPolicy indicates the policy to follow to clean old backup snapshots + optional .stash.appscode.dev.stash.apis.stash.v1alpha1.RetentionPolicy retentionPolicy = 5; + + // Indicates that the BackupConfiguration is paused from taking backup. Default value is 'false' + // +optional + optional bool paused = 6; + + // BackupHistoryLimit specifies the number of BackupSession and it's associate resources to keep. + // This is helpful for debugging purpose. + // Default: 1 + // +optional + optional int32 backupHistoryLimit = 7; + + // Actions that Stash should take in response to backup sessions. + // Cannot be updated. + // +optional + optional Hooks hooks = 8; +} + +message BackupBatchStatus { + // ObservedGeneration is the most recent generation observed for this BackupBatch. It corresponds to the + // BackupBatch's generation, which is updated on mutation by the API Server. + // +optional + optional int64 observedGeneration = 1; +} + +// +kubebuilder:object:root=true +// +kubebuilder:resource:path=backupblueprints,singular=backupblueprint,shortName=bb,categories={stash,appscode} +// +kubebuilder:printcolumn:name="Task",type="string",JSONPath=".spec.task.name" +// +kubebuilder:printcolumn:name="Schedule",type="string",JSONPath=".spec.schedule" +// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp" +message BackupBlueprint { + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + + optional BackupBlueprintSpec spec = 2; +} + +message BackupBlueprintList { + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + + repeated BackupBlueprint items = 2; +} + +message BackupBlueprintSpec { + // RepositorySpec is used to create Repository crd for respective workload + optional .stash.appscode.dev.stash.apis.stash.v1alpha1.RepositorySpec repositorySpec = 1; + + optional string schedule = 2; + + // Task specify the Task crd that specifies steps for backup process + // +optional + optional TaskRef task = 3; + + // RetentionPolicy indicates the policy to follow to clean old backup snapshots + optional .stash.appscode.dev.stash.apis.stash.v1alpha1.RetentionPolicy retentionPolicy = 4; + + // RuntimeSettings allow to specify Resources, NodeSelector, Affinity, Toleration, ReadinessProbe etc. + // +optional + optional kmodules.xyz.offshoot_api.api.v1.RuntimeSettings runtimeSettings = 5; + + // Temp directory configuration for functions/sidecar + // An `EmptyDir` will always be mounted at /tmp with this settings + // +optional + optional EmptyDirSettings tempDir = 6; + + // InterimVolumeTemplate specifies a template for a volume to hold targeted data temporarily + // before uploading to backend or inserting into target. It is only usable for job model. + // Don't specify it in sidecar model. + // +optional + optional k8s.io.api.core.v1.PersistentVolumeClaim interimVolumeTemplate = 7; + + // BackupHistoryLimit specifies the number of BackupSession and it's associate resources to keep. + // This is helpful for debugging purpose. + // Default: 1 + // +optional + optional int32 backupHistoryLimit = 8; +} + +// +kubebuilder:object:root=true +// +kubebuilder:resource:path=backupconfigurations,singular=backupconfiguration,shortName=bc,categories={stash,appscode,all} +// +kubebuilder:subresource:status +// +kubebuilder:printcolumn:name="Task",type="string",JSONPath=".spec.task.name" +// +kubebuilder:printcolumn:name="Schedule",type="string",JSONPath=".spec.schedule" +// +kubebuilder:printcolumn:name="Paused",type="boolean",JSONPath=".spec.paused" +// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp" +message BackupConfiguration { + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + + optional BackupConfigurationSpec spec = 2; + + optional BackupConfigurationStatus status = 3; +} + +message BackupConfigurationList { + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + + repeated BackupConfiguration items = 2; +} + +message BackupConfigurationSpec { + optional BackupConfigurationTemplateSpec backupConfigurationTemplateSpec = 1; + + // Schedule specifies the schedule for invoking backup sessions + // +optional + optional string schedule = 2; + + // Driver indicates the name of the agent to use to backup the target. + // Supported values are "Restic", "VolumeSnapshotter". + // Default value is "Restic". + // +optional + optional string driver = 3; + + // Repository refer to the Repository crd that holds backend information + // +optional + optional k8s.io.api.core.v1.LocalObjectReference repository = 4; + + // RetentionPolicy indicates the policy to follow to clean old backup snapshots + optional .stash.appscode.dev.stash.apis.stash.v1alpha1.RetentionPolicy retentionPolicy = 5; + + // Indicates that the BackupConfiguration is paused from taking backup. Default value is 'false' + // +optional + optional bool paused = 6; + + // BackupHistoryLimit specifies the number of BackupSession and it's associate resources to keep. + // This is helpful for debugging purpose. + // Default: 1 + // +optional + optional int32 backupHistoryLimit = 7; +} + +message BackupConfigurationStatus { + // ObservedGeneration is the most recent generation observed for this BackupConfiguration. It corresponds to the + // BackupConfiguration's generation, which is updated on mutation by the API Server. + // +optional + optional int64 observedGeneration = 1; +} + +message BackupConfigurationTemplate { + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + + optional BackupConfigurationTemplateSpec spec = 2; +} + +message BackupConfigurationTemplateSpec { + // Task specify the Task crd that specifies the steps to take backup + // +optional + optional TaskRef task = 1; + + // Target specify the backup target + // +optional + optional BackupTarget target = 2; + + // RuntimeSettings allow to specify Resources, NodeSelector, Affinity, Toleration, ReadinessProbe etc. + // +optional + optional kmodules.xyz.offshoot_api.api.v1.RuntimeSettings runtimeSettings = 3; + + // Temp directory configuration for functions/sidecar + // An `EmptyDir` will always be mounted at /tmp with this settings + // +optional + optional EmptyDirSettings tempDir = 4; + + // InterimVolumeTemplate specifies a template for a volume to hold targeted data temporarily + // before uploading to backend or inserting into target. It is only usable for job model. + // Don't specify it in sidecar model. + // +optional + optional k8s.io.api.core.v1.PersistentVolumeClaim interimVolumeTemplate = 5; + + // Actions that Stash should take in response to backup sessions. + // Cannot be updated. + // +optional + optional Hooks hooks = 6; +} + +// BackupInvokerRef contains information that points to the backup configuration or batch being used +message BackupInvokerRef { + // APIGroup is the group for the resource being referenced + // +optional + optional string apiGroup = 1; + + // Kind is the type of resource being referenced + optional string kind = 2; + + // Name is the name of resource being referenced + optional string name = 3; +} + +// +kubebuilder:object:root=true +// +kubebuilder:resource:path=backupsessions,singular=backupsession,categories={stash,appscode,all} +// +kubebuilder:subresource:status +// +kubebuilder:printcolumn:name="Invoker-Type",type="string",JSONPath=".spec.invoker.kind" +// +kubebuilder:printcolumn:name="Invoker-Name",type="string",JSONPath=".spec.invoker.name" +// +kubebuilder:printcolumn:name="Phase",type="string",JSONPath=".status.phase" +// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp" +message BackupSession { + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + + optional BackupSessionSpec spec = 2; + + optional BackupSessionStatus status = 3; +} + +message BackupSessionList { + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + + repeated BackupSession items = 2; +} + +message BackupSessionSpec { + // Invoker refers to the BackupConfiguration or BackupBatch being used to invoke this backup session + // +optional + optional BackupInvokerRef invoker = 1; +} + +message BackupSessionStatus { + // Phase indicates the overall phase of the backup process for this BackupSession. Phase will be "Succeeded" only if + // phase of all hosts are "Succeeded". If any of the host fail to complete backup, Phase will be "Failed". + // +optional + optional string phase = 1; + + // TotalHosts specifies total number of hosts that will be backed up for this BackupSession + // +optional + optional int32 totalHosts = 2; + + // SessionDuration specify total time taken to complete current backup session (sum of backup duration of all hosts) + // +optional + optional string sessionDuration = 3; + + // Stats shows statistics of individual hosts for this backup session + // +optional + repeated HostBackupStats stats = 4; +} + +message BackupTarget { + // Ref refers to the backup target + optional TargetRef ref = 1; + + // Paths specify the file paths to backup + // +optional + repeated string paths = 2; + + // VolumeMounts specifies the volumes to mount inside stash sidecar/init container + // Specify the volumes that contains the target directories + // +optional + repeated k8s.io.api.core.v1.VolumeMount volumeMounts = 3; + + // replicas are the desired number of replicas whose data should be backed up. + // If unspecified, defaults to 1. + // +optional + optional int32 replicas = 4; + + // Name of the VolumeSnapshotClass used by the VolumeSnapshot. If not specified, a default snapshot class will be used if it is available. + // Use this field only if the "driver" field is set to "volumeSnapshotter". + // +optional + optional string snapshotClassName = 5; +} + +message EmptyDirSettings { + optional string medium = 1; + + optional k8s.io.apimachinery.pkg.api.resource.Quantity sizeLimit = 2; + + // More info: https://github.com/restic/restic/blob/master/doc/manual_rest.rst#caching + optional bool disableCaching = 3; +} + +message FileStats { + // TotalFiles shows total number of files that has been backed up + optional int64 totalFiles = 1; + + // NewFiles shows total number of new files that has been created since last backup + optional int64 newFiles = 2; + + // ModifiedFiles shows total number of files that has been modified since last backup + optional int64 modifiedFiles = 3; + + // UnmodifiedFiles shows total number of files that has not been changed since last backup + optional int64 unmodifiedFiles = 4; +} + +// +kubebuilder:object:root=true +// +kubebuilder:resource:path=functions,singular=function,shortName=fn,categories={stash,appscode} +// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp" +message Function { + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + + optional FunctionSpec spec = 2; +} + +message FunctionList { + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + + repeated Function items = 2; +} + +message FunctionRef { + // Name indicates the name of Function crd + optional string name = 1; + + // Inputs specifies the inputs of respective Function + // +optional + repeated Param params = 2; +} + +message FunctionSpec { + // Docker image name. + // More info: https://kubernetes.io/docs/concepts/containers/images + // This field is optional to allow higher level config management to default or override + // container images in workload controllers like Deployments and StatefulSets. + // +optional + optional string image = 1; + + // Entrypoint array. Not executed within a shell. + // The docker image's ENTRYPOINT is used if this is not provided. + // Variable references $(VAR_NAME) are expanded using the container's environment. If a variable + // cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax + // can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, + // regardless of whether the variable exists or not. + // Cannot be updated. + // More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + // +optional + repeated string command = 2; + + // Arguments to the entrypoint. + // The docker image's CMD is used if this is not provided. + // Variable references $(VAR_NAME) are expanded using the container's environment. If a variable + // cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax + // can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, + // regardless of whether the variable exists or not. + // Cannot be updated. + // More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + // +optional + repeated string args = 3; + + // Container's working directory. + // If not specified, the container runtime's default will be used, which + // might be configured in the container image. + // Cannot be updated. + // +optional + optional string workingDir = 4; + + // List of ports to expose from the container. Exposing a port here gives + // the system additional information about the network connections a + // container uses, but is primarily informational. Not specifying a port here + // DOES NOT prevent that port from being exposed. Any port which is + // listening on the default "0.0.0.0" address inside a container will be + // accessible from the network. + // Cannot be updated. + // +optional + // +patchMergeKey=containerPort + // +patchStrategy=merge + repeated k8s.io.api.core.v1.ContainerPort ports = 5; + + // Pod volumes to mount into the container's filesystem. + // Cannot be updated. + // +optional + // +patchMergeKey=mountPath + // +patchStrategy=merge + repeated k8s.io.api.core.v1.VolumeMount volumeMounts = 6; + + // volumeDevices is the list of block devices to be used by the container. + // This is an alpha feature and may change in the future. + // +patchMergeKey=devicePath + // +patchStrategy=merge + // +optional + repeated k8s.io.api.core.v1.VolumeDevice volumeDevices = 7; + + // RuntimeSettings allow to specify Resources, LivenessProbe, ReadinessProbe, Lifecycle, SecurityContext etc. + // +optional + optional kmodules.xyz.offshoot_api.api.v1.ContainerRuntimeSettings runtimeSettings = 8; + + // Name of PodSecurityPolicy(PSP) required by this function + // +optional + optional string podSecurityPolicyName = 9; +} + +// Hooks describes actions that Stash should take in response to backup sessions. For the PostBackup +// and PreBackup handlers, backup process blocks until the action is complete, +// unless the container process fails, in which case the handler is aborted. +message Hooks { + // PreBackup is called immediately before a backup session is initiated. + // +optional + optional kmodules.xyz.prober.api.v1.Handler preBackup = 1; + + // PostBackup is called immediately after a backup session is complete. + // +optional + optional kmodules.xyz.prober.api.v1.Handler postBackup = 2; +} + +message HostBackupStats { + // Hostname indicate name of the host that has been backed up + // +optional + optional string hostname = 1; + + // Phase indicates backup phase of this host + // +optional + optional string phase = 2; + + // Snapshots specifies the stats of individual snapshots that has been taken for this host in current backup session + // +optional + repeated SnapshotStats snapshots = 3; + + // Duration indicates total time taken to complete backup for this hosts + // +optional + optional string duration = 4; + + // Error indicates string value of error in case of backup failure + // +optional + optional string error = 5; +} + +message HostRestoreStats { + // Hostname indicate name of the host that has been restored + // +optional + optional string hostname = 1; + + // Phase indicates restore phase of this host + // +optional + optional string phase = 2; + + // Duration indicates total time taken to complete restore for this hosts + // +optional + optional string duration = 3; + + // Error indicates string value of error in case of restore failure + // +optional + optional string error = 4; +} + +// Param declares a value to use for the Param called Name. +message Param { + optional string name = 1; + + optional string value = 2; +} + +// +kubebuilder:object:root=true +// +kubebuilder:resource:path=restoresessions,singular=restoresession,shortName=restore,categories={stash,appscode,all} +// +kubebuilder:subresource:status +// +kubebuilder:printcolumn:name="Repository",type="string",JSONPath=".spec.repository.name" +// +kubebuilder:printcolumn:name="Phase",type="string",JSONPath=".status.phase" +// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp" +message RestoreSession { + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + + optional RestoreSessionSpec spec = 2; + + optional RestoreSessionStatus status = 3; +} + +message RestoreSessionList { + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + + repeated RestoreSession items = 2; +} + +message RestoreSessionSpec { + // Driver indicates the name of the agent to use to restore the target. + // Supported values are "Restic", "VolumeSnapshotter". + // Default value is "Restic". + // +optional + optional string driver = 1; + + // Repository refer to the Repository crd that hold backend information + // +optional + optional k8s.io.api.core.v1.LocalObjectReference repository = 2; + + // Task specify the Task crd that specifies the steps for recovery process + // +optional + optional TaskRef task = 3; + + // Target indicates the target where the recovered data will be stored + // +optional + optional RestoreTarget target = 4; + + // Rules specifies different restore options for different hosts + // +optional + repeated Rule rules = 5; + + // RuntimeSettings allow to specify Resources, NodeSelector, Affinity, Toleration, ReadinessProbe etc. + // +optional + optional kmodules.xyz.offshoot_api.api.v1.RuntimeSettings runtimeSettings = 6; + + // Temp directory configuration for functions/sidecar + // An `EmptyDir` will always be mounted at /tmp with this settings + // +optional + optional EmptyDirSettings tempDir = 7; + + // InterimVolumeTemplate specifies a template for a volume to hold targeted data temporarily + // before uploading to backend or inserting into target. It is only usable for job model. + // Don't specify it in sidecar model. + // +optional + optional k8s.io.api.core.v1.PersistentVolumeClaim interimVolumeTemplate = 8; +} + +message RestoreSessionStatus { + // Phase indicates the overall phase of the restore process for this RestoreSession. Phase will be "Succeeded" only if + // phase of all hosts are "Succeeded". If any of the host fail to complete restore, Phase will be "Failed". + // +optional + optional string phase = 1; + + // TotalHosts specifies total number of hosts that will be restored for this RestoreSession + // +optional + optional int32 totalHosts = 2; + + // SessionDuration specify total time taken to complete current restore session (sum of restore duration of all hosts) + // +optional + optional string sessionDuration = 3; + + // Stats shows statistics of individual hosts for this restore session + // +optional + repeated HostRestoreStats stats = 4; +} + +message RestoreTarget { + // Ref refers to the restore,target + optional TargetRef ref = 2; + + // VolumeMounts specifies the volumes to mount inside stash sidecar/init container + // Specify the volumes that contains the target directories + // +optional + repeated k8s.io.api.core.v1.VolumeMount volumeMounts = 3; + + // replicas is the desired number of replicas of the given Template. + // These are replicas in the sense that they are instantiations of the + // same Template, but individual replicas also have a consistent identity. + // If unspecified, defaults to 1. + // +optional + optional int32 replicas = 1; + + // volumeClaimTemplates is a list of claims that will be created while restore from VolumeSnapshot + // +optional + repeated k8s.io.api.core.v1.PersistentVolumeClaim volumeClaimTemplates = 4; +} + +message Rule { + // Subjects specifies the list of hosts that are subject to this rule + // +optional + repeated string targetHosts = 1; + + // SourceHost specifies the name of the host whose backed up state we are trying to restore + // By default, it will indicate the workload itself + // +optional + optional string sourceHost = 2; + + // Snapshots specifies the list of snapshots that will be restored for the host under this rule. + // Don't specify if you have specified paths field. + // +optional + repeated string snapshots = 3; + + // Paths specifies the paths to be restored for the hosts under this rule. + // Don't specify if you have specified snapshots field. + // +optional + repeated string paths = 4; +} + +message SnapshotStats { + // Name indicates the name of the backup snapshot created for this host + optional string name = 1; + + // Path indicates the directory that has been backed up in this snapshot + optional string path = 2; + + // TotalSize indicates the size of data to backup in target directory + optional string totalSize = 7; + + // Uploaded indicates size of data uploaded to backend for this snapshot + optional string uploaded = 4; + + // ProcessingTime indicates time taken to process the target data + optional string processingTime = 5; + + // FileStats shows statistics of files of this snapshot + optional FileStats fileStats = 6; +} + +message TargetRef { + optional string apiVersion = 1; + + optional string kind = 2; + + optional string name = 3; +} + +// +kubebuilder:object:root=true +// +kubebuilder:resource:path=tasks,singular=task,shortName=task,categories={stash,appscode} +// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp" +message Task { + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + + optional TaskSpec spec = 2; +} + +message TaskList { + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + + repeated Task items = 2; +} + +message TaskRef { + optional string name = 1; + + // +optional + repeated Param params = 2; +} + +message TaskSpec { + repeated FunctionRef steps = 1; + + // List of volumes that can be mounted by containers belonging to the pod created for this task. + // +optional + repeated k8s.io.api.core.v1.Volume volumes = 2; +} + diff --git a/apis/stash/v1beta1/openapi_generated.go b/apis/stash/v1beta1/openapi_generated.go index 0ff6de5e4..a7e450da8 100644 --- a/apis/stash/v1beta1/openapi_generated.go +++ b/apis/stash/v1beta1/openapi_generated.go @@ -351,6 +351,9 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "kmodules.xyz/offshoot-api/api/v1.ServicePort": schema_kmodulesxyz_offshoot_api_api_v1_ServicePort(ref), "kmodules.xyz/offshoot-api/api/v1.ServiceSpec": schema_kmodulesxyz_offshoot_api_api_v1_ServiceSpec(ref), "kmodules.xyz/offshoot-api/api/v1.ServiceTemplateSpec": schema_kmodulesxyz_offshoot_api_api_v1_ServiceTemplateSpec(ref), + "kmodules.xyz/prober/api/v1.HTTPPostAction": schema_kmodulesxyz_prober_api_v1_HTTPPostAction(ref), + "kmodules.xyz/prober/api/v1.Handler": schema_kmodulesxyz_prober_api_v1_Handler(ref), + "kmodules.xyz/prober/api/v1.ValueList": schema_kmodulesxyz_prober_api_v1_ValueList(ref), "stash.appscode.dev/stash/apis/stash/v1beta1.BackupBatch": schema_stash_apis_stash_v1beta1_BackupBatch(ref), "stash.appscode.dev/stash/apis/stash/v1beta1.BackupBatchList": schema_stash_apis_stash_v1beta1_BackupBatchList(ref), "stash.appscode.dev/stash/apis/stash/v1beta1.BackupBatchSpec": schema_stash_apis_stash_v1beta1_BackupBatchSpec(ref), @@ -14497,8 +14500,7 @@ func schema_custom_resources_apis_appcatalog_v1alpha1_AppBinding(ref common.Refe return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "AppBinding defines a generic user application.", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -14902,7 +14904,7 @@ func schema_kmodulesxyz_objectstore_api_api_v1_AzureSpec(ref common.ReferenceCal "maxConnections": { SchemaProps: spec.SchemaProps{ Type: []string{"integer"}, - Format: "int32", + Format: "int64", }, }, }, @@ -14932,7 +14934,7 @@ func schema_kmodulesxyz_objectstore_api_api_v1_B2Spec(ref common.ReferenceCallba "maxConnections": { SchemaProps: spec.SchemaProps{ Type: []string{"integer"}, - Format: "int32", + Format: "int64", }, }, }, @@ -15017,7 +15019,7 @@ func schema_kmodulesxyz_objectstore_api_api_v1_GCSSpec(ref common.ReferenceCallb "maxConnections": { SchemaProps: spec.SchemaProps{ Type: []string{"integer"}, - Format: "int32", + Format: "int64", }, }, }, @@ -15981,6 +15983,147 @@ func schema_kmodulesxyz_offshoot_api_api_v1_ServiceTemplateSpec(ref common.Refer } } +func schema_kmodulesxyz_prober_api_v1_HTTPPostAction(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "HTTPPostAction describes an action based on HTTP Post requests.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "path": { + SchemaProps: spec.SchemaProps{ + Description: "Path to access on the HTTP server.", + Type: []string{"string"}, + Format: "", + }, + }, + "port": { + SchemaProps: spec.SchemaProps{ + Description: "Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.", + Ref: ref("k8s.io/apimachinery/pkg/util/intstr.IntOrString"), + }, + }, + "host": { + SchemaProps: spec.SchemaProps{ + Description: "Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead.", + Type: []string{"string"}, + Format: "", + }, + }, + "scheme": { + SchemaProps: spec.SchemaProps{ + Description: "Scheme to use for connecting to the host. Defaults to HTTP.", + Type: []string{"string"}, + Format: "", + }, + }, + "httpHeaders": { + SchemaProps: spec.SchemaProps{ + Description: "Custom headers to set in the request. HTTP allows repeated headers.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("k8s.io/api/core/v1.HTTPHeader"), + }, + }, + }, + }, + }, + "body": { + SchemaProps: spec.SchemaProps{ + Description: "Body to set in the request.", + Type: []string{"string"}, + Format: "", + }, + }, + "form": { + SchemaProps: spec.SchemaProps{ + Description: "Form to set in the request body.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("kmodules.xyz/prober/api/v1.ValueList"), + }, + }, + }, + }, + }, + }, + Required: []string{"port"}, + }, + }, + Dependencies: []string{ + "k8s.io/api/core/v1.HTTPHeader", "k8s.io/apimachinery/pkg/util/intstr.IntOrString", "kmodules.xyz/prober/api/v1.ValueList"}, + } +} + +func schema_kmodulesxyz_prober_api_v1_Handler(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "Handler defines a specific action that should be taken", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "exec": { + SchemaProps: spec.SchemaProps{ + Description: "One and only one of the following should be specified. Exec specifies the action to take.", + Ref: ref("k8s.io/api/core/v1.ExecAction"), + }, + }, + "httpGet": { + SchemaProps: spec.SchemaProps{ + Description: "HTTPGet specifies the http Get request to perform.", + Ref: ref("k8s.io/api/core/v1.HTTPGetAction"), + }, + }, + "httpPost": { + SchemaProps: spec.SchemaProps{ + Description: "HTTPPost specifies the http Post request to perform.", + Ref: ref("kmodules.xyz/prober/api/v1.HTTPPostAction"), + }, + }, + "tcpSocket": { + SchemaProps: spec.SchemaProps{ + Description: "TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported", + Ref: ref("k8s.io/api/core/v1.TCPSocketAction"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "k8s.io/api/core/v1.ExecAction", "k8s.io/api/core/v1.HTTPGetAction", "k8s.io/api/core/v1.TCPSocketAction", "kmodules.xyz/prober/api/v1.HTTPPostAction"}, + } +} + +func schema_kmodulesxyz_prober_api_v1_ValueList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "values": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + }, + }, + }, + } +} + func schema_stash_apis_stash_v1beta1_BackupBatch(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -16896,28 +17039,28 @@ func schema_stash_apis_stash_v1beta1_FileStats(ref common.ReferenceCallback) com SchemaProps: spec.SchemaProps{ Description: "TotalFiles shows total number of files that has been backed up", Type: []string{"integer"}, - Format: "int32", + Format: "int64", }, }, "newFiles": { SchemaProps: spec.SchemaProps{ Description: "NewFiles shows total number of new files that has been created since last backup", Type: []string{"integer"}, - Format: "int32", + Format: "int64", }, }, "modifiedFiles": { SchemaProps: spec.SchemaProps{ Description: "ModifiedFiles shows total number of files that has been modified since last backup", Type: []string{"integer"}, - Format: "int32", + Format: "int64", }, }, "unmodifiedFiles": { SchemaProps: spec.SchemaProps{ Description: "UnmodifiedFiles shows total number of files that has not been changed since last backup", Type: []string{"integer"}, - Format: "int32", + Format: "int64", }, }, }, @@ -17179,20 +17322,20 @@ func schema_stash_apis_stash_v1beta1_Hooks(ref common.ReferenceCallback) common. "preBackup": { SchemaProps: spec.SchemaProps{ Description: "PreBackup is called immediately before a backup session is initiated.", - Ref: ref("k8s.io/api/core/v1.Handler"), + Ref: ref("kmodules.xyz/prober/api/v1.Handler"), }, }, "postBackup": { SchemaProps: spec.SchemaProps{ Description: "PostBackup is called immediately after a backup session is complete.", - Ref: ref("k8s.io/api/core/v1.Handler"), + Ref: ref("kmodules.xyz/prober/api/v1.Handler"), }, }, }, }, }, Dependencies: []string{ - "k8s.io/api/core/v1.Handler"}, + "kmodules.xyz/prober/api/v1.Handler"}, } } @@ -17657,9 +17800,9 @@ func schema_stash_apis_stash_v1beta1_SnapshotStats(ref common.ReferenceCallback) Format: "", }, }, - "size": { + "totalSize": { SchemaProps: spec.SchemaProps{ - Description: "Size indicates the size of data to backup in target directory", + Description: "TotalSize indicates the size of data to backup in target directory", Type: []string{"string"}, Format: "", }, diff --git a/apis/stash/v1beta1/restore_session_types.go b/apis/stash/v1beta1/restore_session_types.go index 8e6d69295..7454cc245 100644 --- a/apis/stash/v1beta1/restore_session_types.go +++ b/apis/stash/v1beta1/restore_session_types.go @@ -39,9 +39,9 @@ const ( // +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp" type RestoreSession struct { metav1.TypeMeta `json:",inline,omitempty"` - metav1.ObjectMeta `json:"metadata,omitempty"` - Spec RestoreSessionSpec `json:"spec,omitempty"` - Status RestoreSessionStatus `json:"status,omitempty"` + metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + Spec RestoreSessionSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` + Status RestoreSessionStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` } type RestoreSessionSpec struct { @@ -49,57 +49,57 @@ type RestoreSessionSpec struct { // Supported values are "Restic", "VolumeSnapshotter". // Default value is "Restic". // +optional - Driver Snapshotter `json:"driver,omitempty"` + Driver Snapshotter `json:"driver,omitempty" protobuf:"bytes,1,opt,name=driver,casttype=Snapshotter"` // Repository refer to the Repository crd that hold backend information // +optional - Repository core.LocalObjectReference `json:"repository,omitempty"` + Repository core.LocalObjectReference `json:"repository,omitempty" protobuf:"bytes,2,opt,name=repository"` // Task specify the Task crd that specifies the steps for recovery process // +optional - Task TaskRef `json:"task,omitempty"` + Task TaskRef `json:"task,omitempty" protobuf:"bytes,3,opt,name=task"` // Target indicates the target where the recovered data will be stored // +optional - Target *RestoreTarget `json:"target,omitempty"` + Target *RestoreTarget `json:"target,omitempty" protobuf:"bytes,4,opt,name=target"` // Rules specifies different restore options for different hosts // +optional - Rules []Rule `json:"rules,omitempty"` + Rules []Rule `json:"rules,omitempty" protobuf:"bytes,5,rep,name=rules"` // RuntimeSettings allow to specify Resources, NodeSelector, Affinity, Toleration, ReadinessProbe etc. // +optional - RuntimeSettings ofst.RuntimeSettings `json:"runtimeSettings,omitempty"` + RuntimeSettings ofst.RuntimeSettings `json:"runtimeSettings,omitempty" protobuf:"bytes,6,opt,name=runtimeSettings"` // Temp directory configuration for functions/sidecar // An `EmptyDir` will always be mounted at /tmp with this settings // +optional - TempDir EmptyDirSettings `json:"tempDir,omitempty"` + TempDir EmptyDirSettings `json:"tempDir,omitempty" protobuf:"bytes,7,opt,name=tempDir"` // InterimVolumeTemplate specifies a template for a volume to hold targeted data temporarily // before uploading to backend or inserting into target. It is only usable for job model. // Don't specify it in sidecar model. // +optional - InterimVolumeTemplate *core.PersistentVolumeClaim `json:"interimVolumeTemplate,omitempty"` + InterimVolumeTemplate *core.PersistentVolumeClaim `json:"interimVolumeTemplate,omitempty" protobuf:"bytes,8,opt,name=interimVolumeTemplate"` } type Rule struct { // Subjects specifies the list of hosts that are subject to this rule // +optional - TargetHosts []string `json:"targetHosts,omitempty"` + TargetHosts []string `json:"targetHosts,omitempty" protobuf:"bytes,1,rep,name=targetHosts"` // SourceHost specifies the name of the host whose backed up state we are trying to restore // By default, it will indicate the workload itself // +optional - SourceHost string `json:"sourceHost,omitempty"` + SourceHost string `json:"sourceHost,omitempty" protobuf:"bytes,2,opt,name=sourceHost"` // Snapshots specifies the list of snapshots that will be restored for the host under this rule. // Don't specify if you have specified paths field. // +optional - Snapshots []string `json:"snapshots,omitempty"` + Snapshots []string `json:"snapshots,omitempty" protobuf:"bytes,3,rep,name=snapshots"` // Paths specifies the paths to be restored for the hosts under this rule. // Don't specify if you have specified snapshots field. // +optional - Paths []string `json:"paths,omitempty"` + Paths []string `json:"paths,omitempty" protobuf:"bytes,4,rep,name=paths"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object type RestoreSessionList struct { metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []RestoreSession `json:"items,omitempty"` + metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + Items []RestoreSession `json:"items,omitempty" protobuf:"bytes,2,rep,name=items"` } type RestoreSessionPhase string @@ -124,29 +124,29 @@ type RestoreSessionStatus struct { // Phase indicates the overall phase of the restore process for this RestoreSession. Phase will be "Succeeded" only if // phase of all hosts are "Succeeded". If any of the host fail to complete restore, Phase will be "Failed". // +optional - Phase RestoreSessionPhase `json:"phase,omitempty"` + Phase RestoreSessionPhase `json:"phase,omitempty" protobuf:"bytes,1,opt,name=phase,casttype=RestoreSessionPhase"` // TotalHosts specifies total number of hosts that will be restored for this RestoreSession // +optional - TotalHosts *int32 `json:"totalHosts,omitempty"` + TotalHosts *int32 `json:"totalHosts,omitempty" protobuf:"varint,2,opt,name=totalHosts"` // SessionDuration specify total time taken to complete current restore session (sum of restore duration of all hosts) // +optional - SessionDuration string `json:"sessionDuration,omitempty"` + SessionDuration string `json:"sessionDuration,omitempty" protobuf:"bytes,3,opt,name=sessionDuration"` // Stats shows statistics of individual hosts for this restore session // +optional - Stats []HostRestoreStats `json:"stats,omitempty"` + Stats []HostRestoreStats `json:"stats,omitempty" protobuf:"bytes,4,rep,name=stats"` } type HostRestoreStats struct { // Hostname indicate name of the host that has been restored // +optional - Hostname string `json:"hostname,omitempty"` + Hostname string `json:"hostname,omitempty" protobuf:"bytes,1,opt,name=hostname"` // Phase indicates restore phase of this host // +optional - Phase HostRestorePhase `json:"phase,omitempty"` + Phase HostRestorePhase `json:"phase,omitempty" protobuf:"bytes,2,opt,name=phase,casttype=HostRestorePhase"` // Duration indicates total time taken to complete restore for this hosts // +optional - Duration string `json:"duration,omitempty"` + Duration string `json:"duration,omitempty" protobuf:"bytes,3,opt,name=duration"` // Error indicates string value of error in case of restore failure // +optional - Error string `json:"error,omitempty"` + Error string `json:"error,omitempty" protobuf:"bytes,4,opt,name=error"` } diff --git a/apis/stash/v1beta1/task_types.go b/apis/stash/v1beta1/task_types.go index d0cb05a67..289b99618 100644 --- a/apis/stash/v1beta1/task_types.go +++ b/apis/stash/v1beta1/task_types.go @@ -36,29 +36,29 @@ const ( // +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp" type Task struct { metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - Spec TaskSpec `json:"spec,omitempty"` + metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + Spec TaskSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` } type TaskSpec struct { - Steps []FunctionRef `json:"steps,omitempty"` + Steps []FunctionRef `json:"steps,omitempty" protobuf:"bytes,1,rep,name=steps"` // List of volumes that can be mounted by containers belonging to the pod created for this task. // +optional - Volumes []core.Volume `json:"volumes,omitempty"` + Volumes []core.Volume `json:"volumes,omitempty" protobuf:"bytes,2,rep,name=volumes"` } type FunctionRef struct { // Name indicates the name of Function crd - Name string `json:"name,omitempty"` + Name string `json:"name,omitempty" protobuf:"bytes,1,opt,name=name"` // Inputs specifies the inputs of respective Function // +optional - Params []Param `json:"params,omitempty"` + Params []Param `json:"params,omitempty" protobuf:"bytes,2,rep,name=params"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object type TaskList struct { metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []Task `json:"items,omitempty"` + metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + Items []Task `json:"items,omitempty" protobuf:"bytes,2,rep,name=items"` } diff --git a/apis/stash/v1beta1/types.go b/apis/stash/v1beta1/types.go index 56f1c5463..67eda1ae9 100644 --- a/apis/stash/v1beta1/types.go +++ b/apis/stash/v1beta1/types.go @@ -23,52 +23,52 @@ import ( type BackupInvokerRef struct { // APIGroup is the group for the resource being referenced // +optional - APIGroup string `json:"apiGroup,omitempty"` + APIGroup string `json:"apiGroup,omitempty" protobuf:"bytes,1,opt,name=apiGroup"` // Kind is the type of resource being referenced - Kind string `json:"kind"` + Kind string `json:"kind" protobuf:"bytes,2,opt,name=kind"` // Name is the name of resource being referenced - Name string `json:"name"` + Name string `json:"name" protobuf:"bytes,3,opt,name=name"` } // Param declares a value to use for the Param called Name. type Param struct { - Name string `json:"name"` - Value string `json:"value"` + Name string `json:"name" protobuf:"bytes,1,opt,name=name"` + Value string `json:"value" protobuf:"bytes,2,opt,name=value"` } type TaskRef struct { - Name string `json:"name"` + Name string `json:"name" protobuf:"bytes,1,opt,name=name"` // +optional - Params []Param `json:"params,omitempty"` + Params []Param `json:"params,omitempty" protobuf:"bytes,2,rep,name=params"` } type BackupTarget struct { // Ref refers to the backup target - Ref TargetRef `json:"ref,omitempty"` + Ref TargetRef `json:"ref,omitempty" protobuf:"bytes,1,opt,name=ref"` // Paths specify the file paths to backup // +optional - Paths []string `json:"paths,omitempty"` + Paths []string `json:"paths,omitempty" protobuf:"bytes,2,rep,name=paths"` // VolumeMounts specifies the volumes to mount inside stash sidecar/init container // Specify the volumes that contains the target directories // +optional - VolumeMounts []core.VolumeMount `json:"volumeMounts,omitempty"` + VolumeMounts []core.VolumeMount `json:"volumeMounts,omitempty" protobuf:"bytes,3,rep,name=volumeMounts"` //replicas are the desired number of replicas whose data should be backed up. // If unspecified, defaults to 1. // +optional - Replicas *int32 `json:"replicas,omitempty"` + Replicas *int32 `json:"replicas,omitempty" protobuf:"varint,4,opt,name=replicas"` // Name of the VolumeSnapshotClass used by the VolumeSnapshot. If not specified, a default snapshot class will be used if it is available. // Use this field only if the "driver" field is set to "volumeSnapshotter". // +optional - VolumeSnapshotClassName string `json:"snapshotClassName,omitempty"` + VolumeSnapshotClassName string `json:"snapshotClassName,omitempty" protobuf:"bytes,5,opt,name=snapshotClassName"` } type RestoreTarget struct { // Ref refers to the restore,target - Ref TargetRef `json:"ref,omitempty"` + Ref TargetRef `json:"ref,omitempty" protobuf:"bytes,2,opt,name=ref"` // VolumeMounts specifies the volumes to mount inside stash sidecar/init container // Specify the volumes that contains the target directories // +optional - VolumeMounts []core.VolumeMount `json:"volumeMounts,omitempty"` + VolumeMounts []core.VolumeMount `json:"volumeMounts,omitempty" protobuf:"bytes,3,rep,name=volumeMounts"` // replicas is the desired number of replicas of the given Template. // These are replicas in the sense that they are instantiations of the // same Template, but individual replicas also have a consistent identity. @@ -77,11 +77,11 @@ type RestoreTarget struct { Replicas *int32 `json:"replicas,omitempty" protobuf:"varint,1,opt,name=replicas"` // volumeClaimTemplates is a list of claims that will be created while restore from VolumeSnapshot // +optional - VolumeClaimTemplates []core.PersistentVolumeClaim `json:"volumeClaimTemplates,omitempty"` + VolumeClaimTemplates []core.PersistentVolumeClaim `json:"volumeClaimTemplates,omitempty" protobuf:"bytes,4,rep,name=volumeClaimTemplates"` } type TargetRef struct { - APIVersion string `json:"apiVersion,omitempty"` - Kind string `json:"kind,omitempty"` - Name string `json:"name,omitempty"` + APIVersion string `json:"apiVersion,omitempty" protobuf:"bytes,1,opt,name=apiVersion"` + Kind string `json:"kind,omitempty" protobuf:"bytes,2,opt,name=kind"` + Name string `json:"name,omitempty" protobuf:"bytes,3,opt,name=name"` } diff --git a/apis/stash/v1beta1/zz_generated.deepcopy.go b/apis/stash/v1beta1/zz_generated.deepcopy.go index 7231dbd0f..014a05067 100644 --- a/apis/stash/v1beta1/zz_generated.deepcopy.go +++ b/apis/stash/v1beta1/zz_generated.deepcopy.go @@ -24,6 +24,7 @@ import ( v1 "k8s.io/api/core/v1" runtime "k8s.io/apimachinery/pkg/runtime" apiv1 "kmodules.xyz/offshoot-api/api/v1" + proberapiv1 "kmodules.xyz/prober/api/v1" ) // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. @@ -573,22 +574,22 @@ func (in *FileStats) DeepCopyInto(out *FileStats) { *out = *in if in.TotalFiles != nil { in, out := &in.TotalFiles, &out.TotalFiles - *out = new(int) + *out = new(int64) **out = **in } if in.NewFiles != nil { in, out := &in.NewFiles, &out.NewFiles - *out = new(int) + *out = new(int64) **out = **in } if in.ModifiedFiles != nil { in, out := &in.ModifiedFiles, &out.ModifiedFiles - *out = new(int) + *out = new(int64) **out = **in } if in.UnmodifiedFiles != nil { in, out := &in.UnmodifiedFiles, &out.UnmodifiedFiles - *out = new(int) + *out = new(int64) **out = **in } return @@ -738,12 +739,12 @@ func (in *Hooks) DeepCopyInto(out *Hooks) { *out = *in if in.PreBackup != nil { in, out := &in.PreBackup, &out.PreBackup - *out = new(v1.Handler) + *out = new(proberapiv1.Handler) (*in).DeepCopyInto(*out) } if in.PostBackup != nil { in, out := &in.PostBackup, &out.PostBackup - *out = new(v1.Handler) + *out = new(proberapiv1.Handler) (*in).DeepCopyInto(*out) } return diff --git a/go.mod b/go.mod index f398a1029..daeb3c9d6 100644 --- a/go.mod +++ b/go.mod @@ -3,24 +3,22 @@ module stash.appscode.dev/stash go 1.12 require ( - github.com/PuerkitoBio/purell v1.1.1 // indirect github.com/appscode/go v0.0.0-20191025021232-311ac347b3ef github.com/armon/circbuf v0.0.0-20190214190532-5111143e8da2 github.com/cenkalti/backoff v2.1.1+incompatible github.com/codeskyblue/go-sh v0.0.0-20190412065543-76bd3d59ff27 github.com/evanphx/json-patch v4.5.0+incompatible github.com/go-openapi/spec v0.19.0 + github.com/gogo/protobuf v1.2.1 github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b github.com/gopherjs/gopherjs v0.0.0-20181103185306-d547d1d9531e // indirect github.com/json-iterator/go v1.1.6 - github.com/konsorten/go-windows-terminal-sequences v1.0.2 // indirect - github.com/kubernetes-csi/external-snapshotter v1.2.0 + github.com/kubernetes-csi/external-snapshotter v1.2.2 github.com/onsi/ginkgo v1.8.0 github.com/onsi/gomega v1.5.0 github.com/pkg/errors v0.8.1 github.com/prometheus/client_golang v0.9.3-0.20190127221311-3c4408c8b829 github.com/robfig/cron/v3 v3.0.0 - github.com/sirupsen/logrus v1.4.1 // indirect github.com/smartystreets/assertions v0.0.0-20190116191733-b6c0e53d7304 // indirect github.com/spf13/afero v1.2.2 github.com/spf13/cobra v0.0.5 @@ -36,18 +34,17 @@ require ( k8s.io/apiserver v0.0.0-20190516230822-f89599b3f645 k8s.io/cli-runtime v0.0.0-20190516231937-17bc0b7fcef5 // indirect k8s.io/client-go v11.0.0+incompatible - k8s.io/component-base v0.0.0-20190424053038-9fe063da3132 // indirect - k8s.io/klog v0.3.1 // indirect k8s.io/kube-aggregator v0.0.0-20190314000639-da8327669ac5 k8s.io/kube-openapi v0.0.0-20190502190224-411b2483e503 k8s.io/kubernetes v1.14.0 - kmodules.xyz/client-go v0.0.0-20191101042247-ee9566c9ac7f - kmodules.xyz/constants v0.0.0-20191009183447-fbd33067b8a6 - kmodules.xyz/custom-resources v0.0.0-20190927035424-65fe358bb045 - kmodules.xyz/objectstore-api v0.0.0-20191106100235-bea39a8e0874 - kmodules.xyz/offshoot-api v0.0.0-20190901210649-de049192326c + kmodules.xyz/client-go v0.0.0-20191107203555-78563b72c377 + kmodules.xyz/constants v0.0.0-20191024095500-cd4313df4aa6 + kmodules.xyz/custom-resources v0.0.0-20191111200327-6984cba51875 + kmodules.xyz/objectstore-api v0.0.0-20191111201754-2aba8370dfda + kmodules.xyz/offshoot-api v0.0.0-20191111195805-1105abf4a162 kmodules.xyz/openshift v0.0.0-20190808144841-c8f9a927f1d1 - kmodules.xyz/webhook-runtime v0.0.0-20190808145328-4186c470d56b + kmodules.xyz/prober v0.0.0-20191111210804-26d3576296bc + kmodules.xyz/webhook-runtime v0.0.0-20191106182834-bf518fbc7b19 ) replace ( diff --git a/go.sum b/go.sum index 4dc2d22af..b8c9bfd1e 100644 --- a/go.sum +++ b/go.sum @@ -37,7 +37,6 @@ github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRF github.com/apache/thrift v0.12.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ= github.com/appscode/docker-registry-client v0.0.0-20180426150142-1bb02bb202b0/go.mod h1:W9bsWfSbgJXUXzBZ+tSBV2g+zzT7ANPHQFsSXRHYKsA= github.com/appscode/go v0.0.0-20190808133642-1d4ef1f1c1e0/go.mod h1:iy07dV61Z7QQdCKJCIvUoDL21u6AIceRhZzyleh2ymc= -github.com/appscode/go v0.0.0-20191006073906-e3d193d493fc/go.mod h1:hUW7Fq0KY2/ntGnYAzemyUpIhLL6bXrTljN6SRY/+Lc= github.com/appscode/go v0.0.0-20191016085057-e186b6c94a3b/go.mod h1:hUW7Fq0KY2/ntGnYAzemyUpIhLL6bXrTljN6SRY/+Lc= github.com/appscode/go v0.0.0-20191025021232-311ac347b3ef h1:nTbtvdVAVwFgKANCR4KU36Jo1V9Xs/Z2GMEAlpOVG1Y= github.com/appscode/go v0.0.0-20191025021232-311ac347b3ef/go.mod h1:hUW7Fq0KY2/ntGnYAzemyUpIhLL6bXrTljN6SRY/+Lc= @@ -111,6 +110,7 @@ github.com/fatih/structs v1.1.0/go.mod h1:9NiDSp5zOcgEDl+j00MP/WkGVPOlPRLejGD8Ga github.com/flosch/pongo2 v0.0.0-20181225140029-79872a7b2769/go.mod h1:tbAXHifHQWNSpWbiJHpJTZH5fi3XHhDMdP//vuz9WS4= github.com/fsnotify/fsnotify v1.4.7 h1:IXs+QLmnXW2CcXuY+8Mzv/fWEsPGWxqefPtCP5CnV9I= github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= +github.com/gabriel-vasile/mimetype v0.3.22/go.mod h1:6CDPel/o/3/s4+bp6kIbsWATq8pmgOisOPG40CJa6To= github.com/ghodss/yaml v1.0.0 h1:wQHKEahhL6wmXdzwWG11gIVCkOv05bNOh+Rxn0yngAk= github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= github.com/go-check/check v1.0.0-20180628173108-788fd7840127/go.mod h1:9ES+weclKsC9YodN5RgxqK/VD9HM9JsCSh7rNhMZE98= @@ -218,9 +218,10 @@ github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORN github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= -github.com/kubernetes-csi/external-snapshotter v1.2.0 h1:3W+y0SOhQU+whefUN7M2o+/iIeUc2GdIRqXGhkNL8ng= -github.com/kubernetes-csi/external-snapshotter v1.2.0/go.mod h1:oYfxnsuh48V1UDYORl77YQxQbbdokNy7D73phuFpksY= -github.com/kubernetes-incubator/service-catalog v0.1.43/go.mod h1:D0CRODiXUJs6VCZDB15TmCkesbuizkac9fYEiTA78BA= +github.com/kubernetes-csi/external-snapshotter v1.2.2 h1:OPXoJydNqkWjhLwJ20dSqOhkmUYcpm+CCO0pYm+C8Q8= +github.com/kubernetes-csi/external-snapshotter v1.2.2/go.mod h1:oYfxnsuh48V1UDYORl77YQxQbbdokNy7D73phuFpksY= +github.com/kubernetes-incubator/service-catalog v0.2.2/go.mod h1:D0CRODiXUJs6VCZDB15TmCkesbuizkac9fYEiTA78BA= +github.com/kubernetes-sigs/service-catalog v0.2.2/go.mod h1:fmRsWJ38Od93DQ7cOXR9mMSSwmjyDS1EAomWxBlumuo= github.com/magiconair/properties v1.8.0/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= github.com/mailru/easyjson v0.0.0-20180823135443-60711f1a8329 h1:2gxZ0XQIU/5z3Z3bUBu+FXuk2pFbkN6tcwi/pjyaDic= github.com/mailru/easyjson v0.0.0-20180823135443-60711f1a8329/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= @@ -490,20 +491,26 @@ k8s.io/kubernetes v1.14.0/go.mod h1:ocZa8+6APFNC2tX1DZASIbocyYT5jHzqFVsY5aoB7Jk= k8s.io/utils v0.0.0-20190514214443-0a167cbac756 h1:2XBbostlqrw13zVYimyqcj/Om2P4B26oMzv+m2cj//k= k8s.io/utils v0.0.0-20190514214443-0a167cbac756/go.mod h1:8k8uAuAQ0rXslZKaEWd0c3oVhZz7sSzSiPnVZayjIX0= kmodules.xyz/client-go v0.0.0-20190808141354-bbb9e14f60ab/go.mod h1:1GI6h5D31op/2D+Hrn9DhXW6iUd5wsHBQRoLeY7fndM= -kmodules.xyz/client-go v0.0.0-20191101042247-ee9566c9ac7f h1:pqwupxEzrQZhCLMFJxgDmXo88RBBfI8OkwV/8PCrNsc= -kmodules.xyz/client-go v0.0.0-20191101042247-ee9566c9ac7f/go.mod h1:BChXGI3zd3lNSjUUfDcGmvufMdqrofLI/nrndcZ4LUo= -kmodules.xyz/constants v0.0.0-20191009183447-fbd33067b8a6 h1:JEerfubBfd98TetzNFn9xOgkVUGuQrbrR/iwkxjenIo= -kmodules.xyz/constants v0.0.0-20191009183447-fbd33067b8a6/go.mod h1:DbiFk1bJ1KEO94t1SlAn7tzc+Zz95rSXgyUKa2nzPmY= -kmodules.xyz/custom-resources v0.0.0-20190927035424-65fe358bb045 h1:DuvD64ouPDbv3egAUUCy5rBqs/vc218DeVVivcqfa+U= -kmodules.xyz/custom-resources v0.0.0-20190927035424-65fe358bb045/go.mod h1:vlKyFcCXC+2Kfn3Fa5Z7RnBWyp4t46FSeEutNqpqMm8= -kmodules.xyz/objectstore-api v0.0.0-20191106100235-bea39a8e0874 h1:vtdcykMB/hIjvPihIjtZj5tyyCy6dd2v2Gf/XFyedN0= -kmodules.xyz/objectstore-api v0.0.0-20191106100235-bea39a8e0874/go.mod h1:mT7lEi2IehAi64DomCPMPtlsWXOD5Fr3/mPqLIzU7T8= -kmodules.xyz/offshoot-api v0.0.0-20190901210649-de049192326c h1:y54FqF02HNs2d4eJh6w+7Q2sfVLORzvZd/ueGm/t7Fg= -kmodules.xyz/offshoot-api v0.0.0-20190901210649-de049192326c/go.mod h1:AzvHBjJvhFwUEiWrEKfdsgoqt5Ulio44Beo1vPoq7ww= +kmodules.xyz/client-go v0.0.0-20191106092240-221d8b290c75/go.mod h1:BChXGI3zd3lNSjUUfDcGmvufMdqrofLI/nrndcZ4LUo= +kmodules.xyz/client-go v0.0.0-20191106181350-088754189f4e/go.mod h1:VqLXdVFKtLJu0S8wrDVFGdPuNFUn8rVKETOjwfnRhRE= +kmodules.xyz/client-go v0.0.0-20191107203555-78563b72c377 h1:75XzDzsDSNKhFIV2nCw6TPzXafOohs9xUzfv2szruXY= +kmodules.xyz/client-go v0.0.0-20191107203555-78563b72c377/go.mod h1:VqLXdVFKtLJu0S8wrDVFGdPuNFUn8rVKETOjwfnRhRE= +kmodules.xyz/constants v0.0.0-20191024095500-cd4313df4aa6 h1:hFv3DzanQJ/bjgahqosmthGLkVgMB2KuQIsltOA02t0= +kmodules.xyz/constants v0.0.0-20191024095500-cd4313df4aa6/go.mod h1:DbiFk1bJ1KEO94t1SlAn7tzc+Zz95rSXgyUKa2nzPmY= +kmodules.xyz/custom-resources v0.0.0-20191106201002-d1689cc406ca h1:zpMWQMZ2u7uyMhygm6leQMAso1CY+iGfAFwPRml04Fk= +kmodules.xyz/custom-resources v0.0.0-20191106201002-d1689cc406ca/go.mod h1:lUmEgtsMN44dxxT0SiuvL1iIggX6RMciwmxqHQZbZ90= +kmodules.xyz/custom-resources v0.0.0-20191111200327-6984cba51875 h1:ij9YHOYg78WADth4cHOgBDjxGkJJw8l6d6Yg9xNbaVk= +kmodules.xyz/custom-resources v0.0.0-20191111200327-6984cba51875/go.mod h1:oGMxrQPjAAVx/l3Nx+mw1FR+lxBkQOWxvSZU1URwuYo= +kmodules.xyz/objectstore-api v0.0.0-20191111201754-2aba8370dfda h1:7LCuW+ZeMSu3k2DTtRcqlfIQMuXSnW6RohiRFpCITbA= +kmodules.xyz/objectstore-api v0.0.0-20191111201754-2aba8370dfda/go.mod h1:FXV0St8HWxZCShkTHDE3G6SvCvame2XH64tz5oHY8aU= +kmodules.xyz/offshoot-api v0.0.0-20191111195805-1105abf4a162 h1:RY/cT16ypeX4xlDZpCPKjjW+cDhWM70A7qr/p0HPnt4= +kmodules.xyz/offshoot-api v0.0.0-20191111195805-1105abf4a162/go.mod h1:hR/2bD0gZo9XtLoRmQIg32HcuMT6VpQHbViujVyEhKE= kmodules.xyz/openshift v0.0.0-20190808144841-c8f9a927f1d1 h1:NmVj5+kPpUgoxRans2XZt5SXm9cVy8E3b4yHaeVzqak= kmodules.xyz/openshift v0.0.0-20190808144841-c8f9a927f1d1/go.mod h1:+E8HHcxBx6ja4oKOXZ6DCoQ+NjujODTgFOfgOe+ejXw= -kmodules.xyz/webhook-runtime v0.0.0-20190808145328-4186c470d56b h1:yd/uzBgLgsir3X4kGoznJY7CdrkgfznsNKvD4p2xUaQ= -kmodules.xyz/webhook-runtime v0.0.0-20190808145328-4186c470d56b/go.mod h1:X8J6YJvk3NqufXEDqcl2oFuL8T6+mV+AN30/miV4iJU= +kmodules.xyz/prober v0.0.0-20191111210804-26d3576296bc h1:5+ejQSK0v7ugUXsu95JqtGXVhgvl52nhL12r20N7HJ0= +kmodules.xyz/prober v0.0.0-20191111210804-26d3576296bc/go.mod h1:Pf7xuHB5vrwVJTRBJ0Vhb06ntxjkkczIL/V5QbM4JJQ= +kmodules.xyz/webhook-runtime v0.0.0-20191106182834-bf518fbc7b19 h1:mLG/BkKpXMDF16DzTuSeobWvV5U8zUPmWgW7H9jdlnA= +kmodules.xyz/webhook-runtime v0.0.0-20191106182834-bf518fbc7b19/go.mod h1:syhMPnC4+NnSY88O/7DEEutTffzK8kuUbmF393nVTwM= sigs.k8s.io/kustomize v2.0.3+incompatible h1:JUufWFNlI44MdtnjUqVnvh29rR37PQFzPbLXqhyOyX0= sigs.k8s.io/kustomize v2.0.3+incompatible/go.mod h1:MkjgH3RdOWrievjo6c9T245dYlB5QeXV4WCbnt/PEpU= sigs.k8s.io/structured-merge-diff v0.0.0-20190302045857-e85c7b244fd2 h1:9r5DY45ef9LtcA6BnkhW8MPV7OKAfbf2AUwUhq3LeRk= diff --git a/hack/import_hacks.go b/hack/import_hacks.go new file mode 100644 index 000000000..3ed7ebc42 --- /dev/null +++ b/hack/import_hacks.go @@ -0,0 +1,25 @@ +/* +Copyright The Stash Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package hack + +import ( + _ "k8s.io/apimachinery/pkg/api/resource" + _ "k8s.io/apimachinery/pkg/apis/meta/v1" + _ "k8s.io/apimachinery/pkg/runtime" + _ "k8s.io/apimachinery/pkg/runtime/schema" + _ "k8s.io/apimachinery/pkg/util/intstr" +) diff --git a/pkg/cli/restic.go b/pkg/cli/restic.go index 19f3f7ee0..edba7fa34 100644 --- a/pkg/cli/restic.go +++ b/pkg/cli/restic.go @@ -129,27 +129,27 @@ func (w *ResticWrapper) Forget(resource *api.Restic, fg api.FileGroup) error { args := []interface{}{"forget"} if retentionPolicy.KeepLast > 0 { args = append(args, string(api.KeepLast)) - args = append(args, strconv.Itoa(retentionPolicy.KeepLast)) + args = append(args, strconv.FormatInt(retentionPolicy.KeepLast, 10)) } if retentionPolicy.KeepHourly > 0 { args = append(args, string(api.KeepHourly)) - args = append(args, strconv.Itoa(retentionPolicy.KeepHourly)) + args = append(args, strconv.FormatInt(retentionPolicy.KeepHourly, 10)) } if retentionPolicy.KeepDaily > 0 { args = append(args, string(api.KeepDaily)) - args = append(args, strconv.Itoa(retentionPolicy.KeepDaily)) + args = append(args, strconv.FormatInt(retentionPolicy.KeepDaily, 10)) } if retentionPolicy.KeepWeekly > 0 { args = append(args, string(api.KeepWeekly)) - args = append(args, strconv.Itoa(retentionPolicy.KeepWeekly)) + args = append(args, strconv.FormatInt(retentionPolicy.KeepWeekly, 10)) } if retentionPolicy.KeepMonthly > 0 { args = append(args, string(api.KeepMonthly)) - args = append(args, strconv.Itoa(retentionPolicy.KeepMonthly)) + args = append(args, strconv.FormatInt(retentionPolicy.KeepMonthly, 10)) } if retentionPolicy.KeepYearly > 0 { args = append(args, string(api.KeepYearly)) - args = append(args, strconv.Itoa(retentionPolicy.KeepYearly)) + args = append(args, strconv.FormatInt(retentionPolicy.KeepYearly, 10)) } for _, tag := range retentionPolicy.KeepTags { args = append(args, string(api.KeepTag)) diff --git a/pkg/cmds/backup_pvc.go b/pkg/cmds/backup_pvc.go index 0221fd6b0..bc567bdff 100644 --- a/pkg/cmds/backup_pvc.go +++ b/pkg/cmds/backup_pvc.go @@ -74,17 +74,17 @@ func NewCmdBackupPVC() *cobra.Command { cmd.Flags().StringVar(&setupOpt.SecretDir, "secret-dir", setupOpt.SecretDir, "Directory where storage secret has been mounted") cmd.Flags().StringVar(&setupOpt.ScratchDir, "scratch-dir", setupOpt.ScratchDir, "Temporary directory") cmd.Flags().BoolVar(&setupOpt.EnableCache, "enable-cache", setupOpt.EnableCache, "Specify whether to enable caching for restic") - cmd.Flags().IntVar(&setupOpt.MaxConnections, "max-connections", setupOpt.MaxConnections, "Specify maximum concurrent connections for GCS, Azure and B2 backend") + cmd.Flags().Int64Var(&setupOpt.MaxConnections, "max-connections", setupOpt.MaxConnections, "Specify maximum concurrent connections for GCS, Azure and B2 backend") cmd.Flags().StringVar(&backupOpt.Host, "hostname", backupOpt.Host, "Name of the host machine") cmd.Flags().StringSliceVar(&backupOpt.BackupPaths, "backup-paths", backupOpt.BackupPaths, "List of paths to backup") - cmd.Flags().IntVar(&backupOpt.RetentionPolicy.KeepLast, "retention-keep-last", backupOpt.RetentionPolicy.KeepLast, "Specify value for retention strategy") - cmd.Flags().IntVar(&backupOpt.RetentionPolicy.KeepHourly, "retention-keep-hourly", backupOpt.RetentionPolicy.KeepHourly, "Specify value for retention strategy") - cmd.Flags().IntVar(&backupOpt.RetentionPolicy.KeepDaily, "retention-keep-daily", backupOpt.RetentionPolicy.KeepDaily, "Specify value for retention strategy") - cmd.Flags().IntVar(&backupOpt.RetentionPolicy.KeepWeekly, "retention-keep-weekly", backupOpt.RetentionPolicy.KeepWeekly, "Specify value for retention strategy") - cmd.Flags().IntVar(&backupOpt.RetentionPolicy.KeepMonthly, "retention-keep-monthly", backupOpt.RetentionPolicy.KeepMonthly, "Specify value for retention strategy") - cmd.Flags().IntVar(&backupOpt.RetentionPolicy.KeepYearly, "retention-keep-yearly", backupOpt.RetentionPolicy.KeepYearly, "Specify value for retention strategy") + cmd.Flags().Int64Var(&backupOpt.RetentionPolicy.KeepLast, "retention-keep-last", backupOpt.RetentionPolicy.KeepLast, "Specify value for retention strategy") + cmd.Flags().Int64Var(&backupOpt.RetentionPolicy.KeepHourly, "retention-keep-hourly", backupOpt.RetentionPolicy.KeepHourly, "Specify value for retention strategy") + cmd.Flags().Int64Var(&backupOpt.RetentionPolicy.KeepDaily, "retention-keep-daily", backupOpt.RetentionPolicy.KeepDaily, "Specify value for retention strategy") + cmd.Flags().Int64Var(&backupOpt.RetentionPolicy.KeepWeekly, "retention-keep-weekly", backupOpt.RetentionPolicy.KeepWeekly, "Specify value for retention strategy") + cmd.Flags().Int64Var(&backupOpt.RetentionPolicy.KeepMonthly, "retention-keep-monthly", backupOpt.RetentionPolicy.KeepMonthly, "Specify value for retention strategy") + cmd.Flags().Int64Var(&backupOpt.RetentionPolicy.KeepYearly, "retention-keep-yearly", backupOpt.RetentionPolicy.KeepYearly, "Specify value for retention strategy") cmd.Flags().StringSliceVar(&backupOpt.RetentionPolicy.KeepTags, "retention-keep-tags", backupOpt.RetentionPolicy.KeepTags, "Specify value for retention strategy") cmd.Flags().BoolVar(&backupOpt.RetentionPolicy.Prune, "retention-prune", backupOpt.RetentionPolicy.Prune, "Specify whether to prune old snapshot data") cmd.Flags().BoolVar(&backupOpt.RetentionPolicy.DryRun, "retention-dry-run", backupOpt.RetentionPolicy.DryRun, "Specify whether to test retention policy without deleting actual data") diff --git a/pkg/cmds/restore.go b/pkg/cmds/restore.go index a26ee458a..019926716 100644 --- a/pkg/cmds/restore.go +++ b/pkg/cmds/restore.go @@ -78,7 +78,7 @@ func NewCmdRestore() *cobra.Command { cmd.Flags().StringVar(&opt.RestoreSessionName, "restoresession", opt.RestoreSessionName, "Name of the respective RestoreSession object.") cmd.Flags().DurationVar(&opt.BackoffMaxWait, "backoff-max-wait", 0, "Maximum wait for initial response from kube apiserver; 0 disables the timeout") cmd.Flags().BoolVar(&opt.SetupOpt.EnableCache, "enable-cache", opt.SetupOpt.EnableCache, "Specify whether to enable caching for restic") - cmd.Flags().IntVar(&opt.SetupOpt.MaxConnections, "max-connections", opt.SetupOpt.MaxConnections, "Specify maximum concurrent connections for GCS, Azure and B2 backend") + cmd.Flags().Int64Var(&opt.SetupOpt.MaxConnections, "max-connections", opt.SetupOpt.MaxConnections, "Specify maximum concurrent connections for GCS, Azure and B2 backend") cmd.Flags().StringVar(&opt.SetupOpt.SecretDir, "secret-dir", opt.SetupOpt.SecretDir, "Directory where storage secret has been mounted") cmd.Flags().BoolVar(&opt.Metrics.Enabled, "metrics-enabled", opt.Metrics.Enabled, "Specify whether to export Prometheus metrics") diff --git a/pkg/cmds/restore_pvc.go b/pkg/cmds/restore_pvc.go index edde842d0..ae54323f0 100644 --- a/pkg/cmds/restore_pvc.go +++ b/pkg/cmds/restore_pvc.go @@ -73,7 +73,7 @@ func NewCmdRestorePVC() *cobra.Command { cmd.Flags().StringVar(&setupOpt.SecretDir, "secret-dir", setupOpt.SecretDir, "Directory where storage secret has been mounted") cmd.Flags().StringVar(&setupOpt.ScratchDir, "scratch-dir", setupOpt.ScratchDir, "Temporary directory") cmd.Flags().BoolVar(&setupOpt.EnableCache, "enable-cache", setupOpt.EnableCache, "Specify whether to enable caching for restic") - cmd.Flags().IntVar(&setupOpt.MaxConnections, "max-connections", setupOpt.MaxConnections, "Specify maximum concurrent connections for GCS, Azure and B2 backend") + cmd.Flags().Int64Var(&setupOpt.MaxConnections, "max-connections", setupOpt.MaxConnections, "Specify maximum concurrent connections for GCS, Azure and B2 backend") cmd.Flags().StringVar(&restoreOpt.Host, "hostname", restoreOpt.Host, "Name of the host machine") cmd.Flags().StringSliceVar(&restoreOpt.RestorePaths, "restore-paths", restoreOpt.RestorePaths, "List of paths to restore") diff --git a/pkg/cmds/run_backup.go b/pkg/cmds/run_backup.go index aeccfef73..fba6e62a0 100644 --- a/pkg/cmds/run_backup.go +++ b/pkg/cmds/run_backup.go @@ -84,7 +84,7 @@ func NewCmdRunBackup() *cobra.Command { cmd.Flags().StringVar(&opt.BackupConfigurationName, "backupconfiguration", opt.BackupConfigurationName, "Name of the respective BackupConfiguration object") cmd.Flags().StringVar(&opt.SetupOpt.SecretDir, "secret-dir", opt.SetupOpt.SecretDir, "Directory where storage secret has been mounted") cmd.Flags().BoolVar(&opt.SetupOpt.EnableCache, "enable-cache", opt.SetupOpt.EnableCache, "Specify whether to enable caching for restic") - cmd.Flags().IntVar(&opt.SetupOpt.MaxConnections, "max-connections", opt.SetupOpt.MaxConnections, "Specify maximum concurrent connections for GCS, Azure and B2 backend") + cmd.Flags().Int64Var(&opt.SetupOpt.MaxConnections, "max-connections", opt.SetupOpt.MaxConnections, "Specify maximum concurrent connections for GCS, Azure and B2 backend") cmd.Flags().BoolVar(&opt.Metrics.Enabled, "metrics-enabled", opt.Metrics.Enabled, "Specify whether to export Prometheus metrics") cmd.Flags().StringVar(&opt.Metrics.PushgatewayURL, "pushgateway-url", opt.Metrics.PushgatewayURL, "URL of Prometheus pushgateway used to cache backup metrics") diff --git a/pkg/controller/inputs.go b/pkg/controller/inputs.go index 244acb259..fa5f02290 100644 --- a/pkg/controller/inputs.go +++ b/pkg/controller/inputs.go @@ -121,7 +121,7 @@ func (c *StashController) inputsForRepository(repository *apiAlpha.Repository) ( if repository.Spec.Backend.Rest != nil && repository.Spec.Backend.Rest.URL != "" { inputs[apis.RepositoryEndpoint] = repository.Spec.Backend.Rest.URL } - inputs[apis.MaxConnections] = strconv.Itoa(repository.Spec.Backend.MaxConnections()) + inputs[apis.MaxConnections] = strconv.FormatInt(repository.Spec.Backend.MaxConnections(), 10) return } @@ -171,22 +171,22 @@ func (c *StashController) inputsForRetentionPolicy(retentionPolicy apiAlpha.Rete inputs := make(map[string]string) if retentionPolicy.KeepLast > 0 { - inputs[apis.RetentionKeepLast] = strconv.Itoa(retentionPolicy.KeepLast) + inputs[apis.RetentionKeepLast] = strconv.FormatInt(retentionPolicy.KeepLast, 10) } if retentionPolicy.KeepHourly > 0 { - inputs[apis.RetentionKeepHourly] = strconv.Itoa(retentionPolicy.KeepHourly) + inputs[apis.RetentionKeepHourly] = strconv.FormatInt(retentionPolicy.KeepHourly, 10) } if retentionPolicy.KeepDaily > 0 { - inputs[apis.RetentionKeepDaily] = strconv.Itoa(retentionPolicy.KeepDaily) + inputs[apis.RetentionKeepDaily] = strconv.FormatInt(retentionPolicy.KeepDaily, 10) } if retentionPolicy.KeepWeekly > 0 { - inputs[apis.RetentionKeepWeekly] = strconv.Itoa(retentionPolicy.KeepWeekly) + inputs[apis.RetentionKeepWeekly] = strconv.FormatInt(retentionPolicy.KeepWeekly, 10) } if retentionPolicy.KeepMonthly > 0 { - inputs[apis.RetentionKeepMonthly] = strconv.Itoa(retentionPolicy.KeepMonthly) + inputs[apis.RetentionKeepMonthly] = strconv.FormatInt(retentionPolicy.KeepMonthly, 10) } if retentionPolicy.KeepYearly > 0 { - inputs[apis.RetentionKeepYearly] = strconv.Itoa(retentionPolicy.KeepYearly) + inputs[apis.RetentionKeepYearly] = strconv.FormatInt(retentionPolicy.KeepYearly, 10) } if len(retentionPolicy.KeepTags) > 0 { inputs[apis.RetentionKeepTags] = strings.Join(retentionPolicy.KeepTags, ",") diff --git a/pkg/restic/commands.go b/pkg/restic/commands.go index 16149dd54..893a132a3 100644 --- a/pkg/restic/commands.go +++ b/pkg/restic/commands.go @@ -154,27 +154,27 @@ func (w *ResticWrapper) cleanup(retentionPolicy v1alpha1.RetentionPolicy, host s if retentionPolicy.KeepLast > 0 { args = append(args, string(v1alpha1.KeepLast)) - args = append(args, strconv.Itoa(retentionPolicy.KeepLast)) + args = append(args, strconv.FormatInt(retentionPolicy.KeepLast, 10)) } if retentionPolicy.KeepHourly > 0 { args = append(args, string(v1alpha1.KeepHourly)) - args = append(args, strconv.Itoa(retentionPolicy.KeepHourly)) + args = append(args, strconv.FormatInt(retentionPolicy.KeepHourly, 10)) } if retentionPolicy.KeepDaily > 0 { args = append(args, string(v1alpha1.KeepDaily)) - args = append(args, strconv.Itoa(retentionPolicy.KeepDaily)) + args = append(args, strconv.FormatInt(retentionPolicy.KeepDaily, 10)) } if retentionPolicy.KeepWeekly > 0 { args = append(args, string(v1alpha1.KeepWeekly)) - args = append(args, strconv.Itoa(retentionPolicy.KeepWeekly)) + args = append(args, strconv.FormatInt(retentionPolicy.KeepWeekly, 10)) } if retentionPolicy.KeepMonthly > 0 { args = append(args, string(v1alpha1.KeepMonthly)) - args = append(args, strconv.Itoa(retentionPolicy.KeepMonthly)) + args = append(args, strconv.FormatInt(retentionPolicy.KeepMonthly, 10)) } if retentionPolicy.KeepYearly > 0 { args = append(args, string(v1alpha1.KeepYearly)) - args = append(args, strconv.Itoa(retentionPolicy.KeepYearly)) + args = append(args, strconv.FormatInt(retentionPolicy.KeepYearly, 10)) } for _, tag := range retentionPolicy.KeepTags { args = append(args, string(v1alpha1.KeepTag)) diff --git a/pkg/restic/config.go b/pkg/restic/config.go index d0e53bced..a8eb0c1d9 100644 --- a/pkg/restic/config.go +++ b/pkg/restic/config.go @@ -81,7 +81,7 @@ type SetupOptions struct { CacertFile string ScratchDir string EnableCache bool - MaxConnections int + MaxConnections int64 Nice *ofst.NiceSettings IONice *ofst.IONiceSettings } diff --git a/pkg/restic/metrics.go b/pkg/restic/metrics.go index 2c794ef4d..677dc9c36 100644 --- a/pkg/restic/metrics.go +++ b/pkg/restic/metrics.go @@ -573,14 +573,14 @@ func (backupMetrics *BackupMetrics) setValues(hostOutput api_v1beta1.HostBackupS totalDataSize float64 totalUploadSize float64 totalProcessingTime uint64 - totalFiles int - totalNewFiles int - totalModifiedFiles int - totalUnmodifiedFiles int + totalFiles int64 + totalNewFiles int64 + totalModifiedFiles int64 + totalUnmodifiedFiles int64 ) for _, v := range hostOutput.Snapshots { - dataSizeBytes, err := convertSizeToBytes(v.Size) + dataSizeBytes, err := convertSizeToBytes(v.TotalSize) if err != nil { return err } diff --git a/pkg/restic/output.go b/pkg/restic/output.go index f265cd18e..86d569089 100644 --- a/pkg/restic/output.go +++ b/pkg/restic/output.go @@ -41,9 +41,9 @@ type RepositoryStats struct { // Size show size of repository after last backup Size string `json:"size,omitempty"` // SnapshotCount shows number of snapshots stored in the repository - SnapshotCount int `json:"snapshotCount,omitempty"` + SnapshotCount int64 `json:"snapshotCount,omitempty"` // SnapshotsRemovedOnLastCleanup shows number of old snapshots cleaned up according to retention policy on last backup session - SnapshotsRemovedOnLastCleanup int `json:"snapshotsRemovedOnLastCleanup,omitempty"` + SnapshotsRemovedOnLastCleanup int64 `json:"snapshotsRemovedOnLastCleanup,omitempty"` } type RestoreOutput struct { @@ -143,7 +143,7 @@ func extractBackupInfo(output []byte, path string) (api_v1beta1.SnapshotStats, e snapshotStats.FileStats.TotalFiles = jsonOutput.TotalFilesProcessed snapshotStats.Uploaded = formatBytes(jsonOutput.DataAdded) - snapshotStats.Size = formatBytes(jsonOutput.TotalBytesProcessed) + snapshotStats.TotalSize = formatBytes(jsonOutput.TotalBytesProcessed) snapshotStats.ProcessingTime = formatSeconds(uint64(jsonOutput.TotalDuration)) snapshotStats.Name = jsonOutput.SnapshotID @@ -167,18 +167,18 @@ func extractCheckInfo(out []byte) bool { // ExtractCleanupInfo extract information from output of "restic forget" command and // save valuable information into backupOutput -func extractCleanupInfo(out []byte) (int, int, error) { +func extractCleanupInfo(out []byte) (int64, int64, error) { var fg []ForgetGroup err := json.Unmarshal(out, &fg) if err != nil { return 0, 0, err } - keep := 0 - removed := 0 + var keep int64 + var removed int64 for i := 0; i < len(fg); i++ { - keep += len(fg[i].Keep) - removed += len(fg[i].Remove) + keep += int64(len(fg[i].Keep)) + removed += int64(len(fg[i].Remove)) } return keep, removed, nil @@ -197,11 +197,11 @@ func extractStatsInfo(out []byte) (string, error) { type BackupSummary struct { MessageType string `json:"message_type"` // "summary" - FilesNew *int `json:"files_new"` - FilesChanged *int `json:"files_changed"` - FilesUnmodified *int `json:"files_unmodified"` + FilesNew *int64 `json:"files_new"` + FilesChanged *int64 `json:"files_changed"` + FilesUnmodified *int64 `json:"files_unmodified"` DataAdded uint64 `json:"data_added"` - TotalFilesProcessed *int `json:"total_files_processed"` + TotalFilesProcessed *int64 `json:"total_files_processed"` TotalBytesProcessed uint64 `json:"total_bytes_processed"` TotalDuration float64 `json:"total_duration"` // in seconds SnapshotID string `json:"snapshot_id"` diff --git a/pkg/restic/restic_test.go b/pkg/restic/restic_test.go index b125b8599..e8ea42dee 100644 --- a/pkg/restic/restic_test.go +++ b/pkg/restic/restic_test.go @@ -308,7 +308,7 @@ func TestRunParallelBackup(t *testing.T) { // verify repository stats assert.Equal(t, *backupOutput.RepositoryStats.Integrity, true) - assert.Equal(t, backupOutput.RepositoryStats.SnapshotCount, 3) + assert.Equal(t, backupOutput.RepositoryStats.SnapshotCount, int64(3)) // verify each host status for i := range backupOutput.HostBackupStats { diff --git a/pkg/status/status.go b/pkg/status/status.go index 74713cf86..e256517e4 100644 --- a/pkg/status/status.go +++ b/pkg/status/status.go @@ -123,7 +123,7 @@ func (o UpdateStatusOptions) UpdatePostBackupStatus(backupOutput *restic.BackupO repository, func(in *api.RepositoryStatus) *api.RepositoryStatus { in.Integrity = backupOutput.RepositoryStats.Integrity - in.Size = backupOutput.RepositoryStats.Size + in.TotalSize = backupOutput.RepositoryStats.Size in.SnapshotCount = backupOutput.RepositoryStats.SnapshotCount in.SnapshotsRemovedOnLastCleanup = backupOutput.RepositoryStats.SnapshotsRemovedOnLastCleanup diff --git a/pkg/volumesnapshot/volumesnapshot_cleanup_policy.go b/pkg/volumesnapshot/volumesnapshot_cleanup_policy.go index 9c1bb40a1..ccc88f258 100644 --- a/pkg/volumesnapshot/volumesnapshot_cleanup_policy.go +++ b/pkg/volumesnapshot/volumesnapshot_cleanup_policy.go @@ -106,7 +106,7 @@ func applyRetentionPolicy(policy v1alpha1.RetentionPolicy, volumeSnapshots Volum } var buckets = [6]struct { - Count int + Count int64 LastAdded func(d time.Time, nr int) int Last int }{ diff --git a/third_party/protobuf/google/protobuf/compiler/plugin.proto b/third_party/protobuf/google/protobuf/compiler/plugin.proto new file mode 100644 index 000000000..5116167e0 --- /dev/null +++ b/third_party/protobuf/google/protobuf/compiler/plugin.proto @@ -0,0 +1,150 @@ +// Protocol Buffers - Google's data interchange format +// Copyright 2008 Google Inc. All rights reserved. +// https://developers.google.com/protocol-buffers/ +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +// Author: kenton@google.com (Kenton Varda) +// +// WARNING: The plugin interface is currently EXPERIMENTAL and is subject to +// change. +// +// protoc (aka the Protocol Compiler) can be extended via plugins. A plugin is +// just a program that reads a CodeGeneratorRequest from stdin and writes a +// CodeGeneratorResponse to stdout. +// +// Plugins written using C++ can use google/protobuf/compiler/plugin.h instead +// of dealing with the raw protocol defined here. +// +// A plugin executable needs only to be placed somewhere in the path. The +// plugin should be named "protoc-gen-$NAME", and will then be used when the +// flag "--${NAME}_out" is passed to protoc. + +syntax = "proto2"; +package google.protobuf.compiler; +option java_package = "com.google.protobuf.compiler"; +option java_outer_classname = "PluginProtos"; + +option go_package = "plugin_go"; + +import "google/protobuf/descriptor.proto"; + +// An encoded CodeGeneratorRequest is written to the plugin's stdin. +message CodeGeneratorRequest { + // The .proto files that were explicitly listed on the command-line. The + // code generator should generate code only for these files. Each file's + // descriptor will be included in proto_file, below. + repeated string file_to_generate = 1; + + // The generator parameter passed on the command-line. + optional string parameter = 2; + + // FileDescriptorProtos for all files in files_to_generate and everything + // they import. The files will appear in topological order, so each file + // appears before any file that imports it. + // + // protoc guarantees that all proto_files will be written after + // the fields above, even though this is not technically guaranteed by the + // protobuf wire format. This theoretically could allow a plugin to stream + // in the FileDescriptorProtos and handle them one by one rather than read + // the entire set into memory at once. However, as of this writing, this + // is not similarly optimized on protoc's end -- it will store all fields in + // memory at once before sending them to the plugin. + repeated FileDescriptorProto proto_file = 15; +} + +// The plugin writes an encoded CodeGeneratorResponse to stdout. +message CodeGeneratorResponse { + // Error message. If non-empty, code generation failed. The plugin process + // should exit with status code zero even if it reports an error in this way. + // + // This should be used to indicate errors in .proto files which prevent the + // code generator from generating correct code. Errors which indicate a + // problem in protoc itself -- such as the input CodeGeneratorRequest being + // unparseable -- should be reported by writing a message to stderr and + // exiting with a non-zero status code. + optional string error = 1; + + // Represents a single generated file. + message File { + // The file name, relative to the output directory. The name must not + // contain "." or ".." components and must be relative, not be absolute (so, + // the file cannot lie outside the output directory). "/" must be used as + // the path separator, not "\". + // + // If the name is omitted, the content will be appended to the previous + // file. This allows the generator to break large files into small chunks, + // and allows the generated text to be streamed back to protoc so that large + // files need not reside completely in memory at one time. Note that as of + // this writing protoc does not optimize for this -- it will read the entire + // CodeGeneratorResponse before writing files to disk. + optional string name = 1; + + // If non-empty, indicates that the named file should already exist, and the + // content here is to be inserted into that file at a defined insertion + // point. This feature allows a code generator to extend the output + // produced by another code generator. The original generator may provide + // insertion points by placing special annotations in the file that look + // like: + // @@protoc_insertion_point(NAME) + // The annotation can have arbitrary text before and after it on the line, + // which allows it to be placed in a comment. NAME should be replaced with + // an identifier naming the point -- this is what other generators will use + // as the insertion_point. Code inserted at this point will be placed + // immediately above the line containing the insertion point (thus multiple + // insertions to the same point will come out in the order they were added). + // The double-@ is intended to make it unlikely that the generated code + // could contain things that look like insertion points by accident. + // + // For example, the C++ code generator places the following line in the + // .pb.h files that it generates: + // // @@protoc_insertion_point(namespace_scope) + // This line appears within the scope of the file's package namespace, but + // outside of any particular class. Another plugin can then specify the + // insertion_point "namespace_scope" to generate additional classes or + // other declarations that should be placed in this scope. + // + // Note that if the line containing the insertion point begins with + // whitespace, the same whitespace will be added to every line of the + // inserted text. This is useful for languages like Python, where + // indentation matters. In these languages, the insertion point comment + // should be indented the same amount as any inserted code will need to be + // in order to work correctly in that context. + // + // The code generator that generates the initial file and the one which + // inserts into it must both run as part of a single invocation of protoc. + // Code generators are executed in the order in which they appear on the + // command line. + // + // If |insertion_point| is present, |name| must also be present. + optional string insertion_point = 2; + + // The file contents. + optional string content = 15; + } + repeated File file = 15; +} \ No newline at end of file diff --git a/third_party/protobuf/google/protobuf/descriptor.proto b/third_party/protobuf/google/protobuf/descriptor.proto new file mode 100644 index 000000000..14594a8c6 --- /dev/null +++ b/third_party/protobuf/google/protobuf/descriptor.proto @@ -0,0 +1,779 @@ +// Protocol Buffers - Google's data interchange format +// Copyright 2008 Google Inc. All rights reserved. +// https://developers.google.com/protocol-buffers/ +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +// Author: kenton@google.com (Kenton Varda) +// Based on original Protocol Buffers design by +// Sanjay Ghemawat, Jeff Dean, and others. +// +// The messages in this file describe the definitions found in .proto files. +// A valid .proto file can be translated directly to a FileDescriptorProto +// without any other information (e.g. without reading its imports). + + +syntax = "proto2"; + +package google.protobuf; +option go_package = "descriptor"; +option java_package = "com.google.protobuf"; +option java_outer_classname = "DescriptorProtos"; +option csharp_namespace = "Google.Protobuf.Reflection"; +option objc_class_prefix = "GPB"; + +// descriptor.proto must be optimized for speed because reflection-based +// algorithms don't work during bootstrapping. +option optimize_for = SPEED; + +// The protocol compiler can output a FileDescriptorSet containing the .proto +// files it parses. +message FileDescriptorSet { + repeated FileDescriptorProto file = 1; +} + +// Describes a complete .proto file. +message FileDescriptorProto { + optional string name = 1; // file name, relative to root of source tree + optional string package = 2; // e.g. "foo", "foo.bar", etc. + + // Names of files imported by this file. + repeated string dependency = 3; + // Indexes of the public imported files in the dependency list above. + repeated int32 public_dependency = 10; + // Indexes of the weak imported files in the dependency list. + // For Google-internal migration only. Do not use. + repeated int32 weak_dependency = 11; + + // All top-level definitions in this file. + repeated DescriptorProto message_type = 4; + repeated EnumDescriptorProto enum_type = 5; + repeated ServiceDescriptorProto service = 6; + repeated FieldDescriptorProto extension = 7; + + optional FileOptions options = 8; + + // This field contains optional information about the original source code. + // You may safely remove this entire field without harming runtime + // functionality of the descriptors -- the information is needed only by + // development tools. + optional SourceCodeInfo source_code_info = 9; + + // The syntax of the proto file. + // The supported values are "proto2" and "proto3". + optional string syntax = 12; +} + +// Describes a message type. +message DescriptorProto { + optional string name = 1; + + repeated FieldDescriptorProto field = 2; + repeated FieldDescriptorProto extension = 6; + + repeated DescriptorProto nested_type = 3; + repeated EnumDescriptorProto enum_type = 4; + + message ExtensionRange { + optional int32 start = 1; + optional int32 end = 2; + } + repeated ExtensionRange extension_range = 5; + + repeated OneofDescriptorProto oneof_decl = 8; + + optional MessageOptions options = 7; + + // Range of reserved tag numbers. Reserved tag numbers may not be used by + // fields or extension ranges in the same message. Reserved ranges may + // not overlap. + message ReservedRange { + optional int32 start = 1; // Inclusive. + optional int32 end = 2; // Exclusive. + } + repeated ReservedRange reserved_range = 9; + // Reserved field names, which may not be used by fields in the same message. + // A given name may only be reserved once. + repeated string reserved_name = 10; +} + +// Describes a field within a message. +message FieldDescriptorProto { + enum Type { + // 0 is reserved for errors. + // Order is weird for historical reasons. + TYPE_DOUBLE = 1; + TYPE_FLOAT = 2; + // Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if + // negative values are likely. + TYPE_INT64 = 3; + TYPE_UINT64 = 4; + // Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if + // negative values are likely. + TYPE_INT32 = 5; + TYPE_FIXED64 = 6; + TYPE_FIXED32 = 7; + TYPE_BOOL = 8; + TYPE_STRING = 9; + TYPE_GROUP = 10; // Tag-delimited aggregate. + TYPE_MESSAGE = 11; // Length-delimited aggregate. + + // New in version 2. + TYPE_BYTES = 12; + TYPE_UINT32 = 13; + TYPE_ENUM = 14; + TYPE_SFIXED32 = 15; + TYPE_SFIXED64 = 16; + TYPE_SINT32 = 17; // Uses ZigZag encoding. + TYPE_SINT64 = 18; // Uses ZigZag encoding. + }; + + enum Label { + // 0 is reserved for errors + LABEL_OPTIONAL = 1; + LABEL_REQUIRED = 2; + LABEL_REPEATED = 3; + // TODO(sanjay): Should we add LABEL_MAP? + }; + + optional string name = 1; + optional int32 number = 3; + optional Label label = 4; + + // If type_name is set, this need not be set. If both this and type_name + // are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP. + optional Type type = 5; + + // For message and enum types, this is the name of the type. If the name + // starts with a '.', it is fully-qualified. Otherwise, C++-like scoping + // rules are used to find the type (i.e. first the nested types within this + // message are searched, then within the parent, on up to the root + // namespace). + optional string type_name = 6; + + // For extensions, this is the name of the type being extended. It is + // resolved in the same manner as type_name. + optional string extendee = 2; + + // For numeric types, contains the original text representation of the value. + // For booleans, "true" or "false". + // For strings, contains the default text contents (not escaped in any way). + // For bytes, contains the C escaped value. All bytes >= 128 are escaped. + // TODO(kenton): Base-64 encode? + optional string default_value = 7; + + // If set, gives the index of a oneof in the containing type's oneof_decl + // list. This field is a member of that oneof. + optional int32 oneof_index = 9; + + // JSON name of this field. The value is set by protocol compiler. If the + // user has set a "json_name" option on this field, that option's value + // will be used. Otherwise, it's deduced from the field's name by converting + // it to camelCase. + optional string json_name = 10; + + optional FieldOptions options = 8; +} + +// Describes a oneof. +message OneofDescriptorProto { + optional string name = 1; +} + +// Describes an enum type. +message EnumDescriptorProto { + optional string name = 1; + + repeated EnumValueDescriptorProto value = 2; + + optional EnumOptions options = 3; +} + +// Describes a value within an enum. +message EnumValueDescriptorProto { + optional string name = 1; + optional int32 number = 2; + + optional EnumValueOptions options = 3; +} + +// Describes a service. +message ServiceDescriptorProto { + optional string name = 1; + repeated MethodDescriptorProto method = 2; + + optional ServiceOptions options = 3; +} + +// Describes a method of a service. +message MethodDescriptorProto { + optional string name = 1; + + // Input and output type names. These are resolved in the same way as + // FieldDescriptorProto.type_name, but must refer to a message type. + optional string input_type = 2; + optional string output_type = 3; + + optional MethodOptions options = 4; + + // Identifies if client streams multiple client messages + optional bool client_streaming = 5 [default=false]; + // Identifies if server streams multiple server messages + optional bool server_streaming = 6 [default=false]; +} + + +// =================================================================== +// Options + +// Each of the definitions above may have "options" attached. These are +// just annotations which may cause code to be generated slightly differently +// or may contain hints for code that manipulates protocol messages. +// +// Clients may define custom options as extensions of the *Options messages. +// These extensions may not yet be known at parsing time, so the parser cannot +// store the values in them. Instead it stores them in a field in the *Options +// message called uninterpreted_option. This field must have the same name +// across all *Options messages. We then use this field to populate the +// extensions when we build a descriptor, at which point all protos have been +// parsed and so all extensions are known. +// +// Extension numbers for custom options may be chosen as follows: +// * For options which will only be used within a single application or +// organization, or for experimental options, use field numbers 50000 +// through 99999. It is up to you to ensure that you do not use the +// same number for multiple options. +// * For options which will be published and used publicly by multiple +// independent entities, e-mail protobuf-global-extension-registry@google.com +// to reserve extension numbers. Simply provide your project name (e.g. +// Objective-C plugin) and your project website (if available) -- there's no +// need to explain how you intend to use them. Usually you only need one +// extension number. You can declare multiple options with only one extension +// number by putting them in a sub-message. See the Custom Options section of +// the docs for examples: +// https://developers.google.com/protocol-buffers/docs/proto#options +// If this turns out to be popular, a web service will be set up +// to automatically assign option numbers. + + +message FileOptions { + + // Sets the Java package where classes generated from this .proto will be + // placed. By default, the proto package is used, but this is often + // inappropriate because proto packages do not normally start with backwards + // domain names. + optional string java_package = 1; + + + // If set, all the classes from the .proto file are wrapped in a single + // outer class with the given name. This applies to both Proto1 + // (equivalent to the old "--one_java_file" option) and Proto2 (where + // a .proto always translates to a single class, but you may want to + // explicitly choose the class name). + optional string java_outer_classname = 8; + + // If set true, then the Java code generator will generate a separate .java + // file for each top-level message, enum, and service defined in the .proto + // file. Thus, these types will *not* be nested inside the outer class + // named by java_outer_classname. However, the outer class will still be + // generated to contain the file's getDescriptor() method as well as any + // top-level extensions defined in the file. + optional bool java_multiple_files = 10 [default=false]; + + // If set true, then the Java code generator will generate equals() and + // hashCode() methods for all messages defined in the .proto file. + // This increases generated code size, potentially substantially for large + // protos, which may harm a memory-constrained application. + // - In the full runtime this is a speed optimization, as the + // AbstractMessage base class includes reflection-based implementations of + // these methods. + // - In the lite runtime, setting this option changes the semantics of + // equals() and hashCode() to more closely match those of the full runtime; + // the generated methods compute their results based on field values rather + // than object identity. (Implementations should not assume that hashcodes + // will be consistent across runtimes or versions of the protocol compiler.) + optional bool java_generate_equals_and_hash = 20 [default=false]; + + // If set true, then the Java2 code generator will generate code that + // throws an exception whenever an attempt is made to assign a non-UTF-8 + // byte sequence to a string field. + // Message reflection will do the same. + // However, an extension field still accepts non-UTF-8 byte sequences. + // This option has no effect on when used with the lite runtime. + optional bool java_string_check_utf8 = 27 [default=false]; + + + // Generated classes can be optimized for speed or code size. + enum OptimizeMode { + SPEED = 1; // Generate complete code for parsing, serialization, + // etc. + CODE_SIZE = 2; // Use ReflectionOps to implement these methods. + LITE_RUNTIME = 3; // Generate code using MessageLite and the lite runtime. + } + optional OptimizeMode optimize_for = 9 [default=SPEED]; + + // Sets the Go package where structs generated from this .proto will be + // placed. If omitted, the Go package will be derived from the following: + // - The basename of the package import path, if provided. + // - Otherwise, the package statement in the .proto file, if present. + // - Otherwise, the basename of the .proto file, without extension. + optional string go_package = 11; + + + + // Should generic services be generated in each language? "Generic" services + // are not specific to any particular RPC system. They are generated by the + // main code generators in each language (without additional plugins). + // Generic services were the only kind of service generation supported by + // early versions of google.protobuf. + // + // Generic services are now considered deprecated in favor of using plugins + // that generate code specific to your particular RPC system. Therefore, + // these default to false. Old code which depends on generic services should + // explicitly set them to true. + optional bool cc_generic_services = 16 [default=false]; + optional bool java_generic_services = 17 [default=false]; + optional bool py_generic_services = 18 [default=false]; + + // Is this file deprecated? + // Depending on the target platform, this can emit Deprecated annotations + // for everything in the file, or it will be completely ignored; in the very + // least, this is a formalization for deprecating files. + optional bool deprecated = 23 [default=false]; + + // Enables the use of arenas for the proto messages in this file. This applies + // only to generated classes for C++. + optional bool cc_enable_arenas = 31 [default=false]; + + + // Sets the objective c class prefix which is prepended to all objective c + // generated classes from this .proto. There is no default. + optional string objc_class_prefix = 36; + + // Namespace for generated classes; defaults to the package. + optional string csharp_namespace = 37; + + // Whether the nano proto compiler should generate in the deprecated non-nano + // suffixed package. + optional bool javanano_use_deprecated_package = 38; + + // The parser stores options it doesn't recognize here. See above. + repeated UninterpretedOption uninterpreted_option = 999; + + // Clients can define custom options in extensions of this message. See above. + extensions 1000 to max; +} + +message MessageOptions { + // Set true to use the old proto1 MessageSet wire format for extensions. + // This is provided for backwards-compatibility with the MessageSet wire + // format. You should not use this for any other reason: It's less + // efficient, has fewer features, and is more complicated. + // + // The message must be defined exactly as follows: + // message Foo { + // option message_set_wire_format = true; + // extensions 4 to max; + // } + // Note that the message cannot have any defined fields; MessageSets only + // have extensions. + // + // All extensions of your type must be singular messages; e.g. they cannot + // be int32s, enums, or repeated messages. + // + // Because this is an option, the above two restrictions are not enforced by + // the protocol compiler. + optional bool message_set_wire_format = 1 [default=false]; + + // Disables the generation of the standard "descriptor()" accessor, which can + // conflict with a field of the same name. This is meant to make migration + // from proto1 easier; new code should avoid fields named "descriptor". + optional bool no_standard_descriptor_accessor = 2 [default=false]; + + // Is this message deprecated? + // Depending on the target platform, this can emit Deprecated annotations + // for the message, or it will be completely ignored; in the very least, + // this is a formalization for deprecating messages. + optional bool deprecated = 3 [default=false]; + + // Whether the message is an automatically generated map entry type for the + // maps field. + // + // For maps fields: + // map map_field = 1; + // The parsed descriptor looks like: + // message MapFieldEntry { + // option map_entry = true; + // optional KeyType key = 1; + // optional ValueType value = 2; + // } + // repeated MapFieldEntry map_field = 1; + // + // Implementations may choose not to generate the map_entry=true message, but + // use a native map in the target language to hold the keys and values. + // The reflection APIs in such implementions still need to work as + // if the field is a repeated message field. + // + // NOTE: Do not set the option in .proto files. Always use the maps syntax + // instead. The option should only be implicitly set by the proto compiler + // parser. + optional bool map_entry = 7; + + // The parser stores options it doesn't recognize here. See above. + repeated UninterpretedOption uninterpreted_option = 999; + + // Clients can define custom options in extensions of this message. See above. + extensions 1000 to max; +} + +message FieldOptions { + // The ctype option instructs the C++ code generator to use a different + // representation of the field than it normally would. See the specific + // options below. This option is not yet implemented in the open source + // release -- sorry, we'll try to include it in a future version! + optional CType ctype = 1 [default = STRING]; + enum CType { + // Default mode. + STRING = 0; + + CORD = 1; + + STRING_PIECE = 2; + } + // The packed option can be enabled for repeated primitive fields to enable + // a more efficient representation on the wire. Rather than repeatedly + // writing the tag and type for each element, the entire array is encoded as + // a single length-delimited blob. In proto3, only explicit setting it to + // false will avoid using packed encoding. + optional bool packed = 2; + + + // The jstype option determines the JavaScript type used for values of the + // field. The option is permitted only for 64 bit integral and fixed types + // (int64, uint64, sint64, fixed64, sfixed64). By default these types are + // represented as JavaScript strings. This avoids loss of precision that can + // happen when a large value is converted to a floating point JavaScript + // numbers. Specifying JS_NUMBER for the jstype causes the generated + // JavaScript code to use the JavaScript "number" type instead of strings. + // This option is an enum to permit additional types to be added, + // e.g. goog.math.Integer. + optional JSType jstype = 6 [default = JS_NORMAL]; + enum JSType { + // Use the default type. + JS_NORMAL = 0; + + // Use JavaScript strings. + JS_STRING = 1; + + // Use JavaScript numbers. + JS_NUMBER = 2; + } + + // Should this field be parsed lazily? Lazy applies only to message-type + // fields. It means that when the outer message is initially parsed, the + // inner message's contents will not be parsed but instead stored in encoded + // form. The inner message will actually be parsed when it is first accessed. + // + // This is only a hint. Implementations are free to choose whether to use + // eager or lazy parsing regardless of the value of this option. However, + // setting this option true suggests that the protocol author believes that + // using lazy parsing on this field is worth the additional bookkeeping + // overhead typically needed to implement it. + // + // This option does not affect the public interface of any generated code; + // all method signatures remain the same. Furthermore, thread-safety of the + // interface is not affected by this option; const methods remain safe to + // call from multiple threads concurrently, while non-const methods continue + // to require exclusive access. + // + // + // Note that implementations may choose not to check required fields within + // a lazy sub-message. That is, calling IsInitialized() on the outher message + // may return true even if the inner message has missing required fields. + // This is necessary because otherwise the inner message would have to be + // parsed in order to perform the check, defeating the purpose of lazy + // parsing. An implementation which chooses not to check required fields + // must be consistent about it. That is, for any particular sub-message, the + // implementation must either *always* check its required fields, or *never* + // check its required fields, regardless of whether or not the message has + // been parsed. + optional bool lazy = 5 [default=false]; + + // Is this field deprecated? + // Depending on the target platform, this can emit Deprecated annotations + // for accessors, or it will be completely ignored; in the very least, this + // is a formalization for deprecating fields. + optional bool deprecated = 3 [default=false]; + + // For Google-internal migration only. Do not use. + optional bool weak = 10 [default=false]; + + + // The parser stores options it doesn't recognize here. See above. + repeated UninterpretedOption uninterpreted_option = 999; + + // Clients can define custom options in extensions of this message. See above. + extensions 1000 to max; +} + +message EnumOptions { + + // Set this option to true to allow mapping different tag names to the same + // value. + optional bool allow_alias = 2; + + // Is this enum deprecated? + // Depending on the target platform, this can emit Deprecated annotations + // for the enum, or it will be completely ignored; in the very least, this + // is a formalization for deprecating enums. + optional bool deprecated = 3 [default=false]; + + // The parser stores options it doesn't recognize here. See above. + repeated UninterpretedOption uninterpreted_option = 999; + + // Clients can define custom options in extensions of this message. See above. + extensions 1000 to max; +} + +message EnumValueOptions { + // Is this enum value deprecated? + // Depending on the target platform, this can emit Deprecated annotations + // for the enum value, or it will be completely ignored; in the very least, + // this is a formalization for deprecating enum values. + optional bool deprecated = 1 [default=false]; + + // The parser stores options it doesn't recognize here. See above. + repeated UninterpretedOption uninterpreted_option = 999; + + // Clients can define custom options in extensions of this message. See above. + extensions 1000 to max; +} + +message ServiceOptions { + + // Note: Field numbers 1 through 32 are reserved for Google's internal RPC + // framework. We apologize for hoarding these numbers to ourselves, but + // we were already using them long before we decided to release Protocol + // Buffers. + + // Is this service deprecated? + // Depending on the target platform, this can emit Deprecated annotations + // for the service, or it will be completely ignored; in the very least, + // this is a formalization for deprecating services. + optional bool deprecated = 33 [default=false]; + + // The parser stores options it doesn't recognize here. See above. + repeated UninterpretedOption uninterpreted_option = 999; + + // Clients can define custom options in extensions of this message. See above. + extensions 1000 to max; +} + +message MethodOptions { + + // Note: Field numbers 1 through 32 are reserved for Google's internal RPC + // framework. We apologize for hoarding these numbers to ourselves, but + // we were already using them long before we decided to release Protocol + // Buffers. + + // Is this method deprecated? + // Depending on the target platform, this can emit Deprecated annotations + // for the method, or it will be completely ignored; in the very least, + // this is a formalization for deprecating methods. + optional bool deprecated = 33 [default=false]; + + // The parser stores options it doesn't recognize here. See above. + repeated UninterpretedOption uninterpreted_option = 999; + + // Clients can define custom options in extensions of this message. See above. + extensions 1000 to max; +} + + +// A message representing a option the parser does not recognize. This only +// appears in options protos created by the compiler::Parser class. +// DescriptorPool resolves these when building Descriptor objects. Therefore, +// options protos in descriptor objects (e.g. returned by Descriptor::options(), +// or produced by Descriptor::CopyTo()) will never have UninterpretedOptions +// in them. +message UninterpretedOption { + // The name of the uninterpreted option. Each string represents a segment in + // a dot-separated name. is_extension is true iff a segment represents an + // extension (denoted with parentheses in options specs in .proto files). + // E.g.,{ ["foo", false], ["bar.baz", true], ["qux", false] } represents + // "foo.(bar.baz).qux". + message NamePart { + required string name_part = 1; + required bool is_extension = 2; + } + repeated NamePart name = 2; + + // The value of the uninterpreted option, in whatever type the tokenizer + // identified it as during parsing. Exactly one of these should be set. + optional string identifier_value = 3; + optional uint64 positive_int_value = 4; + optional int64 negative_int_value = 5; + optional double double_value = 6; + optional bytes string_value = 7; + optional string aggregate_value = 8; +} + +// =================================================================== +// Optional source code info + +// Encapsulates information about the original source file from which a +// FileDescriptorProto was generated. +message SourceCodeInfo { + // A Location identifies a piece of source code in a .proto file which + // corresponds to a particular definition. This information is intended + // to be useful to IDEs, code indexers, documentation generators, and similar + // tools. + // + // For example, say we have a file like: + // message Foo { + // optional string foo = 1; + // } + // Let's look at just the field definition: + // optional string foo = 1; + // ^ ^^ ^^ ^ ^^^ + // a bc de f ghi + // We have the following locations: + // span path represents + // [a,i) [ 4, 0, 2, 0 ] The whole field definition. + // [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). + // [c,d) [ 4, 0, 2, 0, 5 ] The type (string). + // [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). + // [g,h) [ 4, 0, 2, 0, 3 ] The number (1). + // + // Notes: + // - A location may refer to a repeated field itself (i.e. not to any + // particular index within it). This is used whenever a set of elements are + // logically enclosed in a single code segment. For example, an entire + // extend block (possibly containing multiple extension definitions) will + // have an outer location whose path refers to the "extensions" repeated + // field without an index. + // - Multiple locations may have the same path. This happens when a single + // logical declaration is spread out across multiple places. The most + // obvious example is the "extend" block again -- there may be multiple + // extend blocks in the same scope, each of which will have the same path. + // - A location's span is not always a subset of its parent's span. For + // example, the "extendee" of an extension declaration appears at the + // beginning of the "extend" block and is shared by all extensions within + // the block. + // - Just because a location's span is a subset of some other location's span + // does not mean that it is a descendent. For example, a "group" defines + // both a type and a field in a single declaration. Thus, the locations + // corresponding to the type and field and their components will overlap. + // - Code which tries to interpret locations should probably be designed to + // ignore those that it doesn't understand, as more types of locations could + // be recorded in the future. + repeated Location location = 1; + message Location { + // Identifies which part of the FileDescriptorProto was defined at this + // location. + // + // Each element is a field number or an index. They form a path from + // the root FileDescriptorProto to the place where the definition. For + // example, this path: + // [ 4, 3, 2, 7, 1 ] + // refers to: + // file.message_type(3) // 4, 3 + // .field(7) // 2, 7 + // .name() // 1 + // This is because FileDescriptorProto.message_type has field number 4: + // repeated DescriptorProto message_type = 4; + // and DescriptorProto.field has field number 2: + // repeated FieldDescriptorProto field = 2; + // and FieldDescriptorProto.name has field number 1: + // optional string name = 1; + // + // Thus, the above path gives the location of a field name. If we removed + // the last element: + // [ 4, 3, 2, 7 ] + // this path refers to the whole field declaration (from the beginning + // of the label to the terminating semicolon). + repeated int32 path = 1 [packed=true]; + + // Always has exactly three or four elements: start line, start column, + // end line (optional, otherwise assumed same as start line), end column. + // These are packed into a single field for efficiency. Note that line + // and column numbers are zero-based -- typically you will want to add + // 1 to each before displaying to a user. + repeated int32 span = 2 [packed=true]; + + // If this SourceCodeInfo represents a complete declaration, these are any + // comments appearing before and after the declaration which appear to be + // attached to the declaration. + // + // A series of line comments appearing on consecutive lines, with no other + // tokens appearing on those lines, will be treated as a single comment. + // + // leading_detached_comments will keep paragraphs of comments that appear + // before (but not connected to) the current element. Each paragraph, + // separated by empty lines, will be one comment element in the repeated + // field. + // + // Only the comment content is provided; comment markers (e.g. //) are + // stripped out. For block comments, leading whitespace and an asterisk + // will be stripped from the beginning of each line other than the first. + // Newlines are included in the output. + // + // Examples: + // + // optional int32 foo = 1; // Comment attached to foo. + // // Comment attached to bar. + // optional int32 bar = 2; + // + // optional string baz = 3; + // // Comment attached to baz. + // // Another line attached to baz. + // + // // Comment attached to qux. + // // + // // Another line attached to qux. + // optional double qux = 4; + // + // // Detached comment for corge. This is not leading or trailing comments + // // to qux or corge because there are blank lines separating it from + // // both. + // + // // Detached comment for corge paragraph 2. + // + // optional string corge = 5; + // /* Block comment attached + // * to corge. Leading asterisks + // * will be removed. */ + // /* Block comment attached to + // * grault. */ + // optional int32 grault = 6; + // + // // ignored detached comments. + optional string leading_comments = 3; + optional string trailing_comments = 4; + repeated string leading_detached_comments = 6; + } +} \ No newline at end of file diff --git a/vendor/kmodules.xyz/client-go/Makefile b/vendor/kmodules.xyz/client-go/Makefile index 30c0e6e1d..5553a6b45 100644 --- a/vendor/kmodules.xyz/client-go/Makefile +++ b/vendor/kmodules.xyz/client-go/Makefile @@ -72,6 +72,8 @@ BUILD_DIRS := bin/$(OS)_$(ARCH) \ $(HOME)/.kube \ $(HOME)/.minikube +DOCKER_REPO_ROOT := /go/src/$(GO_PKG)/$(REPO) + # If you want to build all binaries, see the 'all-build' rule. # If you want to build all containers, see the 'all-container' rule. # If you want to build AND push all containers, see the 'all-push' rule. @@ -212,6 +214,32 @@ verify-gen: gen fmt echo "file formatting is out of date, run make gen fmt"; exit 1; \ fi +.PHONY: add-license +add-license: + @echo "Adding license header" + @docker run --rm \ + -u $$(id -u):$$(id -g) \ + -v /tmp:/.cache \ + -v $$(pwd):$(DOCKER_REPO_ROOT) \ + -w $(DOCKER_REPO_ROOT) \ + --env HTTP_PROXY=$(HTTP_PROXY) \ + --env HTTPS_PROXY=$(HTTPS_PROXY) \ + $(BUILD_IMAGE) \ + ltag -t "./hack/license" --excludes "vendor contrib" -v + +.PHONY: check-license +check-license: + @echo "Checking files for license header" + @docker run --rm \ + -u $$(id -u):$$(id -g) \ + -v /tmp:/.cache \ + -v $$(pwd):$(DOCKER_REPO_ROOT) \ + -w $(DOCKER_REPO_ROOT) \ + --env HTTP_PROXY=$(HTTP_PROXY) \ + --env HTTPS_PROXY=$(HTTPS_PROXY) \ + $(BUILD_IMAGE) \ + ltag -t "./hack/license" --excludes "vendor contrib" --check -v + .PHONY: ci ci: verify lint build test #cover diff --git a/vendor/kmodules.xyz/client-go/admissionregistration/v1beta1/kubernetes.go b/vendor/kmodules.xyz/client-go/admissionregistration/v1beta1/kubernetes.go index 972b4eb8c..68718bd7f 100644 --- a/vendor/kmodules.xyz/client-go/admissionregistration/v1beta1/kubernetes.go +++ b/vendor/kmodules.xyz/client-go/admissionregistration/v1beta1/kubernetes.go @@ -1,3 +1,19 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package v1beta1 import ( diff --git a/vendor/kmodules.xyz/client-go/admissionregistration/v1beta1/mutatingwebhookconfiguration.go b/vendor/kmodules.xyz/client-go/admissionregistration/v1beta1/mutatingwebhookconfiguration.go index ae0460abb..f77165711 100644 --- a/vendor/kmodules.xyz/client-go/admissionregistration/v1beta1/mutatingwebhookconfiguration.go +++ b/vendor/kmodules.xyz/client-go/admissionregistration/v1beta1/mutatingwebhookconfiguration.go @@ -1,3 +1,19 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package v1beta1 import ( diff --git a/vendor/kmodules.xyz/client-go/admissionregistration/v1beta1/validatingwebhookconfiguration.go b/vendor/kmodules.xyz/client-go/admissionregistration/v1beta1/validatingwebhookconfiguration.go index 37eabd231..185f071e4 100644 --- a/vendor/kmodules.xyz/client-go/admissionregistration/v1beta1/validatingwebhookconfiguration.go +++ b/vendor/kmodules.xyz/client-go/admissionregistration/v1beta1/validatingwebhookconfiguration.go @@ -1,3 +1,19 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package v1beta1 import ( diff --git a/vendor/kmodules.xyz/client-go/admissionregistration/v1beta1/xray.go b/vendor/kmodules.xyz/client-go/admissionregistration/v1beta1/xray.go index 2f832a355..77e7cfaa6 100644 --- a/vendor/kmodules.xyz/client-go/admissionregistration/v1beta1/xray.go +++ b/vendor/kmodules.xyz/client-go/admissionregistration/v1beta1/xray.go @@ -1,3 +1,19 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package v1beta1 import ( diff --git a/vendor/kmodules.xyz/client-go/apiregistration/v1beta1/apiservice.go b/vendor/kmodules.xyz/client-go/apiregistration/v1beta1/apiservice.go index cf4a1c3ce..f9bf65896 100644 --- a/vendor/kmodules.xyz/client-go/apiregistration/v1beta1/apiservice.go +++ b/vendor/kmodules.xyz/client-go/apiregistration/v1beta1/apiservice.go @@ -1,3 +1,19 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package v1beta1 import ( diff --git a/vendor/kmodules.xyz/client-go/apiregistration/v1beta1/kubernetes.go b/vendor/kmodules.xyz/client-go/apiregistration/v1beta1/kubernetes.go index 0a014c365..f86c57dd8 100644 --- a/vendor/kmodules.xyz/client-go/apiregistration/v1beta1/kubernetes.go +++ b/vendor/kmodules.xyz/client-go/apiregistration/v1beta1/kubernetes.go @@ -1,3 +1,19 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package v1beta1 import jsoniter "github.com/json-iterator/go" diff --git a/vendor/kmodules.xyz/client-go/apps/v1/daemonset.go b/vendor/kmodules.xyz/client-go/apps/v1/daemonset.go index 06287e01d..b4148b6f7 100644 --- a/vendor/kmodules.xyz/client-go/apps/v1/daemonset.go +++ b/vendor/kmodules.xyz/client-go/apps/v1/daemonset.go @@ -1,3 +1,19 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package v1 import ( diff --git a/vendor/kmodules.xyz/client-go/apps/v1/deployment.go b/vendor/kmodules.xyz/client-go/apps/v1/deployment.go index 70ef0c0d7..90e0c71d3 100644 --- a/vendor/kmodules.xyz/client-go/apps/v1/deployment.go +++ b/vendor/kmodules.xyz/client-go/apps/v1/deployment.go @@ -1,3 +1,19 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package v1 import ( diff --git a/vendor/kmodules.xyz/client-go/apps/v1/kubernetes.go b/vendor/kmodules.xyz/client-go/apps/v1/kubernetes.go index 1b7070732..c41a7f9ed 100644 --- a/vendor/kmodules.xyz/client-go/apps/v1/kubernetes.go +++ b/vendor/kmodules.xyz/client-go/apps/v1/kubernetes.go @@ -1,3 +1,19 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package v1 import ( diff --git a/vendor/kmodules.xyz/client-go/apps/v1/replicaset.go b/vendor/kmodules.xyz/client-go/apps/v1/replicaset.go index 2fa6d8ce1..007f093c9 100644 --- a/vendor/kmodules.xyz/client-go/apps/v1/replicaset.go +++ b/vendor/kmodules.xyz/client-go/apps/v1/replicaset.go @@ -1,3 +1,19 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package v1 import ( diff --git a/vendor/kmodules.xyz/client-go/apps/v1/statefulset.go b/vendor/kmodules.xyz/client-go/apps/v1/statefulset.go index 0b3d2d0e8..07e288bdc 100644 --- a/vendor/kmodules.xyz/client-go/apps/v1/statefulset.go +++ b/vendor/kmodules.xyz/client-go/apps/v1/statefulset.go @@ -1,3 +1,19 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package v1 import ( diff --git a/vendor/kmodules.xyz/client-go/batch/v1/job.go b/vendor/kmodules.xyz/client-go/batch/v1/job.go index 22c5b0dff..3a1b31f66 100644 --- a/vendor/kmodules.xyz/client-go/batch/v1/job.go +++ b/vendor/kmodules.xyz/client-go/batch/v1/job.go @@ -1,3 +1,19 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package v1 import ( diff --git a/vendor/kmodules.xyz/client-go/batch/v1/kubernetes.go b/vendor/kmodules.xyz/client-go/batch/v1/kubernetes.go index 1b7070732..c41a7f9ed 100644 --- a/vendor/kmodules.xyz/client-go/batch/v1/kubernetes.go +++ b/vendor/kmodules.xyz/client-go/batch/v1/kubernetes.go @@ -1,3 +1,19 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package v1 import ( diff --git a/vendor/kmodules.xyz/client-go/batch/v1beta1/cronjob.go b/vendor/kmodules.xyz/client-go/batch/v1beta1/cronjob.go index 25e399bab..0ee55abd1 100644 --- a/vendor/kmodules.xyz/client-go/batch/v1beta1/cronjob.go +++ b/vendor/kmodules.xyz/client-go/batch/v1beta1/cronjob.go @@ -1,3 +1,19 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package v1beta1 import ( diff --git a/vendor/kmodules.xyz/client-go/batch/v1beta1/kubernetes.go b/vendor/kmodules.xyz/client-go/batch/v1beta1/kubernetes.go index 972b4eb8c..68718bd7f 100644 --- a/vendor/kmodules.xyz/client-go/batch/v1beta1/kubernetes.go +++ b/vendor/kmodules.xyz/client-go/batch/v1beta1/kubernetes.go @@ -1,3 +1,19 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package v1beta1 import ( diff --git a/vendor/kmodules.xyz/client-go/core/v1/configmap.go b/vendor/kmodules.xyz/client-go/core/v1/configmap.go index 6f4af10c4..4064c8caa 100644 --- a/vendor/kmodules.xyz/client-go/core/v1/configmap.go +++ b/vendor/kmodules.xyz/client-go/core/v1/configmap.go @@ -1,3 +1,19 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package v1 import ( diff --git a/vendor/kmodules.xyz/client-go/core/v1/endpoints.go b/vendor/kmodules.xyz/client-go/core/v1/endpoints.go index fa03c9f60..6768616de 100644 --- a/vendor/kmodules.xyz/client-go/core/v1/endpoints.go +++ b/vendor/kmodules.xyz/client-go/core/v1/endpoints.go @@ -1,3 +1,19 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package v1 import ( diff --git a/vendor/kmodules.xyz/client-go/core/v1/kubernetes.go b/vendor/kmodules.xyz/client-go/core/v1/kubernetes.go index 9f261c849..1e0f93657 100644 --- a/vendor/kmodules.xyz/client-go/core/v1/kubernetes.go +++ b/vendor/kmodules.xyz/client-go/core/v1/kubernetes.go @@ -1,3 +1,19 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package v1 import ( diff --git a/vendor/kmodules.xyz/client-go/core/v1/node.go b/vendor/kmodules.xyz/client-go/core/v1/node.go index 43052f4af..00af212bd 100644 --- a/vendor/kmodules.xyz/client-go/core/v1/node.go +++ b/vendor/kmodules.xyz/client-go/core/v1/node.go @@ -1,3 +1,19 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package v1 import ( diff --git a/vendor/kmodules.xyz/client-go/core/v1/pod.go b/vendor/kmodules.xyz/client-go/core/v1/pod.go index 1b1dc6fa3..ff9ed77c3 100644 --- a/vendor/kmodules.xyz/client-go/core/v1/pod.go +++ b/vendor/kmodules.xyz/client-go/core/v1/pod.go @@ -1,3 +1,19 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package v1 import ( diff --git a/vendor/kmodules.xyz/client-go/core/v1/pv.go b/vendor/kmodules.xyz/client-go/core/v1/pv.go index 5671432d6..2ead2b2f5 100644 --- a/vendor/kmodules.xyz/client-go/core/v1/pv.go +++ b/vendor/kmodules.xyz/client-go/core/v1/pv.go @@ -1,3 +1,19 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package v1 import ( diff --git a/vendor/kmodules.xyz/client-go/core/v1/pvc.go b/vendor/kmodules.xyz/client-go/core/v1/pvc.go index bba9f4fd5..23fd2ee38 100644 --- a/vendor/kmodules.xyz/client-go/core/v1/pvc.go +++ b/vendor/kmodules.xyz/client-go/core/v1/pvc.go @@ -1,3 +1,19 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package v1 import ( diff --git a/vendor/kmodules.xyz/client-go/core/v1/rc.go b/vendor/kmodules.xyz/client-go/core/v1/rc.go index 3480e293a..fdda967de 100644 --- a/vendor/kmodules.xyz/client-go/core/v1/rc.go +++ b/vendor/kmodules.xyz/client-go/core/v1/rc.go @@ -1,3 +1,19 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package v1 import ( diff --git a/vendor/kmodules.xyz/client-go/core/v1/secret.go b/vendor/kmodules.xyz/client-go/core/v1/secret.go index 61f111792..ca0eac01d 100644 --- a/vendor/kmodules.xyz/client-go/core/v1/secret.go +++ b/vendor/kmodules.xyz/client-go/core/v1/secret.go @@ -1,3 +1,19 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package v1 import ( diff --git a/vendor/kmodules.xyz/client-go/core/v1/service.go b/vendor/kmodules.xyz/client-go/core/v1/service.go index 3970121fd..f1476cec8 100644 --- a/vendor/kmodules.xyz/client-go/core/v1/service.go +++ b/vendor/kmodules.xyz/client-go/core/v1/service.go @@ -1,3 +1,19 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package v1 import ( diff --git a/vendor/kmodules.xyz/client-go/core/v1/serviceaccount.go b/vendor/kmodules.xyz/client-go/core/v1/serviceaccount.go index 5c5c79649..318d7a4bc 100644 --- a/vendor/kmodules.xyz/client-go/core/v1/serviceaccount.go +++ b/vendor/kmodules.xyz/client-go/core/v1/serviceaccount.go @@ -1,3 +1,19 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package v1 import ( diff --git a/vendor/kmodules.xyz/client-go/discovery/lib.go b/vendor/kmodules.xyz/client-go/discovery/lib.go index 6460d51ac..ea25dc255 100644 --- a/vendor/kmodules.xyz/client-go/discovery/lib.go +++ b/vendor/kmodules.xyz/client-go/discovery/lib.go @@ -1,3 +1,19 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package discovery import ( diff --git a/vendor/kmodules.xyz/client-go/discovery/restmapper.go b/vendor/kmodules.xyz/client-go/discovery/restmapper.go index 6443078e1..81ef941b5 100644 --- a/vendor/kmodules.xyz/client-go/discovery/restmapper.go +++ b/vendor/kmodules.xyz/client-go/discovery/restmapper.go @@ -1,3 +1,19 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package discovery import ( diff --git a/vendor/kmodules.xyz/client-go/doc.go b/vendor/kmodules.xyz/client-go/doc.go index 16aecc604..3b100927c 100644 --- a/vendor/kmodules.xyz/client-go/doc.go +++ b/vendor/kmodules.xyz/client-go/doc.go @@ -1 +1,17 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package kutil // import "kmodules.xyz/client-go" diff --git a/vendor/kmodules.xyz/client-go/dynamic/kubernetes.go b/vendor/kmodules.xyz/client-go/dynamic/kubernetes.go index 430f94074..0789191de 100644 --- a/vendor/kmodules.xyz/client-go/dynamic/kubernetes.go +++ b/vendor/kmodules.xyz/client-go/dynamic/kubernetes.go @@ -1,3 +1,19 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package dynamic import ( diff --git a/vendor/kmodules.xyz/client-go/dynamic/unstructured.go b/vendor/kmodules.xyz/client-go/dynamic/unstructured.go index 6683fa5b9..e99d49784 100644 --- a/vendor/kmodules.xyz/client-go/dynamic/unstructured.go +++ b/vendor/kmodules.xyz/client-go/dynamic/unstructured.go @@ -1,3 +1,19 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package dynamic import ( diff --git a/vendor/kmodules.xyz/client-go/go.mod b/vendor/kmodules.xyz/client-go/go.mod index 672c60625..901125eed 100644 --- a/vendor/kmodules.xyz/client-go/go.mod +++ b/vendor/kmodules.xyz/client-go/go.mod @@ -90,7 +90,7 @@ require ( k8s.io/kube-aggregator v0.0.0-20190314000639-da8327669ac5 k8s.io/kube-openapi v0.0.0-20190228160746-b3a7cee44a30 k8s.io/kubernetes v1.14.0 - k8s.io/utils v0.0.0-20190221042446-c2654d5206da + k8s.io/utils v0.0.0-20190221042446-c2654d5206da // indirect sigs.k8s.io/kustomize v2.0.3+incompatible // indirect sigs.k8s.io/structured-merge-diff v0.0.0-20190302045857-e85c7b244fd2 // indirect sigs.k8s.io/yaml v1.1.0 diff --git a/vendor/kmodules.xyz/client-go/meta/annotations.go b/vendor/kmodules.xyz/client-go/meta/annotations.go index c0b7e733a..d33d2d5c0 100644 --- a/vendor/kmodules.xyz/client-go/meta/annotations.go +++ b/vendor/kmodules.xyz/client-go/meta/annotations.go @@ -1,3 +1,19 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package meta import ( diff --git a/vendor/kmodules.xyz/client-go/meta/cloud.go b/vendor/kmodules.xyz/client-go/meta/cloud.go index f41a2360c..1ea2ab2ec 100644 --- a/vendor/kmodules.xyz/client-go/meta/cloud.go +++ b/vendor/kmodules.xyz/client-go/meta/cloud.go @@ -1,3 +1,19 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package meta import ( diff --git a/vendor/kmodules.xyz/client-go/meta/cmp.go b/vendor/kmodules.xyz/client-go/meta/cmp.go index f4e2d11b7..e4a3d6cee 100644 --- a/vendor/kmodules.xyz/client-go/meta/cmp.go +++ b/vendor/kmodules.xyz/client-go/meta/cmp.go @@ -1,3 +1,19 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package meta import ( diff --git a/vendor/kmodules.xyz/client-go/meta/encoding.go b/vendor/kmodules.xyz/client-go/meta/encoding.go index 882f1333a..ce3d4be2a 100644 --- a/vendor/kmodules.xyz/client-go/meta/encoding.go +++ b/vendor/kmodules.xyz/client-go/meta/encoding.go @@ -1,3 +1,19 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package meta import ( diff --git a/vendor/kmodules.xyz/client-go/meta/hash.go b/vendor/kmodules.xyz/client-go/meta/hash.go index cc9f543a1..375a9e1e8 100644 --- a/vendor/kmodules.xyz/client-go/meta/hash.go +++ b/vendor/kmodules.xyz/client-go/meta/hash.go @@ -1,3 +1,19 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package meta import ( diff --git a/vendor/kmodules.xyz/client-go/meta/incluster.go b/vendor/kmodules.xyz/client-go/meta/incluster.go index fc9881505..f7c5bda10 100644 --- a/vendor/kmodules.xyz/client-go/meta/incluster.go +++ b/vendor/kmodules.xyz/client-go/meta/incluster.go @@ -1,3 +1,19 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package meta import ( diff --git a/vendor/kmodules.xyz/client-go/meta/lib.go b/vendor/kmodules.xyz/client-go/meta/lib.go index ce7055881..de3316bf8 100644 --- a/vendor/kmodules.xyz/client-go/meta/lib.go +++ b/vendor/kmodules.xyz/client-go/meta/lib.go @@ -1,3 +1,19 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package meta import ( diff --git a/vendor/kmodules.xyz/client-go/meta/patch.go b/vendor/kmodules.xyz/client-go/meta/patch.go index 34ca2380c..ec6139ca6 100644 --- a/vendor/kmodules.xyz/client-go/meta/patch.go +++ b/vendor/kmodules.xyz/client-go/meta/patch.go @@ -1,3 +1,19 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package meta import ( diff --git a/vendor/kmodules.xyz/client-go/openapi/cd_storage.go b/vendor/kmodules.xyz/client-go/openapi/cd_storage.go index 129dd8be2..c945cf8ad 100644 --- a/vendor/kmodules.xyz/client-go/openapi/cd_storage.go +++ b/vendor/kmodules.xyz/client-go/openapi/cd_storage.go @@ -1,3 +1,19 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package openapi import ( diff --git a/vendor/kmodules.xyz/client-go/openapi/getter_storage.go b/vendor/kmodules.xyz/client-go/openapi/getter_storage.go index 7249fa6f4..7365e3dcf 100644 --- a/vendor/kmodules.xyz/client-go/openapi/getter_storage.go +++ b/vendor/kmodules.xyz/client-go/openapi/getter_storage.go @@ -1,3 +1,19 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package openapi import ( diff --git a/vendor/kmodules.xyz/client-go/openapi/lister_storage.go b/vendor/kmodules.xyz/client-go/openapi/lister_storage.go index 1d613ed7a..07a6af511 100644 --- a/vendor/kmodules.xyz/client-go/openapi/lister_storage.go +++ b/vendor/kmodules.xyz/client-go/openapi/lister_storage.go @@ -1,3 +1,19 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package openapi import ( diff --git a/vendor/kmodules.xyz/client-go/openapi/rd_storage.go b/vendor/kmodules.xyz/client-go/openapi/rd_storage.go index fb964ed57..0b394e2d6 100644 --- a/vendor/kmodules.xyz/client-go/openapi/rd_storage.go +++ b/vendor/kmodules.xyz/client-go/openapi/rd_storage.go @@ -1,3 +1,19 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package openapi import ( diff --git a/vendor/kmodules.xyz/client-go/openapi/render.go b/vendor/kmodules.xyz/client-go/openapi/render.go index ce1b81df6..37df08704 100644 --- a/vendor/kmodules.xyz/client-go/openapi/render.go +++ b/vendor/kmodules.xyz/client-go/openapi/render.go @@ -1,3 +1,19 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package openapi import ( diff --git a/vendor/kmodules.xyz/client-go/openapi/std_storage.go b/vendor/kmodules.xyz/client-go/openapi/std_storage.go index b5ef95106..73ffa2fa8 100644 --- a/vendor/kmodules.xyz/client-go/openapi/std_storage.go +++ b/vendor/kmodules.xyz/client-go/openapi/std_storage.go @@ -1,3 +1,19 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package openapi import ( diff --git a/vendor/kmodules.xyz/client-go/openapi/types.go b/vendor/kmodules.xyz/client-go/openapi/types.go index b242054cb..f14e28a70 100644 --- a/vendor/kmodules.xyz/client-go/openapi/types.go +++ b/vendor/kmodules.xyz/client-go/openapi/types.go @@ -1,3 +1,19 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package openapi import ( diff --git a/vendor/kmodules.xyz/client-go/rbac/v1/clusterrole.go b/vendor/kmodules.xyz/client-go/rbac/v1/clusterrole.go index d3870311a..50edc6da3 100644 --- a/vendor/kmodules.xyz/client-go/rbac/v1/clusterrole.go +++ b/vendor/kmodules.xyz/client-go/rbac/v1/clusterrole.go @@ -1,3 +1,19 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package v1 import ( diff --git a/vendor/kmodules.xyz/client-go/rbac/v1/clusterrolebinding.go b/vendor/kmodules.xyz/client-go/rbac/v1/clusterrolebinding.go index e2b5f72fc..51009f9fd 100644 --- a/vendor/kmodules.xyz/client-go/rbac/v1/clusterrolebinding.go +++ b/vendor/kmodules.xyz/client-go/rbac/v1/clusterrolebinding.go @@ -1,3 +1,19 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package v1 import ( diff --git a/vendor/kmodules.xyz/client-go/rbac/v1/kubernetes.go b/vendor/kmodules.xyz/client-go/rbac/v1/kubernetes.go index 1b7070732..c41a7f9ed 100644 --- a/vendor/kmodules.xyz/client-go/rbac/v1/kubernetes.go +++ b/vendor/kmodules.xyz/client-go/rbac/v1/kubernetes.go @@ -1,3 +1,19 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package v1 import ( diff --git a/vendor/kmodules.xyz/client-go/rbac/v1/role.go b/vendor/kmodules.xyz/client-go/rbac/v1/role.go index cbf80d262..2e075973c 100644 --- a/vendor/kmodules.xyz/client-go/rbac/v1/role.go +++ b/vendor/kmodules.xyz/client-go/rbac/v1/role.go @@ -1,3 +1,19 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package v1 import ( diff --git a/vendor/kmodules.xyz/client-go/rbac/v1/rolebinding.go b/vendor/kmodules.xyz/client-go/rbac/v1/rolebinding.go index 345dd39d4..147d0aa5c 100644 --- a/vendor/kmodules.xyz/client-go/rbac/v1/rolebinding.go +++ b/vendor/kmodules.xyz/client-go/rbac/v1/rolebinding.go @@ -1,3 +1,19 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package v1 import ( diff --git a/vendor/kmodules.xyz/client-go/tools/analytics/analytics.go b/vendor/kmodules.xyz/client-go/tools/analytics/analytics.go index 0e4fd20cb..3e33e2bf8 100644 --- a/vendor/kmodules.xyz/client-go/tools/analytics/analytics.go +++ b/vendor/kmodules.xyz/client-go/tools/analytics/analytics.go @@ -1,3 +1,19 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package analytics import ( diff --git a/vendor/kmodules.xyz/client-go/tools/cli/cli.go b/vendor/kmodules.xyz/client-go/tools/cli/cli.go index b5d82761f..1b6e0481f 100644 --- a/vendor/kmodules.xyz/client-go/tools/cli/cli.go +++ b/vendor/kmodules.xyz/client-go/tools/cli/cli.go @@ -1,3 +1,19 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package cli import ( diff --git a/vendor/kmodules.xyz/client-go/tools/clientcmd/client_config.go b/vendor/kmodules.xyz/client-go/tools/clientcmd/client_config.go index a300d3d35..e4e7fc393 100644 --- a/vendor/kmodules.xyz/client-go/tools/clientcmd/client_config.go +++ b/vendor/kmodules.xyz/client-go/tools/clientcmd/client_config.go @@ -1,3 +1,19 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package clientcmd import ( diff --git a/vendor/kmodules.xyz/client-go/tools/clientcmd/client_getter.go b/vendor/kmodules.xyz/client-go/tools/clientcmd/client_getter.go index 1571c58d2..c1137db48 100644 --- a/vendor/kmodules.xyz/client-go/tools/clientcmd/client_getter.go +++ b/vendor/kmodules.xyz/client-go/tools/clientcmd/client_getter.go @@ -1,3 +1,19 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package clientcmd import ( diff --git a/vendor/kmodules.xyz/client-go/tools/queue/handler.go b/vendor/kmodules.xyz/client-go/tools/queue/handler.go index da5817a37..3f3689ef4 100644 --- a/vendor/kmodules.xyz/client-go/tools/queue/handler.go +++ b/vendor/kmodules.xyz/client-go/tools/queue/handler.go @@ -1,3 +1,19 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package queue import ( diff --git a/vendor/kmodules.xyz/client-go/tools/queue/worker.go b/vendor/kmodules.xyz/client-go/tools/queue/worker.go index 7c21eb306..24ac5ee1b 100644 --- a/vendor/kmodules.xyz/client-go/tools/queue/worker.go +++ b/vendor/kmodules.xyz/client-go/tools/queue/worker.go @@ -1,3 +1,19 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package queue import ( diff --git a/vendor/kmodules.xyz/client-go/util.go b/vendor/kmodules.xyz/client-go/util.go index 26587dd4a..146413966 100644 --- a/vendor/kmodules.xyz/client-go/util.go +++ b/vendor/kmodules.xyz/client-go/util.go @@ -1,3 +1,19 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package kutil import ( diff --git a/vendor/kmodules.xyz/constants/aws/constants.go b/vendor/kmodules.xyz/constants/aws/constants.go new file mode 100644 index 000000000..e75577e5a --- /dev/null +++ b/vendor/kmodules.xyz/constants/aws/constants.go @@ -0,0 +1,31 @@ +package aws + +import ( + "log" + "os" +) + +const ( + AWS_ACCESS_KEY_ID = "AWS_ACCESS_KEY_ID" + AWS_SECRET_ACCESS_KEY = "AWS_SECRET_ACCESS_KEY" + CA_CERT_DATA = "CA_CERT_DATA" +) + +const ( + AWSAccess_Key = "access_key" + AWSSecret_Key = "secret_key" +) + +func CredentialsFromEnv() map[string][]byte { + awsAccessKeyId := os.Getenv(AWS_ACCESS_KEY_ID) + awsSecretAccessKey := os.Getenv(AWS_SECRET_ACCESS_KEY) + if len(awsAccessKeyId) == 0 || len(awsSecretAccessKey) == 0 { + log.Println("AWS credentials for empty") + return map[string][]byte{} + } + + return map[string][]byte{ + AWSAccess_Key: []byte(awsAccessKeyId), + AWSSecret_Key: []byte(awsSecretAccessKey), + } +} diff --git a/vendor/kmodules.xyz/constants/azure/constants.go b/vendor/kmodules.xyz/constants/azure/constants.go new file mode 100644 index 000000000..d1da70197 --- /dev/null +++ b/vendor/kmodules.xyz/constants/azure/constants.go @@ -0,0 +1,40 @@ +package azure + +import ( + "log" + "os" +) + +const ( + AZURE_SUBSCRIPTION_ID = "AZURE_SUBSCRIPTION_ID" + AZURE_TENANT_ID = "AZURE_TENANT_ID" + AZURE_CLIENT_ID = "AZURE_CLIENT_ID" + AZURE_CLIENT_SECRET = "AZURE_CLIENT_SECRET" + AZURE_ACCOUNT_NAME = "AZURE_ACCOUNT_NAME" + AZURE_ACCOUNT_KEY = "AZURE_ACCOUNT_KEY" +) + +const ( + AzureClientSecret = "client-secret" + AzureSubscriptionID = "subscription-id" + AzureTenantID = "tenant-id" + AzureClientID = "client-id" +) + +func CredentialsFromEnv() map[string][]byte { + subscriptionID := os.Getenv(AZURE_SUBSCRIPTION_ID) + tenantID := os.Getenv(AZURE_TENANT_ID) + clientID := os.Getenv(AZURE_CLIENT_ID) + clientSecret := os.Getenv(AZURE_CLIENT_SECRET) + if len(subscriptionID) == 0 || len(tenantID) == 0 || len(clientID) == 0 || len(clientSecret) == 0 { + log.Println("Azure credentials for empty") + return map[string][]byte{} + } + + return map[string][]byte{ + AzureSubscriptionID: []byte(subscriptionID), + AzureTenantID: []byte(tenantID), + AzureClientID: []byte(clientID), + AzureClientSecret: []byte(clientSecret), + } +} diff --git a/vendor/kmodules.xyz/constants/openstack/constants.go b/vendor/kmodules.xyz/constants/openstack/constants.go new file mode 100644 index 000000000..3e675a809 --- /dev/null +++ b/vendor/kmodules.xyz/constants/openstack/constants.go @@ -0,0 +1,27 @@ +package openstack + +const ( + // swift + OS_USERNAME = "OS_USERNAME" + OS_PASSWORD = "OS_PASSWORD" + OS_REGION_NAME = "OS_REGION_NAME" + OS_AUTH_URL = "OS_AUTH_URL" + + // v3 specific + OS_USER_DOMAIN_NAME = "OS_USER_DOMAIN_NAME" + OS_PROJECT_NAME = "OS_PROJECT_NAME" + OS_PROJECT_DOMAIN_NAME = "OS_PROJECT_DOMAIN_NAME" + + // v2 specific + OS_TENANT_ID = "OS_TENANT_ID" + OS_TENANT_NAME = "OS_TENANT_NAME" + + // v1 specific + ST_AUTH = "ST_AUTH" + ST_USER = "ST_USER" + ST_KEY = "ST_KEY" + + // Manual authentication + OS_STORAGE_URL = "OS_STORAGE_URL" + OS_AUTH_TOKEN = "OS_AUTH_TOKEN" +) diff --git a/vendor/kmodules.xyz/custom-resources/apis/appcatalog/register.go b/vendor/kmodules.xyz/custom-resources/apis/appcatalog/register.go index 68cef88a2..62c2cddce 100644 --- a/vendor/kmodules.xyz/custom-resources/apis/appcatalog/register.go +++ b/vendor/kmodules.xyz/custom-resources/apis/appcatalog/register.go @@ -1,3 +1,19 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package appcatalog // GroupName is the group name use in this package diff --git a/vendor/kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1/appbinding_helpers.go b/vendor/kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1/appbinding_helpers.go index 1a8decacd..eaabfba38 100644 --- a/vendor/kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1/appbinding_helpers.go +++ b/vendor/kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1/appbinding_helpers.go @@ -1,3 +1,19 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package v1alpha1 import ( @@ -7,8 +23,9 @@ import ( "strconv" "strings" - apiextensions "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1" crdutils "kmodules.xyz/client-go/apiextensions/v1beta1" + + apiextensions "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1" ) func (a AppBinding) CustomResourceDefinition() *apiextensions.CustomResourceDefinition { diff --git a/vendor/kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1/appbinding_types.go b/vendor/kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1/appbinding_types.go index cd4f43d87..4dbd2cff0 100644 --- a/vendor/kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1/appbinding_types.go +++ b/vendor/kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1/appbinding_types.go @@ -1,3 +1,19 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package v1alpha1 import ( @@ -12,39 +28,43 @@ const ( ResourceApp = "appbinding" ) +// AppBinding defines a generic user application. + // +genclient // +genclient:skipVerbs=updateStatus // +k8s:openapi-gen=true // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -// AppBinding defines a generic user application. +// +kubebuilder:object:root=true +// +kubebuilder:resource:path=appbindings,singular=appbinding,categories={catalog,appscode,all} +// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp" type AppBinding struct { metav1.TypeMeta `json:",inline,omitempty"` - metav1.ObjectMeta `json:"metadata,omitempty"` - Spec AppBindingSpec `json:"spec,omitempty"` + metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + Spec AppBindingSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` } // AppBindingSpec is the spec for app type AppBindingSpec struct { // Type used to facilitate programmatic handling of application. // +optional - Type AppType `json:"type,omitempty"` + Type AppType `json:"type,omitempty" protobuf:"bytes,1,opt,name=type,casttype=AppType"` // Version used to facilitate programmatic handling of application. // +optional - Version string `json:"version,omitempty"` + Version string `json:"version,omitempty" protobuf:"bytes,2,opt,name=version"` // ClientConfig defines how to communicate with the app. // Required - ClientConfig ClientConfig `json:"clientConfig"` + ClientConfig ClientConfig `json:"clientConfig" protobuf:"bytes,3,opt,name=clientConfig"` // Secret is the name of the secret to create in the AppBinding's // namespace that will hold the credentials associated with the AppBinding. - Secret *core.LocalObjectReference `json:"secret,omitempty"` + Secret *core.LocalObjectReference `json:"secret,omitempty" protobuf:"bytes,4,opt,name=secret"` // List of transformations that should be applied to the credentials // associated with the ServiceBinding before they are inserted into the Secret. - SecretTransforms []SecretTransform `json:"secretTransforms,omitempty"` + SecretTransforms []SecretTransform `json:"secretTransforms,omitempty" protobuf:"bytes,5,rep,name=secretTransforms"` // Parameters is a set of the parameters to be used to connect to the // app. The inline YAML/JSON payload to be translated into equivalent @@ -56,7 +76,7 @@ type AppBindingSpec struct { // in a Secret. // // +optional - Parameters *runtime.RawExtension `json:"parameters,omitempty"` + Parameters *runtime.RawExtension `json:"parameters,omitempty" protobuf:"bytes,6,opt,name=parameters"` } type AppType string @@ -87,7 +107,7 @@ type ClientConfig struct { // allowed, either. // // +optional - URL *string `json:"url,omitempty"` + URL *string `json:"url,omitempty" protobuf:"bytes,1,opt,name=url"` // `service` is a reference to the service for this app. Either // `service` or `url` must be specified. @@ -95,15 +115,15 @@ type ClientConfig struct { // If the webhook is running within the cluster, then you should use `service`. // // +optional - Service *ServiceReference `json:"service,omitempty"` + Service *ServiceReference `json:"service,omitempty" protobuf:"bytes,2,opt,name=service"` // InsecureSkipTLSVerify disables TLS certificate verification when communicating with this app. // This is strongly discouraged. You should use the CABundle instead. - InsecureSkipTLSVerify bool `json:"insecureSkipTLSVerify,omitempty"` + InsecureSkipTLSVerify bool `json:"insecureSkipTLSVerify,omitempty" protobuf:"varint,3,opt,name=insecureSkipTLSVerify"` // CABundle is a PEM encoded CA bundle which will be used to validate the serving certificate of this app. // +optional - CABundle []byte `json:"caBundle,omitempty"` + CABundle []byte `json:"caBundle,omitempty" protobuf:"bytes,4,opt,name=caBundle"` } // ServiceReference holds a reference to Service.legacy.k8s.io @@ -111,24 +131,24 @@ type ServiceReference struct { // Specifies which scheme to use, for example: http, https // If specified, then it will applied as prefix in this format: scheme:// // If not specified, then nothing will be prefixed - Scheme string `json:"scheme"` + Scheme string `json:"scheme" protobuf:"bytes,1,opt,name=scheme"` // `name` is the name of the service. // Required - Name string `json:"name"` + Name string `json:"name" protobuf:"bytes,2,opt,name=name"` // The port that will be exposed by this app. - Port int32 `json:"port"` + Port int32 `json:"port" protobuf:"varint,3,opt,name=port"` // `path` is an optional URL path which will be sent in any request to // this service. // +optional - Path string `json:"path,omitempty"` + Path string `json:"path,omitempty" protobuf:"bytes,4,opt,name=path"` // `query` is optional encoded query string, without '?' which will be // sent in any request to this service. // +optional - Query string `json:"query,omitempty"` + Query string `json:"query,omitempty" protobuf:"bytes,5,opt,name=query"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object @@ -136,19 +156,19 @@ type ServiceReference struct { // AppBindingList is a list of Apps type AppBindingList struct { metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` + metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // Items is a list of AppBinding CRD objects - Items []AppBinding `json:"items,omitempty"` + Items []AppBinding `json:"items,omitempty" protobuf:"bytes,2,rep,name=items"` } type AppReference struct { // `namespace` is the namespace of the app. // Required - Namespace string `json:"namespace"` + Namespace string `json:"namespace" protobuf:"bytes,1,opt,name=namespace"` // `name` is the name of the app. // Required - Name string `json:"name"` + Name string `json:"name" protobuf:"bytes,2,opt,name=name"` // Parameters is a set of the parameters to be used to override default // parameters. The inline YAML/JSON payload to be translated into equivalent @@ -158,7 +178,7 @@ type AppReference struct { // NEVER be used to hold sensitive information. // // +optional - Parameters *runtime.RawExtension `json:"parameters,omitempty"` + Parameters *runtime.RawExtension `json:"parameters,omitempty" protobuf:"bytes,3,opt,name=parameters"` } type AppBindingMeta interface { @@ -170,9 +190,9 @@ type AppBindingMeta interface { // referenced object. type ObjectReference struct { // Namespace of the referent. - Namespace string `json:"namespace,omitempty"` + Namespace string `json:"namespace,omitempty" protobuf:"bytes,1,opt,name=namespace"` // Name of the referent. - Name string `json:"name,omitempty"` + Name string `json:"name,omitempty" protobuf:"bytes,2,opt,name=name"` } // ref: https://github.com/kubernetes-incubator/service-catalog/blob/37b874716ad709a175e426f5f5638322a600849f/pkg/apis/servicecatalog/v1beta1/types.go#L1397 @@ -193,14 +213,14 @@ type ObjectReference struct { // Only one of the SecretTransform's members may be specified. type SecretTransform struct { // RenameKey represents a transform that renames a credentials Secret entry's key - RenameKey *RenameKeyTransform `json:"renameKey,omitempty"` + RenameKey *RenameKeyTransform `json:"renameKey,omitempty" protobuf:"bytes,1,opt,name=renameKey"` // AddKey represents a transform that adds an additional key to the credentials Secret - AddKey *AddKeyTransform `json:"addKey,omitempty"` + AddKey *AddKeyTransform `json:"addKey,omitempty" protobuf:"bytes,2,opt,name=addKey"` // AddKeysFrom represents a transform that merges all the entries of an existing Secret // into the credentials Secret - AddKeysFrom *AddKeysFromTransform `json:"addKeysFrom,omitempty"` + AddKeysFrom *AddKeysFromTransform `json:"addKeysFrom,omitempty" protobuf:"bytes,3,opt,name=addKeysFrom"` // RemoveKey represents a transform that removes a credentials Secret entry - RemoveKey *RemoveKeyTransform `json:"removeKey,omitempty"` + RemoveKey *RemoveKeyTransform `json:"removeKey,omitempty" protobuf:"bytes,4,opt,name=removeKey"` } // RenameKeyTransform specifies that one of the credentials keys returned @@ -214,9 +234,9 @@ type SecretTransform struct { // "DB_USER": "johndoe" type RenameKeyTransform struct { // The name of the key to rename - From string `json:"from"` + From string `json:"from" protobuf:"bytes,1,opt,name=from"` // The new name for the key - To string `json:"to"` + To string `json:"to" protobuf:"bytes,2,opt,name=to"` } // AddKeyTransform specifies that Service Catalog should add an @@ -230,18 +250,18 @@ type RenameKeyTransform struct { // AddKeysFromTransform should be used instead. type AddKeyTransform struct { // The name of the key to add - Key string `json:"key"` + Key string `json:"key" protobuf:"bytes,1,opt,name=key"` // The binary value (possibly non-string) to add to the Secret under the specified key. If both // value and stringValue are specified, then value is ignored and stringValue is stored. - Value []byte `json:"value"` + Value []byte `json:"value" protobuf:"bytes,2,opt,name=value"` // The string (non-binary) value to add to the Secret under the specified key. - StringValue *string `json:"stringValue"` + StringValue *string `json:"stringValue" protobuf:"bytes,3,opt,name=stringValue"` // The JSONPath expression, the result of which will be added to the Secret under the specified key. // For example, given the following credentials: // { "foo": { "bar": "foobar" } } // and the jsonPathExpression "{.foo.bar}", the value "foobar" will be // stored in the credentials Secret under the specified key. - JSONPathExpression *string `json:"jsonPathExpression"` + JSONPathExpression *string `json:"jsonPathExpression" protobuf:"bytes,4,opt,name=jsonPathExpression"` } // AddKeysFromTransform specifies that Service Catalog should merge @@ -252,12 +272,12 @@ type AddKeyTransform struct { // the credentials Secret. type AddKeysFromTransform struct { // The reference to the Secret that should be merged into the credentials Secret. - SecretRef *ObjectReference `json:"secretRef,omitempty"` + SecretRef *ObjectReference `json:"secretRef,omitempty" protobuf:"bytes,1,opt,name=secretRef"` } // RemoveKeyTransform specifies that one of the credentials keys returned // from the broker should not be included in the credentials Secret. type RemoveKeyTransform struct { // The key to remove from the Secret - Key string `json:"key"` + Key string `json:"key" protobuf:"bytes,1,opt,name=key"` } diff --git a/vendor/kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1/doc.go b/vendor/kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1/doc.go index e7246ddc7..d20090b01 100644 --- a/vendor/kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1/doc.go +++ b/vendor/kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1/doc.go @@ -1,3 +1,18 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ // Package v1alpha1 is the v1alpha1 version of the API. // +k8s:deepcopy-gen=package,register diff --git a/vendor/kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1/generated.pb.go b/vendor/kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1/generated.pb.go new file mode 100644 index 000000000..e797b4578 --- /dev/null +++ b/vendor/kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1/generated.pb.go @@ -0,0 +1,2797 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1/generated.proto + +/* + Package v1alpha1 is a generated protocol buffer package. + + It is generated from these files: + kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1/generated.proto + + It has these top-level messages: + AddKeyTransform + AddKeysFromTransform + AppBinding + AppBindingList + AppBindingSpec + AppReference + ClientConfig + ObjectReference + RemoveKeyTransform + RenameKeyTransform + SecretTransform + ServiceReference +*/ +package v1alpha1 + +import ( + fmt "fmt" + io "io" + math "math" + reflect "reflect" + strings "strings" + + proto "github.com/gogo/protobuf/proto" + k8s_io_api_core_v1 "k8s.io/api/core/v1" + k8s_io_apimachinery_pkg_runtime "k8s.io/apimachinery/pkg/runtime" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package + +func (m *AddKeyTransform) Reset() { *m = AddKeyTransform{} } +func (*AddKeyTransform) ProtoMessage() {} +func (*AddKeyTransform) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{0} } + +func (m *AddKeysFromTransform) Reset() { *m = AddKeysFromTransform{} } +func (*AddKeysFromTransform) ProtoMessage() {} +func (*AddKeysFromTransform) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{1} } + +func (m *AppBinding) Reset() { *m = AppBinding{} } +func (*AppBinding) ProtoMessage() {} +func (*AppBinding) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{2} } + +func (m *AppBindingList) Reset() { *m = AppBindingList{} } +func (*AppBindingList) ProtoMessage() {} +func (*AppBindingList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{3} } + +func (m *AppBindingSpec) Reset() { *m = AppBindingSpec{} } +func (*AppBindingSpec) ProtoMessage() {} +func (*AppBindingSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{4} } + +func (m *AppReference) Reset() { *m = AppReference{} } +func (*AppReference) ProtoMessage() {} +func (*AppReference) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{5} } + +func (m *ClientConfig) Reset() { *m = ClientConfig{} } +func (*ClientConfig) ProtoMessage() {} +func (*ClientConfig) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{6} } + +func (m *ObjectReference) Reset() { *m = ObjectReference{} } +func (*ObjectReference) ProtoMessage() {} +func (*ObjectReference) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{7} } + +func (m *RemoveKeyTransform) Reset() { *m = RemoveKeyTransform{} } +func (*RemoveKeyTransform) ProtoMessage() {} +func (*RemoveKeyTransform) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{8} } + +func (m *RenameKeyTransform) Reset() { *m = RenameKeyTransform{} } +func (*RenameKeyTransform) ProtoMessage() {} +func (*RenameKeyTransform) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{9} } + +func (m *SecretTransform) Reset() { *m = SecretTransform{} } +func (*SecretTransform) ProtoMessage() {} +func (*SecretTransform) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{10} } + +func (m *ServiceReference) Reset() { *m = ServiceReference{} } +func (*ServiceReference) ProtoMessage() {} +func (*ServiceReference) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{11} } + +func init() { + proto.RegisterType((*AddKeyTransform)(nil), "kmodules.xyz.custom_resources.apis.appcatalog.v1alpha1.AddKeyTransform") + proto.RegisterType((*AddKeysFromTransform)(nil), "kmodules.xyz.custom_resources.apis.appcatalog.v1alpha1.AddKeysFromTransform") + proto.RegisterType((*AppBinding)(nil), "kmodules.xyz.custom_resources.apis.appcatalog.v1alpha1.AppBinding") + proto.RegisterType((*AppBindingList)(nil), "kmodules.xyz.custom_resources.apis.appcatalog.v1alpha1.AppBindingList") + proto.RegisterType((*AppBindingSpec)(nil), "kmodules.xyz.custom_resources.apis.appcatalog.v1alpha1.AppBindingSpec") + proto.RegisterType((*AppReference)(nil), "kmodules.xyz.custom_resources.apis.appcatalog.v1alpha1.AppReference") + proto.RegisterType((*ClientConfig)(nil), "kmodules.xyz.custom_resources.apis.appcatalog.v1alpha1.ClientConfig") + proto.RegisterType((*ObjectReference)(nil), "kmodules.xyz.custom_resources.apis.appcatalog.v1alpha1.ObjectReference") + proto.RegisterType((*RemoveKeyTransform)(nil), "kmodules.xyz.custom_resources.apis.appcatalog.v1alpha1.RemoveKeyTransform") + proto.RegisterType((*RenameKeyTransform)(nil), "kmodules.xyz.custom_resources.apis.appcatalog.v1alpha1.RenameKeyTransform") + proto.RegisterType((*SecretTransform)(nil), "kmodules.xyz.custom_resources.apis.appcatalog.v1alpha1.SecretTransform") + proto.RegisterType((*ServiceReference)(nil), "kmodules.xyz.custom_resources.apis.appcatalog.v1alpha1.ServiceReference") +} +func (m *AddKeyTransform) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *AddKeyTransform) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Key))) + i += copy(dAtA[i:], m.Key) + if m.Value != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Value))) + i += copy(dAtA[i:], m.Value) + } + if m.StringValue != nil { + dAtA[i] = 0x1a + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(*m.StringValue))) + i += copy(dAtA[i:], *m.StringValue) + } + if m.JSONPathExpression != nil { + dAtA[i] = 0x22 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(*m.JSONPathExpression))) + i += copy(dAtA[i:], *m.JSONPathExpression) + } + return i, nil +} + +func (m *AddKeysFromTransform) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *AddKeysFromTransform) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.SecretRef != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.SecretRef.Size())) + n1, err := m.SecretRef.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n1 + } + return i, nil +} + +func (m *AppBinding) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *AppBinding) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size())) + n2, err := m.ObjectMeta.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n2 + dAtA[i] = 0x12 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.Spec.Size())) + n3, err := m.Spec.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n3 + return i, nil +} + +func (m *AppBindingList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *AppBindingList) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.ListMeta.Size())) + n4, err := m.ListMeta.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n4 + if len(m.Items) > 0 { + for _, msg := range m.Items { + dAtA[i] = 0x12 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } + } + return i, nil +} + +func (m *AppBindingSpec) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *AppBindingSpec) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) + i += copy(dAtA[i:], m.Type) + dAtA[i] = 0x12 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Version))) + i += copy(dAtA[i:], m.Version) + dAtA[i] = 0x1a + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.ClientConfig.Size())) + n5, err := m.ClientConfig.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n5 + if m.Secret != nil { + dAtA[i] = 0x22 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.Secret.Size())) + n6, err := m.Secret.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n6 + } + if len(m.SecretTransforms) > 0 { + for _, msg := range m.SecretTransforms { + dAtA[i] = 0x2a + i++ + i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } + } + if m.Parameters != nil { + dAtA[i] = 0x32 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.Parameters.Size())) + n7, err := m.Parameters.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n7 + } + return i, nil +} + +func (m *AppReference) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *AppReference) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Namespace))) + i += copy(dAtA[i:], m.Namespace) + dAtA[i] = 0x12 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) + i += copy(dAtA[i:], m.Name) + if m.Parameters != nil { + dAtA[i] = 0x1a + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.Parameters.Size())) + n8, err := m.Parameters.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n8 + } + return i, nil +} + +func (m *ClientConfig) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ClientConfig) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.URL != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(*m.URL))) + i += copy(dAtA[i:], *m.URL) + } + if m.Service != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.Service.Size())) + n9, err := m.Service.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n9 + } + dAtA[i] = 0x18 + i++ + if m.InsecureSkipTLSVerify { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i++ + if m.CABundle != nil { + dAtA[i] = 0x22 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.CABundle))) + i += copy(dAtA[i:], m.CABundle) + } + return i, nil +} + +func (m *ObjectReference) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ObjectReference) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Namespace))) + i += copy(dAtA[i:], m.Namespace) + dAtA[i] = 0x12 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) + i += copy(dAtA[i:], m.Name) + return i, nil +} + +func (m *RemoveKeyTransform) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RemoveKeyTransform) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Key))) + i += copy(dAtA[i:], m.Key) + return i, nil +} + +func (m *RenameKeyTransform) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RenameKeyTransform) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.From))) + i += copy(dAtA[i:], m.From) + dAtA[i] = 0x12 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.To))) + i += copy(dAtA[i:], m.To) + return i, nil +} + +func (m *SecretTransform) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SecretTransform) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.RenameKey != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.RenameKey.Size())) + n10, err := m.RenameKey.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n10 + } + if m.AddKey != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.AddKey.Size())) + n11, err := m.AddKey.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n11 + } + if m.AddKeysFrom != nil { + dAtA[i] = 0x1a + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.AddKeysFrom.Size())) + n12, err := m.AddKeysFrom.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n12 + } + if m.RemoveKey != nil { + dAtA[i] = 0x22 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.RemoveKey.Size())) + n13, err := m.RemoveKey.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n13 + } + return i, nil +} + +func (m *ServiceReference) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ServiceReference) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Scheme))) + i += copy(dAtA[i:], m.Scheme) + dAtA[i] = 0x12 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) + i += copy(dAtA[i:], m.Name) + dAtA[i] = 0x18 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.Port)) + dAtA[i] = 0x22 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Path))) + i += copy(dAtA[i:], m.Path) + dAtA[i] = 0x2a + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Query))) + i += copy(dAtA[i:], m.Query) + return i, nil +} + +func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return offset + 1 +} +func (m *AddKeyTransform) Size() (n int) { + var l int + _ = l + l = len(m.Key) + n += 1 + l + sovGenerated(uint64(l)) + if m.Value != nil { + l = len(m.Value) + n += 1 + l + sovGenerated(uint64(l)) + } + if m.StringValue != nil { + l = len(*m.StringValue) + n += 1 + l + sovGenerated(uint64(l)) + } + if m.JSONPathExpression != nil { + l = len(*m.JSONPathExpression) + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *AddKeysFromTransform) Size() (n int) { + var l int + _ = l + if m.SecretRef != nil { + l = m.SecretRef.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *AppBinding) Size() (n int) { + var l int + _ = l + l = m.ObjectMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Spec.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *AppBindingList) Size() (n int) { + var l int + _ = l + l = m.ListMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Items) > 0 { + for _, e := range m.Items { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *AppBindingSpec) Size() (n int) { + var l int + _ = l + l = len(m.Type) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Version) + n += 1 + l + sovGenerated(uint64(l)) + l = m.ClientConfig.Size() + n += 1 + l + sovGenerated(uint64(l)) + if m.Secret != nil { + l = m.Secret.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if len(m.SecretTransforms) > 0 { + for _, e := range m.SecretTransforms { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if m.Parameters != nil { + l = m.Parameters.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *AppReference) Size() (n int) { + var l int + _ = l + l = len(m.Namespace) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Name) + n += 1 + l + sovGenerated(uint64(l)) + if m.Parameters != nil { + l = m.Parameters.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *ClientConfig) Size() (n int) { + var l int + _ = l + if m.URL != nil { + l = len(*m.URL) + n += 1 + l + sovGenerated(uint64(l)) + } + if m.Service != nil { + l = m.Service.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + n += 2 + if m.CABundle != nil { + l = len(m.CABundle) + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *ObjectReference) Size() (n int) { + var l int + _ = l + l = len(m.Namespace) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Name) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *RemoveKeyTransform) Size() (n int) { + var l int + _ = l + l = len(m.Key) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *RenameKeyTransform) Size() (n int) { + var l int + _ = l + l = len(m.From) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.To) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *SecretTransform) Size() (n int) { + var l int + _ = l + if m.RenameKey != nil { + l = m.RenameKey.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.AddKey != nil { + l = m.AddKey.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.AddKeysFrom != nil { + l = m.AddKeysFrom.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.RemoveKey != nil { + l = m.RemoveKey.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *ServiceReference) Size() (n int) { + var l int + _ = l + l = len(m.Scheme) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Name) + n += 1 + l + sovGenerated(uint64(l)) + n += 1 + sovGenerated(uint64(m.Port)) + l = len(m.Path) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Query) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func sovGenerated(x uint64) (n int) { + for { + n++ + x >>= 7 + if x == 0 { + break + } + } + return n +} +func sozGenerated(x uint64) (n int) { + return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (this *AddKeyTransform) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&AddKeyTransform{`, + `Key:` + fmt.Sprintf("%v", this.Key) + `,`, + `Value:` + valueToStringGenerated(this.Value) + `,`, + `StringValue:` + valueToStringGenerated(this.StringValue) + `,`, + `JSONPathExpression:` + valueToStringGenerated(this.JSONPathExpression) + `,`, + `}`, + }, "") + return s +} +func (this *AddKeysFromTransform) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&AddKeysFromTransform{`, + `SecretRef:` + strings.Replace(fmt.Sprintf("%v", this.SecretRef), "ObjectReference", "ObjectReference", 1) + `,`, + `}`, + }, "") + return s +} +func (this *AppBinding) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&AppBinding{`, + `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, + `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "AppBindingSpec", "AppBindingSpec", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *AppBindingList) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&AppBindingList{`, + `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "AppBinding", "AppBinding", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *AppBindingSpec) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&AppBindingSpec{`, + `Type:` + fmt.Sprintf("%v", this.Type) + `,`, + `Version:` + fmt.Sprintf("%v", this.Version) + `,`, + `ClientConfig:` + strings.Replace(strings.Replace(this.ClientConfig.String(), "ClientConfig", "ClientConfig", 1), `&`, ``, 1) + `,`, + `Secret:` + strings.Replace(fmt.Sprintf("%v", this.Secret), "LocalObjectReference", "k8s_io_api_core_v1.LocalObjectReference", 1) + `,`, + `SecretTransforms:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.SecretTransforms), "SecretTransform", "SecretTransform", 1), `&`, ``, 1) + `,`, + `Parameters:` + strings.Replace(fmt.Sprintf("%v", this.Parameters), "RawExtension", "k8s_io_apimachinery_pkg_runtime.RawExtension", 1) + `,`, + `}`, + }, "") + return s +} +func (this *AppReference) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&AppReference{`, + `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `Parameters:` + strings.Replace(fmt.Sprintf("%v", this.Parameters), "RawExtension", "k8s_io_apimachinery_pkg_runtime.RawExtension", 1) + `,`, + `}`, + }, "") + return s +} +func (this *ClientConfig) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ClientConfig{`, + `URL:` + valueToStringGenerated(this.URL) + `,`, + `Service:` + strings.Replace(fmt.Sprintf("%v", this.Service), "ServiceReference", "ServiceReference", 1) + `,`, + `InsecureSkipTLSVerify:` + fmt.Sprintf("%v", this.InsecureSkipTLSVerify) + `,`, + `CABundle:` + valueToStringGenerated(this.CABundle) + `,`, + `}`, + }, "") + return s +} +func (this *ObjectReference) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ObjectReference{`, + `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `}`, + }, "") + return s +} +func (this *RemoveKeyTransform) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&RemoveKeyTransform{`, + `Key:` + fmt.Sprintf("%v", this.Key) + `,`, + `}`, + }, "") + return s +} +func (this *RenameKeyTransform) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&RenameKeyTransform{`, + `From:` + fmt.Sprintf("%v", this.From) + `,`, + `To:` + fmt.Sprintf("%v", this.To) + `,`, + `}`, + }, "") + return s +} +func (this *SecretTransform) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&SecretTransform{`, + `RenameKey:` + strings.Replace(fmt.Sprintf("%v", this.RenameKey), "RenameKeyTransform", "RenameKeyTransform", 1) + `,`, + `AddKey:` + strings.Replace(fmt.Sprintf("%v", this.AddKey), "AddKeyTransform", "AddKeyTransform", 1) + `,`, + `AddKeysFrom:` + strings.Replace(fmt.Sprintf("%v", this.AddKeysFrom), "AddKeysFromTransform", "AddKeysFromTransform", 1) + `,`, + `RemoveKey:` + strings.Replace(fmt.Sprintf("%v", this.RemoveKey), "RemoveKeyTransform", "RemoveKeyTransform", 1) + `,`, + `}`, + }, "") + return s +} +func (this *ServiceReference) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ServiceReference{`, + `Scheme:` + fmt.Sprintf("%v", this.Scheme) + `,`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `Port:` + fmt.Sprintf("%v", this.Port) + `,`, + `Path:` + fmt.Sprintf("%v", this.Path) + `,`, + `Query:` + fmt.Sprintf("%v", this.Query) + `,`, + `}`, + }, "") + return s +} +func valueToStringGenerated(v interface{}) string { + rv := reflect.ValueOf(v) + if rv.IsNil() { + return "nil" + } + pv := reflect.Indirect(rv).Interface() + return fmt.Sprintf("*%v", pv) +} +func (m *AddKeyTransform) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: AddKeyTransform: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AddKeyTransform: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Key = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + byteLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Value = append(m.Value[:0], dAtA[iNdEx:postIndex]...) + if m.Value == nil { + m.Value = []byte{} + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StringValue", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.StringValue = &s + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field JSONPathExpression", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.JSONPathExpression = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AddKeysFromTransform) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: AddKeysFromTransform: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AddKeysFromTransform: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SecretRef", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SecretRef == nil { + m.SecretRef = &ObjectReference{} + } + if err := m.SecretRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AppBinding) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: AppBinding: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AppBinding: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AppBindingList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: AppBindingList: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AppBindingList: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Items = append(m.Items, AppBinding{}) + if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AppBindingSpec) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: AppBindingSpec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AppBindingSpec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Type = AppType(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Version = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClientConfig", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ClientConfig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Secret", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Secret == nil { + m.Secret = &k8s_io_api_core_v1.LocalObjectReference{} + } + if err := m.Secret.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SecretTransforms", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SecretTransforms = append(m.SecretTransforms, SecretTransform{}) + if err := m.SecretTransforms[len(m.SecretTransforms)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Parameters", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Parameters == nil { + m.Parameters = &k8s_io_apimachinery_pkg_runtime.RawExtension{} + } + if err := m.Parameters.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AppReference) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: AppReference: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AppReference: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Namespace = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Parameters", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Parameters == nil { + m.Parameters = &k8s_io_apimachinery_pkg_runtime.RawExtension{} + } + if err := m.Parameters.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ClientConfig) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ClientConfig: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ClientConfig: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field URL", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.URL = &s + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Service", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Service == nil { + m.Service = &ServiceReference{} + } + if err := m.Service.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InsecureSkipTLSVerify", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.InsecureSkipTLSVerify = bool(v != 0) + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CABundle", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + byteLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CABundle = append(m.CABundle[:0], dAtA[iNdEx:postIndex]...) + if m.CABundle == nil { + m.CABundle = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ObjectReference) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ObjectReference: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ObjectReference: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Namespace = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RemoveKeyTransform) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: RemoveKeyTransform: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RemoveKeyTransform: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Key = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RenameKeyTransform) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: RenameKeyTransform: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RenameKeyTransform: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.From = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field To", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.To = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SecretTransform) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SecretTransform: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SecretTransform: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RenameKey", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.RenameKey == nil { + m.RenameKey = &RenameKeyTransform{} + } + if err := m.RenameKey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AddKey", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.AddKey == nil { + m.AddKey = &AddKeyTransform{} + } + if err := m.AddKey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AddKeysFrom", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.AddKeysFrom == nil { + m.AddKeysFrom = &AddKeysFromTransform{} + } + if err := m.AddKeysFrom.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RemoveKey", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.RemoveKey == nil { + m.RemoveKey = &RemoveKeyTransform{} + } + if err := m.RemoveKey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ServiceReference) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ServiceReference: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ServiceReference: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Scheme", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Scheme = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Port", wireType) + } + m.Port = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Port |= (int32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Path = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Query", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Query = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipGenerated(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowGenerated + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowGenerated + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + return iNdEx, nil + case 1: + iNdEx += 8 + return iNdEx, nil + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowGenerated + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + iNdEx += length + if length < 0 { + return 0, ErrInvalidLengthGenerated + } + return iNdEx, nil + case 3: + for { + var innerWire uint64 + var start int = iNdEx + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowGenerated + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + innerWire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + innerWireType := int(innerWire & 0x7) + if innerWireType == 4 { + break + } + next, err := skipGenerated(dAtA[start:]) + if err != nil { + return 0, err + } + iNdEx = start + next + } + return iNdEx, nil + case 4: + return iNdEx, nil + case 5: + iNdEx += 4 + return iNdEx, nil + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + } + panic("unreachable") +} + +var ( + ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") +) + +func init() { + proto.RegisterFile("kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1/generated.proto", fileDescriptorGenerated) +} + +var fileDescriptorGenerated = []byte{ + // 1144 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0x4d, 0x6f, 0x1b, 0x45, + 0x18, 0xce, 0xfa, 0x2b, 0xf1, 0xd8, 0x6d, 0xc2, 0xa8, 0x05, 0x13, 0xa9, 0xb6, 0xb5, 0x48, 0x28, + 0x08, 0x75, 0x4d, 0x03, 0xaa, 0xb8, 0x66, 0x43, 0x03, 0x6d, 0x43, 0x1b, 0xc6, 0x21, 0x07, 0x04, + 0x82, 0xc9, 0xfa, 0xb5, 0xbd, 0xb5, 0x77, 0x67, 0x99, 0x19, 0xbb, 0x31, 0x07, 0xe0, 0x07, 0x80, + 0xc4, 0x95, 0x1f, 0xc0, 0xff, 0xe0, 0x82, 0x94, 0x03, 0x87, 0xde, 0xc8, 0xc9, 0x22, 0xe6, 0x17, + 0x70, 0xe5, 0x84, 0x66, 0x76, 0xd6, 0x6b, 0x3b, 0xa9, 0x28, 0x0e, 0x5c, 0x2c, 0xef, 0xfb, 0xf1, + 0x3c, 0xf3, 0x7e, 0xce, 0xa0, 0xbd, 0x5e, 0xc0, 0x5a, 0x83, 0x3e, 0x08, 0xe7, 0x64, 0xf4, 0x55, + 0xc3, 0x1b, 0x08, 0xc9, 0x82, 0xdb, 0x1c, 0x04, 0x1b, 0x70, 0x0f, 0x44, 0x83, 0x46, 0xbe, 0xfa, + 0x89, 0x3c, 0x2a, 0x69, 0x9f, 0x75, 0x1a, 0xc3, 0x3b, 0xb4, 0x1f, 0x75, 0xe9, 0x9d, 0x46, 0x07, + 0x42, 0xe0, 0x54, 0x42, 0xcb, 0x89, 0x38, 0x93, 0x0c, 0xdf, 0x9d, 0xc5, 0x71, 0x62, 0x9c, 0xcf, + 0xa7, 0x38, 0x8e, 0xc2, 0x71, 0x52, 0x1c, 0x27, 0xc1, 0xd9, 0xbc, 0xdd, 0xf1, 0x65, 0x77, 0x70, + 0xec, 0x78, 0x2c, 0x68, 0x74, 0x58, 0x87, 0x35, 0x34, 0xdc, 0xf1, 0xa0, 0xad, 0xbf, 0xf4, 0x87, + 0xfe, 0x17, 0xd3, 0x6c, 0xda, 0xbd, 0x77, 0x85, 0xe3, 0x33, 0x75, 0xae, 0x86, 0xc7, 0x38, 0x34, + 0x86, 0x17, 0x8e, 0xb2, 0xf9, 0x4e, 0x6a, 0x13, 0x50, 0xaf, 0xeb, 0x87, 0xc0, 0x47, 0x8d, 0xa8, + 0xd7, 0x89, 0x83, 0x09, 0x40, 0xd2, 0xcb, 0xbc, 0x1a, 0xcf, 0xf3, 0xe2, 0x83, 0x50, 0xfa, 0x01, + 0x5c, 0x70, 0xb8, 0xfb, 0x4f, 0x0e, 0xc2, 0xeb, 0x42, 0x40, 0x17, 0xfd, 0xec, 0x5f, 0x2d, 0xb4, + 0xbe, 0xd3, 0x6a, 0x3d, 0x84, 0xd1, 0x21, 0xa7, 0xa1, 0x68, 0x33, 0x1e, 0xe0, 0x5b, 0x28, 0xdb, + 0x83, 0x51, 0xc5, 0xaa, 0x5b, 0x5b, 0x45, 0xb7, 0x74, 0x3a, 0xae, 0xad, 0x4c, 0xc6, 0xb5, 0xec, + 0x43, 0x18, 0x11, 0x25, 0xc7, 0x35, 0x94, 0x1f, 0xd2, 0xfe, 0x00, 0x2a, 0x99, 0xba, 0xb5, 0x55, + 0x76, 0x8b, 0x93, 0x71, 0x2d, 0x7f, 0xa4, 0x04, 0x24, 0x96, 0xe3, 0x3b, 0xa8, 0x24, 0x24, 0xf7, + 0xc3, 0x8e, 0x96, 0x56, 0xb2, 0x1a, 0x67, 0x7d, 0x32, 0xae, 0x95, 0x9a, 0xa9, 0x98, 0xcc, 0xda, + 0xe0, 0x3d, 0x84, 0x9f, 0x08, 0x16, 0x1e, 0x50, 0xd9, 0xbd, 0x77, 0x12, 0x71, 0x10, 0xc2, 0x67, + 0x61, 0x25, 0xa7, 0x3d, 0x5f, 0x9e, 0x8c, 0x6b, 0xf8, 0x41, 0xf3, 0xf1, 0xa3, 0x79, 0x2d, 0xb9, + 0xc4, 0xc3, 0xfe, 0xce, 0x42, 0x37, 0xe2, 0x70, 0xc4, 0x1e, 0x67, 0x41, 0x1a, 0x93, 0x44, 0x45, + 0x01, 0x1e, 0x07, 0x49, 0xa0, 0xad, 0x23, 0x2b, 0x6d, 0xbf, 0xef, 0x2c, 0xd7, 0x25, 0xce, 0xe3, + 0xe3, 0x27, 0xe0, 0x29, 0x20, 0xe0, 0x10, 0x7a, 0xe0, 0x5e, 0x9b, 0x8c, 0x6b, 0xc5, 0x66, 0x82, + 0x4e, 0x52, 0x22, 0xfb, 0xcc, 0x42, 0x68, 0x27, 0x8a, 0x5c, 0x3f, 0x6c, 0xf9, 0x61, 0x07, 0x7f, + 0x81, 0xd6, 0x54, 0xc1, 0x5b, 0x54, 0x52, 0x73, 0x86, 0xb7, 0x9c, 0xb8, 0x6e, 0xce, 0x6c, 0xdd, + 0x9c, 0xa8, 0xd7, 0x89, 0xd9, 0x95, 0xb5, 0x33, 0x4c, 0x18, 0x3f, 0x04, 0x49, 0x5d, 0x6c, 0xea, + 0x81, 0x52, 0x19, 0x99, 0xa2, 0xe2, 0x2e, 0xca, 0x89, 0x08, 0x3c, 0x5d, 0x9a, 0xd2, 0xf6, 0xde, + 0xb2, 0x11, 0xa6, 0x67, 0x6e, 0x46, 0xe0, 0xb9, 0x65, 0xc3, 0x99, 0x53, 0x5f, 0x44, 0x33, 0xd8, + 0xbf, 0x59, 0xe8, 0x7a, 0x6a, 0xb6, 0xef, 0x0b, 0x89, 0x3f, 0xbd, 0x10, 0x9e, 0xf3, 0x62, 0xe1, + 0x29, 0x6f, 0x1d, 0xdc, 0x86, 0x21, 0x5a, 0x4b, 0x24, 0x33, 0xa1, 0x75, 0x50, 0xde, 0x97, 0x10, + 0x88, 0x4a, 0xa6, 0x9e, 0xdd, 0x2a, 0x6d, 0xbb, 0x57, 0x8f, 0xcd, 0xbd, 0x66, 0xe8, 0xf2, 0xf7, + 0x15, 0x30, 0x89, 0xf1, 0xed, 0x9f, 0x72, 0xb3, 0x91, 0xa9, 0x90, 0xf1, 0x9b, 0x28, 0x27, 0x47, + 0x11, 0x98, 0x91, 0x78, 0x25, 0x49, 0xc7, 0xe1, 0x28, 0x82, 0xbf, 0xc6, 0xb5, 0xd5, 0x9d, 0x28, + 0x52, 0x7f, 0x89, 0x36, 0xc2, 0x6f, 0xa0, 0xd5, 0x21, 0x70, 0xdd, 0xc0, 0x99, 0xb8, 0xf5, 0x8d, + 0xfd, 0xea, 0x51, 0x2c, 0x26, 0x89, 0x1e, 0x7f, 0x8d, 0xca, 0x5e, 0xdf, 0x87, 0x50, 0xee, 0xb2, + 0xb0, 0xed, 0x77, 0xf4, 0xa8, 0x94, 0xb6, 0xdf, 0x5b, 0x36, 0xb4, 0xdd, 0x19, 0x2c, 0xf7, 0x86, + 0x61, 0x2d, 0xcf, 0x4a, 0xc9, 0x1c, 0x1f, 0xde, 0x47, 0x85, 0xb8, 0x59, 0xf5, 0xa8, 0x95, 0xb6, + 0xb7, 0x66, 0xea, 0xe5, 0xa8, 0x8d, 0xa6, 0xab, 0xc3, 0x3c, 0xda, 0x5f, 0xec, 0x79, 0x34, 0x19, + 0xd7, 0x0a, 0xa6, 0xe7, 0x0d, 0x06, 0xfe, 0xde, 0x42, 0x1b, 0xf1, 0xdf, 0xe9, 0xdc, 0x89, 0x4a, + 0x5e, 0x57, 0x6b, 0xe9, 0x59, 0x6b, 0xce, 0xe3, 0xb9, 0x15, 0x13, 0xd5, 0xc6, 0x82, 0x42, 0x90, + 0x0b, 0xd4, 0xf8, 0x33, 0x84, 0x22, 0xca, 0x69, 0x00, 0x12, 0xb8, 0xa8, 0x14, 0x74, 0x84, 0xb7, + 0x9f, 0xdb, 0x91, 0x66, 0x51, 0x3a, 0x84, 0x3e, 0xbd, 0x77, 0x22, 0x21, 0x54, 0x05, 0x72, 0xaf, + 0xab, 0x49, 0x3b, 0x98, 0x82, 0x90, 0x19, 0x40, 0xfb, 0x67, 0x0b, 0x95, 0x77, 0xa2, 0x68, 0x9a, + 0x13, 0xdc, 0x40, 0xc5, 0x90, 0x06, 0x20, 0x22, 0xea, 0x25, 0xad, 0xf2, 0x92, 0x39, 0x6e, 0xf1, + 0x51, 0xa2, 0x20, 0xa9, 0x0d, 0xae, 0xa3, 0x9c, 0xfa, 0x30, 0x6d, 0x32, 0x9d, 0x32, 0x65, 0x4b, + 0xb4, 0x66, 0x21, 0x84, 0xec, 0x7f, 0x1d, 0xc2, 0x8f, 0x19, 0x34, 0xd7, 0x1e, 0xf8, 0x55, 0x94, + 0x1d, 0xf0, 0xbe, 0x39, 0xfc, 0xaa, 0x5a, 0xfb, 0x1f, 0x93, 0x7d, 0xa2, 0x64, 0x98, 0xa1, 0x55, + 0x01, 0x7c, 0xe8, 0x7b, 0x60, 0xb6, 0xcb, 0x07, 0xcb, 0xd7, 0x54, 0xc3, 0xa4, 0xcd, 0x54, 0x52, + 0xc3, 0x91, 0x48, 0x13, 0x16, 0xdc, 0x44, 0x37, 0xfd, 0x50, 0x80, 0x37, 0xe0, 0xd0, 0xec, 0xf9, + 0xd1, 0xe1, 0x7e, 0xf3, 0x08, 0xb8, 0xdf, 0x1e, 0xe9, 0x34, 0xac, 0xb9, 0xb7, 0x4c, 0xba, 0x6e, + 0xde, 0xbf, 0xcc, 0x88, 0x5c, 0xee, 0x8b, 0xb7, 0xd0, 0x9a, 0x47, 0xdd, 0x41, 0xd8, 0xea, 0x83, + 0xee, 0xf9, 0xb2, 0x5b, 0x56, 0xfb, 0x66, 0x77, 0x27, 0x96, 0x91, 0xa9, 0xd6, 0x6e, 0xa1, 0xf5, + 0x85, 0xa6, 0xff, 0x1f, 0x0a, 0x6c, 0xbf, 0x8d, 0x30, 0x81, 0x80, 0x0d, 0xe1, 0x5f, 0xdc, 0xc0, + 0x36, 0x51, 0x4e, 0xca, 0x7d, 0xce, 0xa9, 0x8e, 0x72, 0x6d, 0xce, 0x02, 0xe3, 0x35, 0x25, 0x53, + 0xf7, 0x20, 0xd1, 0x1a, 0xbc, 0x89, 0x32, 0x92, 0x99, 0xc3, 0x20, 0xa3, 0xcf, 0x1c, 0x32, 0x92, + 0x91, 0xcc, 0xfe, 0x33, 0x8b, 0xd6, 0x17, 0x66, 0x0a, 0x3f, 0x45, 0x45, 0x9e, 0xf0, 0x98, 0x8d, + 0xfe, 0x60, 0xd9, 0xa2, 0x5f, 0x3c, 0x70, 0x7c, 0x6f, 0x4e, 0xe5, 0x24, 0xe5, 0xc2, 0x3d, 0x54, + 0xa0, 0xfa, 0x16, 0x37, 0xad, 0xb6, 0xf4, 0xfa, 0x58, 0x78, 0xda, 0xc4, 0x6b, 0x2b, 0x16, 0x12, + 0x43, 0x81, 0xbf, 0x41, 0x25, 0x9a, 0x3e, 0x19, 0xcc, 0x90, 0xed, 0x5f, 0x8d, 0x71, 0xfe, 0xf5, + 0x11, 0x3f, 0x7e, 0x66, 0x34, 0x64, 0x96, 0x31, 0x4e, 0xb3, 0xe9, 0x01, 0xb3, 0x88, 0xaf, 0x90, + 0xe6, 0xc5, 0x66, 0x4a, 0xd2, 0x6c, 0xe4, 0x24, 0xe5, 0xb2, 0x7f, 0xb1, 0xd0, 0xc6, 0xe2, 0x30, + 0xe2, 0xd7, 0x51, 0x41, 0xbf, 0x15, 0x93, 0x0e, 0xbf, 0x6e, 0x1a, 0xa5, 0xd0, 0xd4, 0x52, 0x62, + 0xb4, 0x2f, 0xb0, 0xbc, 0xea, 0x28, 0x17, 0x31, 0x2e, 0x75, 0x46, 0xf3, 0xa9, 0xc5, 0x01, 0xe3, + 0x92, 0x68, 0x8d, 0xb6, 0xa0, 0xb2, 0x6b, 0x1e, 0x7a, 0xa9, 0x05, 0x95, 0x5d, 0xa2, 0x35, 0xf8, + 0x35, 0x94, 0xff, 0x72, 0x00, 0x7c, 0x54, 0xc9, 0x6b, 0x93, 0xe9, 0x8d, 0xfd, 0x91, 0x12, 0x92, + 0x58, 0xe7, 0x3a, 0xa7, 0xe7, 0xd5, 0x95, 0x67, 0xe7, 0xd5, 0x95, 0xb3, 0xf3, 0xea, 0xca, 0xb7, + 0x93, 0xaa, 0x75, 0x3a, 0xa9, 0x5a, 0xcf, 0x26, 0x55, 0xeb, 0x6c, 0x52, 0xb5, 0x7e, 0x9f, 0x54, + 0xad, 0x1f, 0xfe, 0xa8, 0xae, 0x7c, 0xb2, 0x96, 0x24, 0xe9, 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, + 0xcc, 0xe1, 0x9a, 0xfd, 0x67, 0x0c, 0x00, 0x00, +} diff --git a/vendor/kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1/generated.proto b/vendor/kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1/generated.proto new file mode 100644 index 000000000..2e05918f6 --- /dev/null +++ b/vendor/kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1/generated.proto @@ -0,0 +1,270 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + + +// This file was autogenerated by go-to-protobuf. Do not edit it manually! + +syntax = 'proto2'; + +package kmodules.xyz.custom_resources.apis.appcatalog.v1alpha1; + +import "k8s.io/api/core/v1/generated.proto"; +import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; +import "k8s.io/apimachinery/pkg/runtime/generated.proto"; +import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; + +// Package-wide variables from generator "generated". +option go_package = "v1alpha1"; + +// AddKeyTransform specifies that Service Catalog should add an +// additional entry to the Secret associated with the ServiceBinding. +// For example, given the following AddKeyTransform: +// {"key": "CONNECTION_POOL_SIZE", "stringValue": "10"} +// the following entry will appear in the Secret: +// "CONNECTION_POOL_SIZE": "10" +// Note that this transform should only be used to add non-sensitive +// (non-secret) values. To add sensitive information, the +// AddKeysFromTransform should be used instead. +message AddKeyTransform { + // The name of the key to add + optional string key = 1; + + // The binary value (possibly non-string) to add to the Secret under the specified key. If both + // value and stringValue are specified, then value is ignored and stringValue is stored. + optional bytes value = 2; + + // The string (non-binary) value to add to the Secret under the specified key. + optional string stringValue = 3; + + // The JSONPath expression, the result of which will be added to the Secret under the specified key. + // For example, given the following credentials: + // { "foo": { "bar": "foobar" } } + // and the jsonPathExpression "{.foo.bar}", the value "foobar" will be + // stored in the credentials Secret under the specified key. + optional string jsonPathExpression = 4; +} + +// AddKeysFromTransform specifies that Service Catalog should merge +// an existing secret into the Secret associated with the ServiceBinding. +// For example, given the following AddKeysFromTransform: +// {"secretRef": {"namespace": "foo", "name": "bar"}} +// the entries of the Secret "bar" from Namespace "foo" will be merged into +// the credentials Secret. +message AddKeysFromTransform { + // The reference to the Secret that should be merged into the credentials Secret. + optional ObjectReference secretRef = 1; +} + +// +kubebuilder:object:root=true +// +kubebuilder:resource:path=appbindings,singular=appbinding,categories={catalog,appscode,all} +// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp" +message AppBinding { + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + + optional AppBindingSpec spec = 2; +} + +// AppBindingList is a list of Apps +message AppBindingList { + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + + // Items is a list of AppBinding CRD objects + repeated AppBinding items = 2; +} + +// AppBindingSpec is the spec for app +message AppBindingSpec { + // Type used to facilitate programmatic handling of application. + // +optional + optional string type = 1; + + // Version used to facilitate programmatic handling of application. + // +optional + optional string version = 2; + + // ClientConfig defines how to communicate with the app. + // Required + optional ClientConfig clientConfig = 3; + + // Secret is the name of the secret to create in the AppBinding's + // namespace that will hold the credentials associated with the AppBinding. + optional k8s.io.api.core.v1.LocalObjectReference secret = 4; + + // List of transformations that should be applied to the credentials + // associated with the ServiceBinding before they are inserted into the Secret. + repeated SecretTransform secretTransforms = 5; + + // Parameters is a set of the parameters to be used to connect to the + // app. The inline YAML/JSON payload to be translated into equivalent + // JSON object. + // + // The Parameters field is NOT secret or secured in any way and should + // NEVER be used to hold sensitive information. To set parameters that + // contain secret information, you should ALWAYS store that information + // in a Secret. + // + // +optional + optional k8s.io.apimachinery.pkg.runtime.RawExtension parameters = 6; +} + +message AppReference { + // `namespace` is the namespace of the app. + // Required + optional string namespace = 1; + + // `name` is the name of the app. + // Required + optional string name = 2; + + // Parameters is a set of the parameters to be used to override default + // parameters. The inline YAML/JSON payload to be translated into equivalent + // JSON object. + // + // The Parameters field is NOT secret or secured in any way and should + // NEVER be used to hold sensitive information. + // + // +optional + optional k8s.io.apimachinery.pkg.runtime.RawExtension parameters = 3; +} + +// ClientConfig contains the information to make a connection with an app +message ClientConfig { + // `url` gives the location of the app, in standard URL form + // (`[scheme://]host:port/path`). Exactly one of `url` or `service` + // must be specified. + // + // The `host` should not refer to a service running in the cluster; use + // the `service` field instead. The host might be resolved via external + // DNS in some apiservers (e.g., `kube-apiserver` cannot resolve + // in-cluster DNS as that would be a layering violation). `host` may + // also be an IP address. + // + // A path is optional, and if present may be any string permissible in + // a URL. You may use the path to pass an arbitrary string to the + // app, for example, a cluster identifier. + // + // Attempting to use a user or basic auth e.g. "user:password@" is not + // allowed. Fragments ("#...") and query parameters ("?...") are not + // allowed, either. + // + // +optional + optional string url = 1; + + // `service` is a reference to the service for this app. Either + // `service` or `url` must be specified. + // + // If the webhook is running within the cluster, then you should use `service`. + // + // +optional + optional ServiceReference service = 2; + + // InsecureSkipTLSVerify disables TLS certificate verification when communicating with this app. + // This is strongly discouraged. You should use the CABundle instead. + optional bool insecureSkipTLSVerify = 3; + + // CABundle is a PEM encoded CA bundle which will be used to validate the serving certificate of this app. + // +optional + optional bytes caBundle = 4; +} + +// ObjectReference contains enough information to let you locate the +// referenced object. +message ObjectReference { + // Namespace of the referent. + optional string namespace = 1; + + // Name of the referent. + optional string name = 2; +} + +// RemoveKeyTransform specifies that one of the credentials keys returned +// from the broker should not be included in the credentials Secret. +message RemoveKeyTransform { + // The key to remove from the Secret + optional string key = 1; +} + +// RenameKeyTransform specifies that one of the credentials keys returned +// from the broker should be renamed and stored under a different key +// in the Secret. +// For example, given the following credentials entry: +// "USERNAME": "johndoe" +// and the following RenameKeyTransform: +// {"from": "USERNAME", "to": "DB_USER"} +// the following entry will appear in the Secret: +// "DB_USER": "johndoe" +message RenameKeyTransform { + // The name of the key to rename + optional string from = 1; + + // The new name for the key + optional string to = 2; +} + +// SecretTransform is a single transformation that is applied to the +// credentials returned from the broker before they are inserted into +// the Secret associated with the ServiceBinding. +// Because different brokers providing the same type of service may +// each return a different credentials structure, users can specify +// the transformations that should be applied to the Secret to adapt +// its entries to whatever the service consumer expects. +// For example, the credentials returned by the broker may include the +// key "USERNAME", but the consumer requires the username to be +// exposed under the key "DB_USER" instead. To have the Service +// Catalog transform the Secret, the following SecretTransform must +// be specified in ServiceBinding.spec.secretTransform: +// - {"renameKey": {"from": "USERNAME", "to": "DB_USER"}} +// Only one of the SecretTransform's members may be specified. +message SecretTransform { + // RenameKey represents a transform that renames a credentials Secret entry's key + optional RenameKeyTransform renameKey = 1; + + // AddKey represents a transform that adds an additional key to the credentials Secret + optional AddKeyTransform addKey = 2; + + // AddKeysFrom represents a transform that merges all the entries of an existing Secret + // into the credentials Secret + optional AddKeysFromTransform addKeysFrom = 3; + + // RemoveKey represents a transform that removes a credentials Secret entry + optional RemoveKeyTransform removeKey = 4; +} + +// ServiceReference holds a reference to Service.legacy.k8s.io +message ServiceReference { + // Specifies which scheme to use, for example: http, https + // If specified, then it will applied as prefix in this format: scheme:// + // If not specified, then nothing will be prefixed + optional string scheme = 1; + + // `name` is the name of the service. + // Required + optional string name = 2; + + // The port that will be exposed by this app. + optional int32 port = 3; + + // `path` is an optional URL path which will be sent in any request to + // this service. + // +optional + optional string path = 4; + + // `query` is optional encoded query string, without '?' which will be + // sent in any request to this service. + // +optional + optional string query = 5; +} + diff --git a/vendor/kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1/openapi_generated.go b/vendor/kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1/openapi_generated.go index b6537bc82..ad0f276fc 100644 --- a/vendor/kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1/openapi_generated.go +++ b/vendor/kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1/openapi_generated.go @@ -1,7 +1,7 @@ // +build !ignore_autogenerated /* -Copyright 2019 AppsCode Inc. +Copyright The Kmodules Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -13814,8 +13814,7 @@ func schema_custom_resources_apis_appcatalog_v1alpha1_AppBinding(ref common.Refe return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "AppBinding defines a generic user application.", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ diff --git a/vendor/kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1/register.go b/vendor/kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1/register.go index 8057c694e..c6fb4546b 100644 --- a/vendor/kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1/register.go +++ b/vendor/kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1/register.go @@ -1,10 +1,27 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package v1alpha1 import ( + "kmodules.xyz/custom-resources/apis/appcatalog" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/schema" - "kmodules.xyz/custom-resources/apis/appcatalog" ) var SchemeGroupVersion = schema.GroupVersion{Group: appcatalog.GroupName, Version: "v1alpha1"} diff --git a/vendor/kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1/zz_generated.deepcopy.go b/vendor/kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1/zz_generated.deepcopy.go index b206e3176..3d0b810af 100644 --- a/vendor/kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1/zz_generated.deepcopy.go +++ b/vendor/kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1/zz_generated.deepcopy.go @@ -1,7 +1,7 @@ // +build !ignore_autogenerated /* -Copyright 2019 AppsCode Inc. +Copyright The Kmodules Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/vendor/kmodules.xyz/custom-resources/client/clientset/versioned/clientset.go b/vendor/kmodules.xyz/custom-resources/client/clientset/versioned/clientset.go index da658ba4d..f305a45c8 100644 --- a/vendor/kmodules.xyz/custom-resources/client/clientset/versioned/clientset.go +++ b/vendor/kmodules.xyz/custom-resources/client/clientset/versioned/clientset.go @@ -1,5 +1,5 @@ /* -Copyright 2019 AppsCode Inc. +Copyright The Kmodules Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -19,10 +19,11 @@ limitations under the License. package versioned import ( + appcatalogv1alpha1 "kmodules.xyz/custom-resources/client/clientset/versioned/typed/appcatalog/v1alpha1" + discovery "k8s.io/client-go/discovery" rest "k8s.io/client-go/rest" flowcontrol "k8s.io/client-go/util/flowcontrol" - appcatalogv1alpha1 "kmodules.xyz/custom-resources/client/clientset/versioned/typed/appcatalog/v1alpha1" ) type Interface interface { diff --git a/vendor/kmodules.xyz/custom-resources/client/clientset/versioned/doc.go b/vendor/kmodules.xyz/custom-resources/client/clientset/versioned/doc.go index 355b9c965..4ff4c96b4 100644 --- a/vendor/kmodules.xyz/custom-resources/client/clientset/versioned/doc.go +++ b/vendor/kmodules.xyz/custom-resources/client/clientset/versioned/doc.go @@ -1,5 +1,5 @@ /* -Copyright 2019 AppsCode Inc. +Copyright The Kmodules Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/vendor/kmodules.xyz/custom-resources/client/clientset/versioned/scheme/doc.go b/vendor/kmodules.xyz/custom-resources/client/clientset/versioned/scheme/doc.go index 255cfe19d..46bf2660e 100644 --- a/vendor/kmodules.xyz/custom-resources/client/clientset/versioned/scheme/doc.go +++ b/vendor/kmodules.xyz/custom-resources/client/clientset/versioned/scheme/doc.go @@ -1,5 +1,5 @@ /* -Copyright 2019 AppsCode Inc. +Copyright The Kmodules Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/vendor/kmodules.xyz/custom-resources/client/clientset/versioned/scheme/register.go b/vendor/kmodules.xyz/custom-resources/client/clientset/versioned/scheme/register.go index c16783ef8..dc0628c88 100644 --- a/vendor/kmodules.xyz/custom-resources/client/clientset/versioned/scheme/register.go +++ b/vendor/kmodules.xyz/custom-resources/client/clientset/versioned/scheme/register.go @@ -1,5 +1,5 @@ /* -Copyright 2019 AppsCode Inc. +Copyright The Kmodules Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -19,12 +19,13 @@ limitations under the License. package scheme import ( + appcatalogv1alpha1 "kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1" + v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" schema "k8s.io/apimachinery/pkg/runtime/schema" serializer "k8s.io/apimachinery/pkg/runtime/serializer" utilruntime "k8s.io/apimachinery/pkg/util/runtime" - appcatalogv1alpha1 "kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1" ) var Scheme = runtime.NewScheme() diff --git a/vendor/kmodules.xyz/custom-resources/client/clientset/versioned/typed/appcatalog/v1alpha1/appbinding.go b/vendor/kmodules.xyz/custom-resources/client/clientset/versioned/typed/appcatalog/v1alpha1/appbinding.go index 8eead7cd8..33568311c 100644 --- a/vendor/kmodules.xyz/custom-resources/client/clientset/versioned/typed/appcatalog/v1alpha1/appbinding.go +++ b/vendor/kmodules.xyz/custom-resources/client/clientset/versioned/typed/appcatalog/v1alpha1/appbinding.go @@ -1,5 +1,5 @@ /* -Copyright 2019 AppsCode Inc. +Copyright The Kmodules Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -21,12 +21,13 @@ package v1alpha1 import ( "time" + v1alpha1 "kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1" + scheme "kmodules.xyz/custom-resources/client/clientset/versioned/scheme" + v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" rest "k8s.io/client-go/rest" - v1alpha1 "kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1" - scheme "kmodules.xyz/custom-resources/client/clientset/versioned/scheme" ) // AppBindingsGetter has a method to return a AppBindingInterface. diff --git a/vendor/kmodules.xyz/custom-resources/client/clientset/versioned/typed/appcatalog/v1alpha1/appcatalog_client.go b/vendor/kmodules.xyz/custom-resources/client/clientset/versioned/typed/appcatalog/v1alpha1/appcatalog_client.go index 9d2d7b1c7..252f7ad8d 100644 --- a/vendor/kmodules.xyz/custom-resources/client/clientset/versioned/typed/appcatalog/v1alpha1/appcatalog_client.go +++ b/vendor/kmodules.xyz/custom-resources/client/clientset/versioned/typed/appcatalog/v1alpha1/appcatalog_client.go @@ -1,5 +1,5 @@ /* -Copyright 2019 AppsCode Inc. +Copyright The Kmodules Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -19,10 +19,11 @@ limitations under the License. package v1alpha1 import ( - serializer "k8s.io/apimachinery/pkg/runtime/serializer" - rest "k8s.io/client-go/rest" v1alpha1 "kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1" "kmodules.xyz/custom-resources/client/clientset/versioned/scheme" + + serializer "k8s.io/apimachinery/pkg/runtime/serializer" + rest "k8s.io/client-go/rest" ) type AppcatalogV1alpha1Interface interface { diff --git a/vendor/kmodules.xyz/custom-resources/client/clientset/versioned/typed/appcatalog/v1alpha1/doc.go b/vendor/kmodules.xyz/custom-resources/client/clientset/versioned/typed/appcatalog/v1alpha1/doc.go index 1675fc368..5d9132eff 100644 --- a/vendor/kmodules.xyz/custom-resources/client/clientset/versioned/typed/appcatalog/v1alpha1/doc.go +++ b/vendor/kmodules.xyz/custom-resources/client/clientset/versioned/typed/appcatalog/v1alpha1/doc.go @@ -1,5 +1,5 @@ /* -Copyright 2019 AppsCode Inc. +Copyright The Kmodules Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/vendor/kmodules.xyz/custom-resources/client/clientset/versioned/typed/appcatalog/v1alpha1/generated_expansion.go b/vendor/kmodules.xyz/custom-resources/client/clientset/versioned/typed/appcatalog/v1alpha1/generated_expansion.go index 0a1a91ea9..b358f332b 100644 --- a/vendor/kmodules.xyz/custom-resources/client/clientset/versioned/typed/appcatalog/v1alpha1/generated_expansion.go +++ b/vendor/kmodules.xyz/custom-resources/client/clientset/versioned/typed/appcatalog/v1alpha1/generated_expansion.go @@ -1,5 +1,5 @@ /* -Copyright 2019 AppsCode Inc. +Copyright The Kmodules Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/vendor/kmodules.xyz/custom-resources/client/informers/externalversions/appcatalog/interface.go b/vendor/kmodules.xyz/custom-resources/client/informers/externalversions/appcatalog/interface.go index 4f6807dfe..071cec234 100644 --- a/vendor/kmodules.xyz/custom-resources/client/informers/externalversions/appcatalog/interface.go +++ b/vendor/kmodules.xyz/custom-resources/client/informers/externalversions/appcatalog/interface.go @@ -1,5 +1,5 @@ /* -Copyright 2019 AppsCode Inc. +Copyright The Kmodules Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/vendor/kmodules.xyz/custom-resources/client/informers/externalversions/appcatalog/v1alpha1/appbinding.go b/vendor/kmodules.xyz/custom-resources/client/informers/externalversions/appcatalog/v1alpha1/appbinding.go index cc99c5e38..747603bcc 100644 --- a/vendor/kmodules.xyz/custom-resources/client/informers/externalversions/appcatalog/v1alpha1/appbinding.go +++ b/vendor/kmodules.xyz/custom-resources/client/informers/externalversions/appcatalog/v1alpha1/appbinding.go @@ -1,5 +1,5 @@ /* -Copyright 2019 AppsCode Inc. +Copyright The Kmodules Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -21,14 +21,15 @@ package v1alpha1 import ( time "time" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - runtime "k8s.io/apimachinery/pkg/runtime" - watch "k8s.io/apimachinery/pkg/watch" - cache "k8s.io/client-go/tools/cache" appcatalogv1alpha1 "kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1" versioned "kmodules.xyz/custom-resources/client/clientset/versioned" internalinterfaces "kmodules.xyz/custom-resources/client/informers/externalversions/internalinterfaces" v1alpha1 "kmodules.xyz/custom-resources/client/listers/appcatalog/v1alpha1" + + v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + runtime "k8s.io/apimachinery/pkg/runtime" + watch "k8s.io/apimachinery/pkg/watch" + cache "k8s.io/client-go/tools/cache" ) // AppBindingInformer provides access to a shared informer and lister for diff --git a/vendor/kmodules.xyz/custom-resources/client/informers/externalversions/appcatalog/v1alpha1/interface.go b/vendor/kmodules.xyz/custom-resources/client/informers/externalversions/appcatalog/v1alpha1/interface.go index ca906e269..63aa65797 100644 --- a/vendor/kmodules.xyz/custom-resources/client/informers/externalversions/appcatalog/v1alpha1/interface.go +++ b/vendor/kmodules.xyz/custom-resources/client/informers/externalversions/appcatalog/v1alpha1/interface.go @@ -1,5 +1,5 @@ /* -Copyright 2019 AppsCode Inc. +Copyright The Kmodules Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/vendor/kmodules.xyz/custom-resources/client/informers/externalversions/factory.go b/vendor/kmodules.xyz/custom-resources/client/informers/externalversions/factory.go index 28cc4bc87..12985dbb5 100644 --- a/vendor/kmodules.xyz/custom-resources/client/informers/externalversions/factory.go +++ b/vendor/kmodules.xyz/custom-resources/client/informers/externalversions/factory.go @@ -1,5 +1,5 @@ /* -Copyright 2019 AppsCode Inc. +Copyright The Kmodules Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -23,13 +23,14 @@ import ( sync "sync" time "time" + versioned "kmodules.xyz/custom-resources/client/clientset/versioned" + appcatalog "kmodules.xyz/custom-resources/client/informers/externalversions/appcatalog" + internalinterfaces "kmodules.xyz/custom-resources/client/informers/externalversions/internalinterfaces" + v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" schema "k8s.io/apimachinery/pkg/runtime/schema" cache "k8s.io/client-go/tools/cache" - versioned "kmodules.xyz/custom-resources/client/clientset/versioned" - appcatalog "kmodules.xyz/custom-resources/client/informers/externalversions/appcatalog" - internalinterfaces "kmodules.xyz/custom-resources/client/informers/externalversions/internalinterfaces" ) // SharedInformerOption defines the functional option type for SharedInformerFactory. diff --git a/vendor/kmodules.xyz/custom-resources/client/informers/externalversions/generic.go b/vendor/kmodules.xyz/custom-resources/client/informers/externalversions/generic.go index 74fa1fdd9..d1b1ae1bd 100644 --- a/vendor/kmodules.xyz/custom-resources/client/informers/externalversions/generic.go +++ b/vendor/kmodules.xyz/custom-resources/client/informers/externalversions/generic.go @@ -1,5 +1,5 @@ /* -Copyright 2019 AppsCode Inc. +Copyright The Kmodules Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -21,9 +21,10 @@ package externalversions import ( "fmt" + v1alpha1 "kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1" + schema "k8s.io/apimachinery/pkg/runtime/schema" cache "k8s.io/client-go/tools/cache" - v1alpha1 "kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1" ) // GenericInformer is type of SharedIndexInformer which will locate and delegate to other diff --git a/vendor/kmodules.xyz/custom-resources/client/informers/externalversions/internalinterfaces/factory_interfaces.go b/vendor/kmodules.xyz/custom-resources/client/informers/externalversions/internalinterfaces/factory_interfaces.go index cff035911..0e2fbb41e 100644 --- a/vendor/kmodules.xyz/custom-resources/client/informers/externalversions/internalinterfaces/factory_interfaces.go +++ b/vendor/kmodules.xyz/custom-resources/client/informers/externalversions/internalinterfaces/factory_interfaces.go @@ -1,5 +1,5 @@ /* -Copyright 2019 AppsCode Inc. +Copyright The Kmodules Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -21,10 +21,11 @@ package internalinterfaces import ( time "time" + versioned "kmodules.xyz/custom-resources/client/clientset/versioned" + v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" cache "k8s.io/client-go/tools/cache" - versioned "kmodules.xyz/custom-resources/client/clientset/versioned" ) // NewInformerFunc takes versioned.Interface and time.Duration to return a SharedIndexInformer. diff --git a/vendor/kmodules.xyz/custom-resources/client/listers/appcatalog/v1alpha1/appbinding.go b/vendor/kmodules.xyz/custom-resources/client/listers/appcatalog/v1alpha1/appbinding.go index 403cfb31a..41d97f4c8 100644 --- a/vendor/kmodules.xyz/custom-resources/client/listers/appcatalog/v1alpha1/appbinding.go +++ b/vendor/kmodules.xyz/custom-resources/client/listers/appcatalog/v1alpha1/appbinding.go @@ -1,5 +1,5 @@ /* -Copyright 2019 AppsCode Inc. +Copyright The Kmodules Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -19,10 +19,11 @@ limitations under the License. package v1alpha1 import ( + v1alpha1 "kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1" + "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" - v1alpha1 "kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1" ) // AppBindingLister helps list AppBindings. diff --git a/vendor/kmodules.xyz/custom-resources/client/listers/appcatalog/v1alpha1/expansion_generated.go b/vendor/kmodules.xyz/custom-resources/client/listers/appcatalog/v1alpha1/expansion_generated.go index efabc74c2..c0ffc2270 100644 --- a/vendor/kmodules.xyz/custom-resources/client/listers/appcatalog/v1alpha1/expansion_generated.go +++ b/vendor/kmodules.xyz/custom-resources/client/listers/appcatalog/v1alpha1/expansion_generated.go @@ -1,5 +1,5 @@ /* -Copyright 2019 AppsCode Inc. +Copyright The Kmodules Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/vendor/kmodules.xyz/objectstore-api/api/v1/doc.go b/vendor/kmodules.xyz/objectstore-api/api/v1/doc.go index 0417dcee5..b9d0b3f4a 100644 --- a/vendor/kmodules.xyz/objectstore-api/api/v1/doc.go +++ b/vendor/kmodules.xyz/objectstore-api/api/v1/doc.go @@ -1,3 +1,18 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ // +k8s:deepcopy-gen=package // +k8s:openapi-gen=true package v1 // import "kmodules.xyz/objectstore-api/api/v1" diff --git a/vendor/kmodules.xyz/objectstore-api/api/v1/generated.pb.go b/vendor/kmodules.xyz/objectstore-api/api/v1/generated.pb.go new file mode 100644 index 000000000..18c9692e3 --- /dev/null +++ b/vendor/kmodules.xyz/objectstore-api/api/v1/generated.pb.go @@ -0,0 +1,1976 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: kmodules.xyz/objectstore-api/api/v1/generated.proto + +/* + Package v1 is a generated protocol buffer package. + + It is generated from these files: + kmodules.xyz/objectstore-api/api/v1/generated.proto + + It has these top-level messages: + AzureSpec + B2Spec + Backend + GCSSpec + LocalSpec + RestServerSpec + S3Spec + SwiftSpec +*/ +package v1 + +import ( + fmt "fmt" + io "io" + math "math" + reflect "reflect" + strings "strings" + + proto "github.com/gogo/protobuf/proto" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package + +func (m *AzureSpec) Reset() { *m = AzureSpec{} } +func (*AzureSpec) ProtoMessage() {} +func (*AzureSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{0} } + +func (m *B2Spec) Reset() { *m = B2Spec{} } +func (*B2Spec) ProtoMessage() {} +func (*B2Spec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{1} } + +func (m *Backend) Reset() { *m = Backend{} } +func (*Backend) ProtoMessage() {} +func (*Backend) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{2} } + +func (m *GCSSpec) Reset() { *m = GCSSpec{} } +func (*GCSSpec) ProtoMessage() {} +func (*GCSSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{3} } + +func (m *LocalSpec) Reset() { *m = LocalSpec{} } +func (*LocalSpec) ProtoMessage() {} +func (*LocalSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{4} } + +func (m *RestServerSpec) Reset() { *m = RestServerSpec{} } +func (*RestServerSpec) ProtoMessage() {} +func (*RestServerSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{5} } + +func (m *S3Spec) Reset() { *m = S3Spec{} } +func (*S3Spec) ProtoMessage() {} +func (*S3Spec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{6} } + +func (m *SwiftSpec) Reset() { *m = SwiftSpec{} } +func (*SwiftSpec) ProtoMessage() {} +func (*SwiftSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{7} } + +func init() { + proto.RegisterType((*AzureSpec)(nil), "kmodules.xyz.objectstore_api.api.v1.AzureSpec") + proto.RegisterType((*B2Spec)(nil), "kmodules.xyz.objectstore_api.api.v1.B2Spec") + proto.RegisterType((*Backend)(nil), "kmodules.xyz.objectstore_api.api.v1.Backend") + proto.RegisterType((*GCSSpec)(nil), "kmodules.xyz.objectstore_api.api.v1.GCSSpec") + proto.RegisterType((*LocalSpec)(nil), "kmodules.xyz.objectstore_api.api.v1.LocalSpec") + proto.RegisterType((*RestServerSpec)(nil), "kmodules.xyz.objectstore_api.api.v1.RestServerSpec") + proto.RegisterType((*S3Spec)(nil), "kmodules.xyz.objectstore_api.api.v1.S3Spec") + proto.RegisterType((*SwiftSpec)(nil), "kmodules.xyz.objectstore_api.api.v1.SwiftSpec") +} +func (m *AzureSpec) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *AzureSpec) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Container))) + i += copy(dAtA[i:], m.Container) + dAtA[i] = 0x12 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Prefix))) + i += copy(dAtA[i:], m.Prefix) + dAtA[i] = 0x18 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.MaxConnections)) + return i, nil +} + +func (m *B2Spec) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *B2Spec) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Bucket))) + i += copy(dAtA[i:], m.Bucket) + dAtA[i] = 0x12 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Prefix))) + i += copy(dAtA[i:], m.Prefix) + dAtA[i] = 0x18 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.MaxConnections)) + return i, nil +} + +func (m *Backend) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Backend) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.StorageSecretName))) + i += copy(dAtA[i:], m.StorageSecretName) + if m.Local != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.Local.Size())) + n1, err := m.Local.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n1 + } + if m.S3 != nil { + dAtA[i] = 0x1a + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.S3.Size())) + n2, err := m.S3.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n2 + } + if m.GCS != nil { + dAtA[i] = 0x22 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.GCS.Size())) + n3, err := m.GCS.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n3 + } + if m.Azure != nil { + dAtA[i] = 0x2a + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.Azure.Size())) + n4, err := m.Azure.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n4 + } + if m.Swift != nil { + dAtA[i] = 0x32 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.Swift.Size())) + n5, err := m.Swift.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n5 + } + if m.B2 != nil { + dAtA[i] = 0x3a + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.B2.Size())) + n6, err := m.B2.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n6 + } + if m.Rest != nil { + dAtA[i] = 0x42 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.Rest.Size())) + n7, err := m.Rest.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n7 + } + return i, nil +} + +func (m *GCSSpec) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GCSSpec) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Bucket))) + i += copy(dAtA[i:], m.Bucket) + dAtA[i] = 0x12 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Prefix))) + i += copy(dAtA[i:], m.Prefix) + dAtA[i] = 0x18 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.MaxConnections)) + return i, nil +} + +func (m *LocalSpec) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *LocalSpec) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.VolumeSource.Size())) + n8, err := m.VolumeSource.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n8 + dAtA[i] = 0x12 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.MountPath))) + i += copy(dAtA[i:], m.MountPath) + dAtA[i] = 0x1a + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.SubPath))) + i += copy(dAtA[i:], m.SubPath) + return i, nil +} + +func (m *RestServerSpec) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RestServerSpec) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.URL))) + i += copy(dAtA[i:], m.URL) + return i, nil +} + +func (m *S3Spec) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *S3Spec) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Endpoint))) + i += copy(dAtA[i:], m.Endpoint) + dAtA[i] = 0x12 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Bucket))) + i += copy(dAtA[i:], m.Bucket) + dAtA[i] = 0x1a + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Prefix))) + i += copy(dAtA[i:], m.Prefix) + dAtA[i] = 0x22 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Region))) + i += copy(dAtA[i:], m.Region) + return i, nil +} + +func (m *SwiftSpec) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SwiftSpec) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Container))) + i += copy(dAtA[i:], m.Container) + dAtA[i] = 0x12 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Prefix))) + i += copy(dAtA[i:], m.Prefix) + return i, nil +} + +func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return offset + 1 +} +func (m *AzureSpec) Size() (n int) { + var l int + _ = l + l = len(m.Container) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Prefix) + n += 1 + l + sovGenerated(uint64(l)) + n += 1 + sovGenerated(uint64(m.MaxConnections)) + return n +} + +func (m *B2Spec) Size() (n int) { + var l int + _ = l + l = len(m.Bucket) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Prefix) + n += 1 + l + sovGenerated(uint64(l)) + n += 1 + sovGenerated(uint64(m.MaxConnections)) + return n +} + +func (m *Backend) Size() (n int) { + var l int + _ = l + l = len(m.StorageSecretName) + n += 1 + l + sovGenerated(uint64(l)) + if m.Local != nil { + l = m.Local.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.S3 != nil { + l = m.S3.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.GCS != nil { + l = m.GCS.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.Azure != nil { + l = m.Azure.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.Swift != nil { + l = m.Swift.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.B2 != nil { + l = m.B2.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.Rest != nil { + l = m.Rest.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *GCSSpec) Size() (n int) { + var l int + _ = l + l = len(m.Bucket) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Prefix) + n += 1 + l + sovGenerated(uint64(l)) + n += 1 + sovGenerated(uint64(m.MaxConnections)) + return n +} + +func (m *LocalSpec) Size() (n int) { + var l int + _ = l + l = m.VolumeSource.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.MountPath) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.SubPath) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *RestServerSpec) Size() (n int) { + var l int + _ = l + l = len(m.URL) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *S3Spec) Size() (n int) { + var l int + _ = l + l = len(m.Endpoint) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Bucket) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Prefix) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Region) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *SwiftSpec) Size() (n int) { + var l int + _ = l + l = len(m.Container) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Prefix) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func sovGenerated(x uint64) (n int) { + for { + n++ + x >>= 7 + if x == 0 { + break + } + } + return n +} +func sozGenerated(x uint64) (n int) { + return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (this *AzureSpec) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&AzureSpec{`, + `Container:` + fmt.Sprintf("%v", this.Container) + `,`, + `Prefix:` + fmt.Sprintf("%v", this.Prefix) + `,`, + `MaxConnections:` + fmt.Sprintf("%v", this.MaxConnections) + `,`, + `}`, + }, "") + return s +} +func (this *B2Spec) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&B2Spec{`, + `Bucket:` + fmt.Sprintf("%v", this.Bucket) + `,`, + `Prefix:` + fmt.Sprintf("%v", this.Prefix) + `,`, + `MaxConnections:` + fmt.Sprintf("%v", this.MaxConnections) + `,`, + `}`, + }, "") + return s +} +func (this *Backend) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Backend{`, + `StorageSecretName:` + fmt.Sprintf("%v", this.StorageSecretName) + `,`, + `Local:` + strings.Replace(fmt.Sprintf("%v", this.Local), "LocalSpec", "LocalSpec", 1) + `,`, + `S3:` + strings.Replace(fmt.Sprintf("%v", this.S3), "S3Spec", "S3Spec", 1) + `,`, + `GCS:` + strings.Replace(fmt.Sprintf("%v", this.GCS), "GCSSpec", "GCSSpec", 1) + `,`, + `Azure:` + strings.Replace(fmt.Sprintf("%v", this.Azure), "AzureSpec", "AzureSpec", 1) + `,`, + `Swift:` + strings.Replace(fmt.Sprintf("%v", this.Swift), "SwiftSpec", "SwiftSpec", 1) + `,`, + `B2:` + strings.Replace(fmt.Sprintf("%v", this.B2), "B2Spec", "B2Spec", 1) + `,`, + `Rest:` + strings.Replace(fmt.Sprintf("%v", this.Rest), "RestServerSpec", "RestServerSpec", 1) + `,`, + `}`, + }, "") + return s +} +func (this *GCSSpec) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&GCSSpec{`, + `Bucket:` + fmt.Sprintf("%v", this.Bucket) + `,`, + `Prefix:` + fmt.Sprintf("%v", this.Prefix) + `,`, + `MaxConnections:` + fmt.Sprintf("%v", this.MaxConnections) + `,`, + `}`, + }, "") + return s +} +func (this *LocalSpec) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&LocalSpec{`, + `VolumeSource:` + strings.Replace(strings.Replace(this.VolumeSource.String(), "VolumeSource", "k8s_io_api_core_v1.VolumeSource", 1), `&`, ``, 1) + `,`, + `MountPath:` + fmt.Sprintf("%v", this.MountPath) + `,`, + `SubPath:` + fmt.Sprintf("%v", this.SubPath) + `,`, + `}`, + }, "") + return s +} +func (this *RestServerSpec) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&RestServerSpec{`, + `URL:` + fmt.Sprintf("%v", this.URL) + `,`, + `}`, + }, "") + return s +} +func (this *S3Spec) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&S3Spec{`, + `Endpoint:` + fmt.Sprintf("%v", this.Endpoint) + `,`, + `Bucket:` + fmt.Sprintf("%v", this.Bucket) + `,`, + `Prefix:` + fmt.Sprintf("%v", this.Prefix) + `,`, + `Region:` + fmt.Sprintf("%v", this.Region) + `,`, + `}`, + }, "") + return s +} +func (this *SwiftSpec) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&SwiftSpec{`, + `Container:` + fmt.Sprintf("%v", this.Container) + `,`, + `Prefix:` + fmt.Sprintf("%v", this.Prefix) + `,`, + `}`, + }, "") + return s +} +func valueToStringGenerated(v interface{}) string { + rv := reflect.ValueOf(v) + if rv.IsNil() { + return "nil" + } + pv := reflect.Indirect(rv).Interface() + return fmt.Sprintf("*%v", pv) +} +func (m *AzureSpec) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: AzureSpec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AzureSpec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Container", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Container = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Prefix", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Prefix = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxConnections", wireType) + } + m.MaxConnections = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MaxConnections |= (int64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *B2Spec) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: B2Spec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: B2Spec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Bucket", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Bucket = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Prefix", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Prefix = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxConnections", wireType) + } + m.MaxConnections = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MaxConnections |= (int64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Backend) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Backend: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Backend: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StorageSecretName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.StorageSecretName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Local", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Local == nil { + m.Local = &LocalSpec{} + } + if err := m.Local.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field S3", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.S3 == nil { + m.S3 = &S3Spec{} + } + if err := m.S3.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field GCS", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.GCS == nil { + m.GCS = &GCSSpec{} + } + if err := m.GCS.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Azure", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Azure == nil { + m.Azure = &AzureSpec{} + } + if err := m.Azure.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Swift", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Swift == nil { + m.Swift = &SwiftSpec{} + } + if err := m.Swift.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field B2", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.B2 == nil { + m.B2 = &B2Spec{} + } + if err := m.B2.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Rest", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Rest == nil { + m.Rest = &RestServerSpec{} + } + if err := m.Rest.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GCSSpec) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GCSSpec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GCSSpec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Bucket", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Bucket = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Prefix", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Prefix = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxConnections", wireType) + } + m.MaxConnections = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MaxConnections |= (int64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *LocalSpec) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: LocalSpec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: LocalSpec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VolumeSource", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.VolumeSource.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MountPath", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.MountPath = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SubPath", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SubPath = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RestServerSpec) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: RestServerSpec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RestServerSpec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field URL", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.URL = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *S3Spec) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: S3Spec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: S3Spec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Endpoint", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Endpoint = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Bucket", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Bucket = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Prefix", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Prefix = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Region", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Region = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SwiftSpec) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SwiftSpec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SwiftSpec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Container", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Container = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Prefix", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Prefix = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipGenerated(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowGenerated + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowGenerated + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + return iNdEx, nil + case 1: + iNdEx += 8 + return iNdEx, nil + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowGenerated + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + iNdEx += length + if length < 0 { + return 0, ErrInvalidLengthGenerated + } + return iNdEx, nil + case 3: + for { + var innerWire uint64 + var start int = iNdEx + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowGenerated + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + innerWire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + innerWireType := int(innerWire & 0x7) + if innerWireType == 4 { + break + } + next, err := skipGenerated(dAtA[start:]) + if err != nil { + return 0, err + } + iNdEx = start + next + } + return iNdEx, nil + case 4: + return iNdEx, nil + case 5: + iNdEx += 4 + return iNdEx, nil + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + } + panic("unreachable") +} + +var ( + ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") +) + +func init() { + proto.RegisterFile("kmodules.xyz/objectstore-api/api/v1/generated.proto", fileDescriptorGenerated) +} + +var fileDescriptorGenerated = []byte{ + // 710 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x94, 0x3f, 0x6f, 0xd3, 0x4e, + 0x18, 0xc7, 0x63, 0x3b, 0x75, 0xe2, 0x4b, 0x95, 0xdf, 0xaf, 0x16, 0x42, 0xa6, 0x12, 0x4e, 0x65, + 0xa4, 0xaa, 0x88, 0xd6, 0x56, 0x9d, 0x85, 0x09, 0x09, 0x47, 0x28, 0x4b, 0x0b, 0xe5, 0x2c, 0x18, + 0xba, 0x20, 0xdb, 0xb9, 0xba, 0x26, 0x89, 0x2f, 0x3a, 0x9f, 0x43, 0xe9, 0xc4, 0x4b, 0x60, 0x84, + 0x9d, 0x99, 0x37, 0xc1, 0xd2, 0xb1, 0x63, 0xa7, 0x88, 0x9a, 0x91, 0x37, 0x81, 0xee, 0x7c, 0x49, + 0xd3, 0x82, 0x50, 0x32, 0x80, 0x18, 0x2c, 0xf9, 0x9e, 0xe7, 0xfb, 0x7c, 0xee, 0x9e, 0x3f, 0x77, + 0xa0, 0xdd, 0x1f, 0xe2, 0x5e, 0x3e, 0x40, 0x99, 0x7d, 0xf2, 0xf6, 0xd4, 0xc1, 0xe1, 0x6b, 0x14, + 0xd1, 0x8c, 0x62, 0x82, 0x76, 0x82, 0x51, 0xe2, 0xb0, 0x6f, 0xbc, 0xeb, 0xc4, 0x28, 0x45, 0x24, + 0xa0, 0xa8, 0x67, 0x8f, 0x08, 0xa6, 0x58, 0xbf, 0x37, 0x1f, 0x64, 0xcf, 0x05, 0xbd, 0x0a, 0x46, + 0x89, 0xcd, 0xbe, 0xf1, 0xee, 0xfa, 0x4e, 0x9c, 0xd0, 0xe3, 0x3c, 0xb4, 0x23, 0x3c, 0x74, 0x62, + 0x1c, 0x63, 0x87, 0xc7, 0x86, 0xf9, 0x11, 0x5f, 0xf1, 0x05, 0xff, 0x2b, 0x99, 0xeb, 0x56, 0xff, + 0x61, 0x66, 0x27, 0x98, 0x6f, 0x19, 0x61, 0x82, 0x7e, 0xb1, 0xaf, 0xf5, 0x49, 0x02, 0xda, 0xe3, + 0xd3, 0x9c, 0x20, 0x7f, 0x84, 0x22, 0xdd, 0x01, 0x5a, 0x84, 0x53, 0x1a, 0x24, 0x29, 0x22, 0x86, + 0xb4, 0x21, 0x6d, 0x69, 0xde, 0xda, 0xd9, 0xa4, 0x55, 0x29, 0x26, 0x2d, 0xad, 0x33, 0x75, 0xc0, + 0x2b, 0x8d, 0xbe, 0x09, 0xd4, 0x11, 0x41, 0x47, 0xc9, 0x89, 0x21, 0x73, 0x75, 0x53, 0xa8, 0xd5, + 0x03, 0x6e, 0x85, 0xc2, 0xab, 0x3f, 0x02, 0xcd, 0x61, 0x70, 0xd2, 0xc1, 0x69, 0x8a, 0x22, 0x9a, + 0xe0, 0x34, 0x33, 0x94, 0x0d, 0x69, 0x4b, 0xf1, 0x6e, 0x0b, 0x7d, 0x73, 0xff, 0x9a, 0x17, 0xde, + 0x50, 0x5b, 0x1f, 0x24, 0xa0, 0x7a, 0x2e, 0x3f, 0xe3, 0x26, 0x50, 0xc3, 0x3c, 0xea, 0x23, 0x2a, + 0x0e, 0x38, 0xdb, 0xd2, 0xe3, 0x56, 0x28, 0xbc, 0x7f, 0xed, 0x68, 0xdf, 0xab, 0xa0, 0xe6, 0x05, + 0x51, 0x1f, 0xa5, 0x3d, 0xbd, 0x0b, 0xd6, 0x58, 0xd3, 0x82, 0x18, 0xf9, 0x28, 0x22, 0x88, 0x3e, + 0x0d, 0x86, 0x48, 0x1c, 0xf3, 0x8e, 0xc0, 0xad, 0xf9, 0x37, 0x05, 0xf0, 0xe7, 0x18, 0xfd, 0x19, + 0x58, 0x19, 0xe0, 0x28, 0x18, 0xf0, 0xb3, 0x37, 0x5c, 0xdb, 0x5e, 0x60, 0x3c, 0xec, 0x3d, 0x16, + 0xc1, 0x6a, 0xe4, 0x69, 0xc5, 0xa4, 0xb5, 0xc2, 0x97, 0xb0, 0xe4, 0xe8, 0x1d, 0x20, 0x67, 0x6d, + 0x9e, 0x59, 0xc3, 0x7d, 0xb0, 0x10, 0xcd, 0x6f, 0x73, 0x94, 0x5a, 0x4c, 0x5a, 0xb2, 0xdf, 0x86, + 0x72, 0xd6, 0xd6, 0xbb, 0x40, 0x89, 0xa3, 0xcc, 0xa8, 0x72, 0xca, 0xf6, 0x42, 0x94, 0x6e, 0xc7, + 0xe7, 0x98, 0x5a, 0x31, 0x69, 0x29, 0xdd, 0x8e, 0x0f, 0x19, 0x81, 0xa5, 0x17, 0xb0, 0xa1, 0x33, + 0x56, 0x96, 0x48, 0x6f, 0x36, 0xa6, 0x65, 0x7a, 0x7c, 0x09, 0x4b, 0x0e, 0x03, 0x66, 0x6f, 0x92, + 0x23, 0x6a, 0xa8, 0x4b, 0x00, 0x7d, 0x16, 0x71, 0x05, 0xe4, 0x4b, 0x58, 0x72, 0x58, 0xbd, 0x42, + 0xd7, 0xa8, 0x2d, 0x51, 0xaf, 0x72, 0x3c, 0xcb, 0x7a, 0x79, 0x2e, 0x94, 0x43, 0x57, 0x7f, 0x0e, + 0xaa, 0x04, 0x65, 0xd4, 0xa8, 0x73, 0x4c, 0x7b, 0x21, 0x0c, 0x44, 0x19, 0xf5, 0x11, 0x19, 0x23, + 0xc2, 0x71, 0xf5, 0x62, 0xd2, 0xaa, 0x32, 0x1b, 0xe4, 0x28, 0xeb, 0xa3, 0x04, 0x6a, 0xa2, 0xa6, + 0xff, 0xdc, 0x4d, 0xf8, 0x22, 0x01, 0x6d, 0x36, 0x83, 0xfa, 0x21, 0x58, 0x1d, 0xe3, 0x41, 0x3e, + 0x44, 0x3e, 0xce, 0x49, 0x54, 0x5e, 0x83, 0x86, 0xbb, 0x61, 0x97, 0x8f, 0x12, 0x4f, 0x97, 0x3d, + 0x4a, 0x2c, 0xe7, 0x97, 0x73, 0x3a, 0xef, 0x96, 0xd8, 0x6d, 0x75, 0xde, 0x0a, 0xaf, 0xb1, 0xd8, + 0x3b, 0x35, 0xc4, 0x79, 0x4a, 0x0f, 0x02, 0x7a, 0x2c, 0x92, 0x9a, 0xbd, 0x53, 0xfb, 0x53, 0x07, + 0xbc, 0xd2, 0xe8, 0xf7, 0x41, 0x2d, 0xcb, 0x43, 0x2e, 0x57, 0xb8, 0xfc, 0x3f, 0x21, 0xaf, 0xf9, + 0xa5, 0x19, 0x4e, 0xfd, 0x96, 0x03, 0x9a, 0xd7, 0x7b, 0xa0, 0xdf, 0x05, 0x4a, 0x4e, 0x06, 0xa2, + 0xc8, 0x0d, 0x11, 0xa8, 0xbc, 0x80, 0x7b, 0x90, 0xd9, 0xad, 0xcf, 0x12, 0x50, 0xcb, 0xcb, 0xa2, + 0x6f, 0x83, 0x3a, 0x4a, 0x7b, 0x23, 0x9c, 0xa4, 0xd3, 0x9e, 0xfc, 0x2f, 0xe4, 0xf5, 0x27, 0xc2, + 0x0e, 0x67, 0x8a, 0xb9, 0xfe, 0xc9, 0x0b, 0xf6, 0x4f, 0xf9, 0x6d, 0xff, 0x36, 0x81, 0x4a, 0x50, + 0x9c, 0xe0, 0x94, 0xdf, 0xd0, 0x39, 0x1d, 0xe4, 0x56, 0x28, 0xbc, 0x56, 0x0f, 0x68, 0xb3, 0xd1, + 0xff, 0x63, 0x4f, 0xbe, 0xb7, 0x75, 0x76, 0x69, 0x56, 0xce, 0x2f, 0xcd, 0xca, 0xc5, 0xa5, 0x59, + 0x79, 0x57, 0x98, 0xd2, 0x59, 0x61, 0x4a, 0xe7, 0x85, 0x29, 0x5d, 0x14, 0xa6, 0xf4, 0xb5, 0x30, + 0xa5, 0xf7, 0xdf, 0xcc, 0xca, 0xa1, 0x3c, 0xde, 0xfd, 0x11, 0x00, 0x00, 0xff, 0xff, 0x4a, 0x9c, + 0x58, 0x01, 0x31, 0x07, 0x00, 0x00, +} diff --git a/vendor/kmodules.xyz/objectstore-api/api/v1/generated.proto b/vendor/kmodules.xyz/objectstore-api/api/v1/generated.proto new file mode 100644 index 000000000..90252be1c --- /dev/null +++ b/vendor/kmodules.xyz/objectstore-api/api/v1/generated.proto @@ -0,0 +1,98 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + + +// This file was autogenerated by go-to-protobuf. Do not edit it manually! + +syntax = 'proto2'; + +package kmodules.xyz.objectstore_api.api.v1; + +import "k8s.io/api/core/v1/generated.proto"; + +// Package-wide variables from generator "generated". +option go_package = "v1"; + +message AzureSpec { + optional string container = 1; + + optional string prefix = 2; + + optional int64 maxConnections = 3; +} + +message B2Spec { + optional string bucket = 1; + + optional string prefix = 2; + + optional int64 maxConnections = 3; +} + +message Backend { + optional string storageSecretName = 1; + + optional LocalSpec local = 2; + + optional S3Spec s3 = 3; + + optional GCSSpec gcs = 4; + + optional AzureSpec azure = 5; + + optional SwiftSpec swift = 6; + + optional B2Spec b2 = 7; + + optional RestServerSpec rest = 8; +} + +message GCSSpec { + optional string bucket = 1; + + optional string prefix = 2; + + optional int64 maxConnections = 3; +} + +message LocalSpec { + optional k8s.io.api.core.v1.VolumeSource volumeSource = 1; + + optional string mountPath = 2; + + optional string subPath = 3; +} + +message RestServerSpec { + optional string url = 1; +} + +message S3Spec { + optional string endpoint = 1; + + optional string bucket = 2; + + optional string prefix = 3; + + optional string region = 4; +} + +message SwiftSpec { + optional string container = 1; + + optional string prefix = 2; +} + diff --git a/vendor/kmodules.xyz/objectstore-api/api/v1/helpers.go b/vendor/kmodules.xyz/objectstore-api/api/v1/helpers.go index 9064baec0..58104f153 100644 --- a/vendor/kmodules.xyz/objectstore-api/api/v1/helpers.go +++ b/vendor/kmodules.xyz/objectstore-api/api/v1/helpers.go @@ -1,3 +1,19 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package v1 import ( @@ -119,7 +135,7 @@ func (backend Backend) Provider() (string, error) { // MaxConnections returns maximum parallel connection to use to connect with the backend // returns 0 if not specified -func (backend Backend) MaxConnections() int { +func (backend Backend) MaxConnections() int64 { if backend.GCS != nil { return backend.GCS.MaxConnections } else if backend.Azure != nil { diff --git a/vendor/kmodules.xyz/objectstore-api/api/v1/openapi_generated.go b/vendor/kmodules.xyz/objectstore-api/api/v1/openapi_generated.go index e5ad83dae..479a4d97b 100644 --- a/vendor/kmodules.xyz/objectstore-api/api/v1/openapi_generated.go +++ b/vendor/kmodules.xyz/objectstore-api/api/v1/openapi_generated.go @@ -1,7 +1,7 @@ // +build !ignore_autogenerated /* -Copyright 2019 The Kmodules Authors. +Copyright The Kmodules Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -61,7 +61,7 @@ func schema_kmodulesxyz_objectstore_api_api_v1_AzureSpec(ref common.ReferenceCal "maxConnections": { SchemaProps: spec.SchemaProps{ Type: []string{"integer"}, - Format: "int32", + Format: "int64", }, }, }, @@ -91,7 +91,7 @@ func schema_kmodulesxyz_objectstore_api_api_v1_B2Spec(ref common.ReferenceCallba "maxConnections": { SchemaProps: spec.SchemaProps{ Type: []string{"integer"}, - Format: "int32", + Format: "int64", }, }, }, @@ -176,7 +176,7 @@ func schema_kmodulesxyz_objectstore_api_api_v1_GCSSpec(ref common.ReferenceCallb "maxConnections": { SchemaProps: spec.SchemaProps{ Type: []string{"integer"}, - Format: "int32", + Format: "int64", }, }, }, diff --git a/vendor/kmodules.xyz/objectstore-api/api/v1/types.go b/vendor/kmodules.xyz/objectstore-api/api/v1/types.go index e9d0192ec..0e2fe8f02 100644 --- a/vendor/kmodules.xyz/objectstore-api/api/v1/types.go +++ b/vendor/kmodules.xyz/objectstore-api/api/v1/types.go @@ -1,3 +1,19 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package v1 import ( @@ -64,53 +80,53 @@ const ( ) type Backend struct { - StorageSecretName string `json:"storageSecretName,omitempty"` - - Local *LocalSpec `json:"local,omitempty"` - S3 *S3Spec `json:"s3,omitempty"` - GCS *GCSSpec `json:"gcs,omitempty"` - Azure *AzureSpec `json:"azure,omitempty"` - Swift *SwiftSpec `json:"swift,omitempty"` - B2 *B2Spec `json:"b2,omitempty"` - Rest *RestServerSpec `json:"rest,omitempty"` + StorageSecretName string `json:"storageSecretName,omitempty" protobuf:"bytes,1,opt,name=storageSecretName"` + + Local *LocalSpec `json:"local,omitempty" protobuf:"bytes,2,opt,name=local"` + S3 *S3Spec `json:"s3,omitempty" protobuf:"bytes,3,opt,name=s3"` + GCS *GCSSpec `json:"gcs,omitempty" protobuf:"bytes,4,opt,name=gcs"` + Azure *AzureSpec `json:"azure,omitempty" protobuf:"bytes,5,opt,name=azure"` + Swift *SwiftSpec `json:"swift,omitempty" protobuf:"bytes,6,opt,name=swift"` + B2 *B2Spec `json:"b2,omitempty" protobuf:"bytes,7,opt,name=b2"` + Rest *RestServerSpec `json:"rest,omitempty" protobuf:"bytes,8,opt,name=rest"` } type LocalSpec struct { - core.VolumeSource `json:",inline"` - MountPath string `json:"mountPath,omitempty"` - SubPath string `json:"subPath,omitempty"` + core.VolumeSource `json:",inline" protobuf:"bytes,1,opt,name=volumeSource"` + MountPath string `json:"mountPath,omitempty" protobuf:"bytes,2,opt,name=mountPath"` + SubPath string `json:"subPath,omitempty" protobuf:"bytes,3,opt,name=subPath"` } type S3Spec struct { - Endpoint string `json:"endpoint,omitempty"` - Bucket string `json:"bucket,omitempty"` - Prefix string `json:"prefix,omitempty"` - Region string `json:"region,omitempty"` + Endpoint string `json:"endpoint,omitempty" protobuf:"bytes,1,opt,name=endpoint"` + Bucket string `json:"bucket,omitempty" protobuf:"bytes,2,opt,name=bucket"` + Prefix string `json:"prefix,omitempty" protobuf:"bytes,3,opt,name=prefix"` + Region string `json:"region,omitempty" protobuf:"bytes,4,opt,name=region"` } type GCSSpec struct { - Bucket string `json:"bucket,omitempty"` - Prefix string `json:"prefix,omitempty"` - MaxConnections int `json:"maxConnections,omitempty"` + Bucket string `json:"bucket,omitempty" protobuf:"bytes,1,opt,name=bucket"` + Prefix string `json:"prefix,omitempty" protobuf:"bytes,2,opt,name=prefix"` + MaxConnections int64 `json:"maxConnections,omitempty" protobuf:"varint,3,opt,name=maxConnections"` } type AzureSpec struct { - Container string `json:"container,omitempty"` - Prefix string `json:"prefix,omitempty"` - MaxConnections int `json:"maxConnections,omitempty"` + Container string `json:"container,omitempty" protobuf:"bytes,1,opt,name=container"` + Prefix string `json:"prefix,omitempty" protobuf:"bytes,2,opt,name=prefix"` + MaxConnections int64 `json:"maxConnections,omitempty" protobuf:"varint,3,opt,name=maxConnections"` } type SwiftSpec struct { - Container string `json:"container,omitempty"` - Prefix string `json:"prefix,omitempty"` + Container string `json:"container,omitempty" protobuf:"bytes,1,opt,name=container"` + Prefix string `json:"prefix,omitempty" protobuf:"bytes,2,opt,name=prefix"` } type B2Spec struct { - Bucket string `json:"bucket,omitempty"` - Prefix string `json:"prefix,omitempty"` - MaxConnections int `json:"maxConnections,omitempty"` + Bucket string `json:"bucket,omitempty" protobuf:"bytes,1,opt,name=bucket"` + Prefix string `json:"prefix,omitempty" protobuf:"bytes,2,opt,name=prefix"` + MaxConnections int64 `json:"maxConnections,omitempty" protobuf:"varint,3,opt,name=maxConnections"` } type RestServerSpec struct { - URL string `json:"url,omitempty"` + URL string `json:"url,omitempty" protobuf:"bytes,1,opt,name=url"` } diff --git a/vendor/kmodules.xyz/objectstore-api/api/v1/zz_generated.deepcopy.go b/vendor/kmodules.xyz/objectstore-api/api/v1/zz_generated.deepcopy.go index ea7ff78e3..f6c7408f3 100644 --- a/vendor/kmodules.xyz/objectstore-api/api/v1/zz_generated.deepcopy.go +++ b/vendor/kmodules.xyz/objectstore-api/api/v1/zz_generated.deepcopy.go @@ -1,7 +1,7 @@ // +build !ignore_autogenerated /* -Copyright 2019 The Kmodules Authors. +Copyright The Kmodules Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/vendor/kmodules.xyz/objectstore-api/osm/doc.go b/vendor/kmodules.xyz/objectstore-api/osm/doc.go index 7e498f30c..936b5522b 100644 --- a/vendor/kmodules.xyz/objectstore-api/osm/doc.go +++ b/vendor/kmodules.xyz/objectstore-api/osm/doc.go @@ -1 +1,17 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package osm // import "kmodules.xyz/objectstore-api/osm" diff --git a/vendor/kmodules.xyz/objectstore-api/osm/osm.go b/vendor/kmodules.xyz/objectstore-api/osm/osm.go index a6bf2317a..e2d3d90ba 100644 --- a/vendor/kmodules.xyz/objectstore-api/osm/osm.go +++ b/vendor/kmodules.xyz/objectstore-api/osm/osm.go @@ -1,3 +1,19 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package osm import ( @@ -8,6 +24,12 @@ import ( "strconv" "strings" + awsconst "kmodules.xyz/constants/aws" + azconst "kmodules.xyz/constants/azure" + googconst "kmodules.xyz/constants/google" + osconst "kmodules.xyz/constants/openstack" + api "kmodules.xyz/objectstore-api/api/v1" + stringz "github.com/appscode/go/strings" "github.com/appscode/go/types" otx "github.com/appscode/osm/context" @@ -28,7 +50,6 @@ import ( core "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/client-go/kubernetes" - api "kmodules.xyz/objectstore-api/api/v1" ) const ( @@ -161,8 +182,8 @@ func NewOSMContext(client kubernetes.Interface, spec api.Backend, namespace stri if spec.S3 != nil { nc.Provider = s3.Kind - keyID, foundKeyID := config[api.AWS_ACCESS_KEY_ID] - key, foundKey := config[api.AWS_SECRET_ACCESS_KEY] + keyID, foundKeyID := config[awsconst.AWS_ACCESS_KEY_ID] + key, foundKey := config[awsconst.AWS_SECRET_ACCESS_KEY] if foundKey && foundKeyID { nc.Config[s3.ConfigAccessKeyID] = string(keyID) nc.Config[s3.ConfigSecretKey] = string(key) @@ -220,7 +241,7 @@ func NewOSMContext(client kubernetes.Interface, spec api.Backend, namespace stri } nc.Config[s3.ConfigDisableSSL] = strconv.FormatBool(u.Scheme == "http") - cacertData, ok := config[api.CA_CERT_DATA] + cacertData, ok := config[awsconst.CA_CERT_DATA] if ok && u.Scheme == "https" { nc.Config[s3.ConfigCACertData] = string(cacertData) } @@ -228,13 +249,13 @@ func NewOSMContext(client kubernetes.Interface, spec api.Backend, namespace stri return nc, nil } else if spec.GCS != nil { nc.Provider = gcs.Kind - nc.Config[gcs.ConfigProjectId] = string(config[api.GOOGLE_PROJECT_ID]) - nc.Config[gcs.ConfigJSON] = string(config[api.GOOGLE_SERVICE_ACCOUNT_JSON_KEY]) + nc.Config[gcs.ConfigProjectId] = string(config[googconst.GOOGLE_PROJECT_ID]) + nc.Config[gcs.ConfigJSON] = string(config[googconst.GOOGLE_SERVICE_ACCOUNT_JSON_KEY]) return nc, nil } else if spec.Azure != nil { nc.Provider = azure.Kind - nc.Config[azure.ConfigAccount] = string(config[api.AZURE_ACCOUNT_NAME]) - nc.Config[azure.ConfigKey] = string(config[api.AZURE_ACCOUNT_KEY]) + nc.Config[azure.ConfigAccount] = string(config[azconst.AZURE_ACCOUNT_NAME]) + nc.Config[azure.ConfigKey] = string(config[azconst.AZURE_ACCOUNT_KEY]) return nc, nil } else if spec.Local != nil { nc.Provider = local.Kind @@ -248,28 +269,28 @@ func NewOSMContext(client kubernetes.Interface, spec api.Backend, namespace stri secretKey string }{ // v2/v3 specific - {swift.ConfigUsername, api.OS_USERNAME}, - {swift.ConfigKey, api.OS_PASSWORD}, - {swift.ConfigRegion, api.OS_REGION_NAME}, - {swift.ConfigTenantAuthURL, api.OS_AUTH_URL}, + {swift.ConfigUsername, osconst.OS_USERNAME}, + {swift.ConfigKey, osconst.OS_PASSWORD}, + {swift.ConfigRegion, osconst.OS_REGION_NAME}, + {swift.ConfigTenantAuthURL, osconst.OS_AUTH_URL}, // v3 specific - {swift.ConfigDomain, api.OS_USER_DOMAIN_NAME}, - {swift.ConfigTenantName, api.OS_PROJECT_NAME}, - {swift.ConfigTenantDomain, api.OS_PROJECT_DOMAIN_NAME}, + {swift.ConfigDomain, osconst.OS_USER_DOMAIN_NAME}, + {swift.ConfigTenantName, osconst.OS_PROJECT_NAME}, + {swift.ConfigTenantDomain, osconst.OS_PROJECT_DOMAIN_NAME}, // v2 specific - {swift.ConfigTenantId, api.OS_TENANT_ID}, - {swift.ConfigTenantName, api.OS_TENANT_NAME}, + {swift.ConfigTenantId, osconst.OS_TENANT_ID}, + {swift.ConfigTenantName, osconst.OS_TENANT_NAME}, // v1 specific - {swift.ConfigTenantAuthURL, api.ST_AUTH}, - {swift.ConfigUsername, api.ST_USER}, - {swift.ConfigKey, api.ST_KEY}, + {swift.ConfigTenantAuthURL, osconst.ST_AUTH}, + {swift.ConfigUsername, osconst.ST_USER}, + {swift.ConfigKey, osconst.ST_KEY}, // Manual authentication - {swift.ConfigStorageURL, api.OS_STORAGE_URL}, - {swift.ConfigAuthToken, api.OS_AUTH_TOKEN}, + {swift.ConfigStorageURL, osconst.OS_STORAGE_URL}, + {swift.ConfigAuthToken, osconst.OS_AUTH_TOKEN}, } { if _, exists := nc.Config.Config(val.stowKey); !exists { nc.Config[val.stowKey] = string(config[val.secretKey]) diff --git a/vendor/kmodules.xyz/offshoot-api/api/v1/doc.go b/vendor/kmodules.xyz/offshoot-api/api/v1/doc.go index c0c46c836..435f8a44a 100644 --- a/vendor/kmodules.xyz/offshoot-api/api/v1/doc.go +++ b/vendor/kmodules.xyz/offshoot-api/api/v1/doc.go @@ -1,3 +1,18 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ // +k8s:deepcopy-gen=package // +k8s:openapi-gen=true package v1 // import "kmodules.xyz/offshoot-api/api/v1" diff --git a/vendor/kmodules.xyz/offshoot-api/api/v1/generated.pb.go b/vendor/kmodules.xyz/offshoot-api/api/v1/generated.pb.go new file mode 100644 index 000000000..c2ff850e4 --- /dev/null +++ b/vendor/kmodules.xyz/offshoot-api/api/v1/generated.pb.go @@ -0,0 +1,4227 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: kmodules.xyz/offshoot-api/api/v1/generated.proto + +/* + Package v1 is a generated protocol buffer package. + + It is generated from these files: + kmodules.xyz/offshoot-api/api/v1/generated.proto + + It has these top-level messages: + ContainerRuntimeSettings + IONiceSettings + NiceSettings + ObjectMeta + PodRuntimeSettings + PodSpec + PodTemplateSpec + RuntimeSettings + ServicePort + ServiceSpec + ServiceTemplateSpec +*/ + +package v1 + +import ( + fmt "fmt" + io "io" + math "math" + reflect "reflect" + strings "strings" + + proto "github.com/gogo/protobuf/proto" + github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys" + k8s_io_api_core_v1 "k8s.io/api/core/v1" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package + +func (m *ContainerRuntimeSettings) Reset() { *m = ContainerRuntimeSettings{} } +func (*ContainerRuntimeSettings) ProtoMessage() {} +func (*ContainerRuntimeSettings) Descriptor() ([]byte, []int) { + return fileDescriptorGenerated, []int{0} +} + +func (m *IONiceSettings) Reset() { *m = IONiceSettings{} } +func (*IONiceSettings) ProtoMessage() {} +func (*IONiceSettings) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{1} } + +func (m *NiceSettings) Reset() { *m = NiceSettings{} } +func (*NiceSettings) ProtoMessage() {} +func (*NiceSettings) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{2} } + +func (m *ObjectMeta) Reset() { *m = ObjectMeta{} } +func (*ObjectMeta) ProtoMessage() {} +func (*ObjectMeta) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{3} } + +func (m *PodRuntimeSettings) Reset() { *m = PodRuntimeSettings{} } +func (*PodRuntimeSettings) ProtoMessage() {} +func (*PodRuntimeSettings) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{4} } + +func (m *PodSpec) Reset() { *m = PodSpec{} } +func (*PodSpec) ProtoMessage() {} +func (*PodSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{5} } + +func (m *PodTemplateSpec) Reset() { *m = PodTemplateSpec{} } +func (*PodTemplateSpec) ProtoMessage() {} +func (*PodTemplateSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{6} } + +func (m *RuntimeSettings) Reset() { *m = RuntimeSettings{} } +func (*RuntimeSettings) ProtoMessage() {} +func (*RuntimeSettings) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{7} } + +func (m *ServicePort) Reset() { *m = ServicePort{} } +func (*ServicePort) ProtoMessage() {} +func (*ServicePort) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{8} } + +func (m *ServiceSpec) Reset() { *m = ServiceSpec{} } +func (*ServiceSpec) ProtoMessage() {} +func (*ServiceSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{9} } + +func (m *ServiceTemplateSpec) Reset() { *m = ServiceTemplateSpec{} } +func (*ServiceTemplateSpec) ProtoMessage() {} +func (*ServiceTemplateSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{10} } + +func init() { + proto.RegisterType((*ContainerRuntimeSettings)(nil), "kmodules.xyz.offshoot_api.api.v1.ContainerRuntimeSettings") + proto.RegisterType((*IONiceSettings)(nil), "kmodules.xyz.offshoot_api.api.v1.IONiceSettings") + proto.RegisterType((*NiceSettings)(nil), "kmodules.xyz.offshoot_api.api.v1.NiceSettings") + proto.RegisterType((*ObjectMeta)(nil), "kmodules.xyz.offshoot_api.api.v1.ObjectMeta") + proto.RegisterType((*PodRuntimeSettings)(nil), "kmodules.xyz.offshoot_api.api.v1.PodRuntimeSettings") + proto.RegisterType((*PodSpec)(nil), "kmodules.xyz.offshoot_api.api.v1.PodSpec") + proto.RegisterType((*PodTemplateSpec)(nil), "kmodules.xyz.offshoot_api.api.v1.PodTemplateSpec") + proto.RegisterType((*RuntimeSettings)(nil), "kmodules.xyz.offshoot_api.api.v1.RuntimeSettings") + proto.RegisterType((*ServicePort)(nil), "kmodules.xyz.offshoot_api.api.v1.ServicePort") + proto.RegisterType((*ServiceSpec)(nil), "kmodules.xyz.offshoot_api.api.v1.ServiceSpec") + proto.RegisterType((*ServiceTemplateSpec)(nil), "kmodules.xyz.offshoot_api.api.v1.ServiceTemplateSpec") +} +func (m *ContainerRuntimeSettings) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ContainerRuntimeSettings) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.Resources.Size())) + n1, err := m.Resources.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n1 + if m.LivenessProbe != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.LivenessProbe.Size())) + n2, err := m.LivenessProbe.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n2 + } + if m.ReadinessProbe != nil { + dAtA[i] = 0x1a + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.ReadinessProbe.Size())) + n3, err := m.ReadinessProbe.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n3 + } + if m.Lifecycle != nil { + dAtA[i] = 0x22 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.Lifecycle.Size())) + n4, err := m.Lifecycle.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n4 + } + if m.SecurityContext != nil { + dAtA[i] = 0x2a + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.SecurityContext.Size())) + n5, err := m.SecurityContext.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n5 + } + if m.Nice != nil { + dAtA[i] = 0x32 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.Nice.Size())) + n6, err := m.Nice.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n6 + } + if m.IONice != nil { + dAtA[i] = 0x3a + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.IONice.Size())) + n7, err := m.IONice.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n7 + } + if len(m.EnvFrom) > 0 { + for _, msg := range m.EnvFrom { + dAtA[i] = 0x42 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } + } + if len(m.Env) > 0 { + for _, msg := range m.Env { + dAtA[i] = 0x4a + i++ + i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } + } + return i, nil +} + +func (m *IONiceSettings) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *IONiceSettings) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Class != nil { + dAtA[i] = 0x8 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(*m.Class)) + } + if m.ClassData != nil { + dAtA[i] = 0x10 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(*m.ClassData)) + } + return i, nil +} + +func (m *NiceSettings) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NiceSettings) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Adjustment != nil { + dAtA[i] = 0x8 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(*m.Adjustment)) + } + return i, nil +} + +func (m *ObjectMeta) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ObjectMeta) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Annotations) > 0 { + keysForAnnotations := make([]string, 0, len(m.Annotations)) + for k := range m.Annotations { + keysForAnnotations = append(keysForAnnotations, string(k)) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForAnnotations) + for _, k := range keysForAnnotations { + dAtA[i] = 0xa + i++ + v := m.Annotations[string(k)] + mapSize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v))) + i = encodeVarintGenerated(dAtA, i, uint64(mapSize)) + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(k))) + i += copy(dAtA[i:], k) + dAtA[i] = 0x12 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(v))) + i += copy(dAtA[i:], v) + } + } + return i, nil +} + +func (m *PodRuntimeSettings) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *PodRuntimeSettings) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.NodeSelector) > 0 { + keysForNodeSelector := make([]string, 0, len(m.NodeSelector)) + for k := range m.NodeSelector { + keysForNodeSelector = append(keysForNodeSelector, string(k)) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForNodeSelector) + for _, k := range keysForNodeSelector { + dAtA[i] = 0xa + i++ + v := m.NodeSelector[string(k)] + mapSize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v))) + i = encodeVarintGenerated(dAtA, i, uint64(mapSize)) + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(k))) + i += copy(dAtA[i:], k) + dAtA[i] = 0x12 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(v))) + i += copy(dAtA[i:], v) + } + } + dAtA[i] = 0x12 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.ServiceAccountName))) + i += copy(dAtA[i:], m.ServiceAccountName) + if m.AutomountServiceAccountToken != nil { + dAtA[i] = 0x18 + i++ + if *m.AutomountServiceAccountToken { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i++ + } + dAtA[i] = 0x22 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.NodeName))) + i += copy(dAtA[i:], m.NodeName) + if m.SecurityContext != nil { + dAtA[i] = 0x2a + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.SecurityContext.Size())) + n8, err := m.SecurityContext.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n8 + } + if len(m.ImagePullSecrets) > 0 { + for _, msg := range m.ImagePullSecrets { + dAtA[i] = 0x32 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } + } + if m.Affinity != nil { + dAtA[i] = 0x3a + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.Affinity.Size())) + n9, err := m.Affinity.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n9 + } + dAtA[i] = 0x42 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.SchedulerName))) + i += copy(dAtA[i:], m.SchedulerName) + if len(m.Tolerations) > 0 { + for _, msg := range m.Tolerations { + dAtA[i] = 0x4a + i++ + i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } + } + dAtA[i] = 0x52 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.PriorityClassName))) + i += copy(dAtA[i:], m.PriorityClassName) + if m.Priority != nil { + dAtA[i] = 0x58 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(*m.Priority)) + } + if len(m.ReadinessGates) > 0 { + for _, msg := range m.ReadinessGates { + dAtA[i] = 0x62 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } + } + if m.RuntimeClassName != nil { + dAtA[i] = 0x6a + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(*m.RuntimeClassName))) + i += copy(dAtA[i:], *m.RuntimeClassName) + } + if m.EnableServiceLinks != nil { + dAtA[i] = 0x70 + i++ + if *m.EnableServiceLinks { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i++ + } + return i, nil +} + +func (m *PodSpec) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *PodSpec) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.ServiceAccountName))) + i += copy(dAtA[i:], m.ServiceAccountName) + if len(m.Args) > 0 { + for _, s := range m.Args { + dAtA[i] = 0x12 + i++ + l = len(s) + for l >= 1<<7 { + dAtA[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + dAtA[i] = uint8(l) + i++ + i += copy(dAtA[i:], s) + } + } + if len(m.NodeSelector) > 0 { + keysForNodeSelector := make([]string, 0, len(m.NodeSelector)) + for k := range m.NodeSelector { + keysForNodeSelector = append(keysForNodeSelector, string(k)) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForNodeSelector) + for _, k := range keysForNodeSelector { + dAtA[i] = 0x1a + i++ + v := m.NodeSelector[string(k)] + mapSize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v))) + i = encodeVarintGenerated(dAtA, i, uint64(mapSize)) + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(k))) + i += copy(dAtA[i:], k) + dAtA[i] = 0x12 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(v))) + i += copy(dAtA[i:], v) + } + } + dAtA[i] = 0x22 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.Resources.Size())) + n10, err := m.Resources.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n10 + if m.Affinity != nil { + dAtA[i] = 0x2a + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.Affinity.Size())) + n11, err := m.Affinity.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n11 + } + dAtA[i] = 0x32 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.SchedulerName))) + i += copy(dAtA[i:], m.SchedulerName) + if len(m.Tolerations) > 0 { + for _, msg := range m.Tolerations { + dAtA[i] = 0x3a + i++ + i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } + } + if len(m.ImagePullSecrets) > 0 { + for _, msg := range m.ImagePullSecrets { + dAtA[i] = 0x42 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } + } + if len(m.Env) > 0 { + for _, msg := range m.Env { + dAtA[i] = 0x4a + i++ + i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } + } + if len(m.InitContainers) > 0 { + for _, msg := range m.InitContainers { + dAtA[i] = 0x52 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } + } + dAtA[i] = 0x5a + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.PriorityClassName))) + i += copy(dAtA[i:], m.PriorityClassName) + if m.Priority != nil { + dAtA[i] = 0x60 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(*m.Priority)) + } + if m.SecurityContext != nil { + dAtA[i] = 0x6a + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.SecurityContext.Size())) + n12, err := m.SecurityContext.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n12 + } + if m.LivenessProbe != nil { + dAtA[i] = 0x72 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.LivenessProbe.Size())) + n13, err := m.LivenessProbe.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n13 + } + if m.ReadinessProbe != nil { + dAtA[i] = 0x7a + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.ReadinessProbe.Size())) + n14, err := m.ReadinessProbe.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n14 + } + if m.Lifecycle != nil { + dAtA[i] = 0x82 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.Lifecycle.Size())) + n15, err := m.Lifecycle.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n15 + } + return i, nil +} + +func (m *PodTemplateSpec) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *PodTemplateSpec) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size())) + n16, err := m.ObjectMeta.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n16 + dAtA[i] = 0x12 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.Controller.Size())) + n17, err := m.Controller.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n17 + dAtA[i] = 0x1a + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.Spec.Size())) + n18, err := m.Spec.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n18 + return i, nil +} + +func (m *RuntimeSettings) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RuntimeSettings) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Pod != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.Pod.Size())) + n19, err := m.Pod.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n19 + } + if m.Container != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.Container.Size())) + n20, err := m.Container.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n20 + } + return i, nil +} + +func (m *ServicePort) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ServicePort) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) + i += copy(dAtA[i:], m.Name) + dAtA[i] = 0x10 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.Port)) + dAtA[i] = 0x18 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.NodePort)) + return i, nil +} + +func (m *ServiceSpec) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ServiceSpec) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Ports) > 0 { + for _, msg := range m.Ports { + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } + } + dAtA[i] = 0x12 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.ClusterIP))) + i += copy(dAtA[i:], m.ClusterIP) + dAtA[i] = 0x1a + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) + i += copy(dAtA[i:], m.Type) + if len(m.ExternalIPs) > 0 { + for _, s := range m.ExternalIPs { + dAtA[i] = 0x22 + i++ + l = len(s) + for l >= 1<<7 { + dAtA[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + dAtA[i] = uint8(l) + i++ + i += copy(dAtA[i:], s) + } + } + dAtA[i] = 0x2a + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.LoadBalancerIP))) + i += copy(dAtA[i:], m.LoadBalancerIP) + if len(m.LoadBalancerSourceRanges) > 0 { + for _, s := range m.LoadBalancerSourceRanges { + dAtA[i] = 0x32 + i++ + l = len(s) + for l >= 1<<7 { + dAtA[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + dAtA[i] = uint8(l) + i++ + i += copy(dAtA[i:], s) + } + } + dAtA[i] = 0x3a + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.ExternalTrafficPolicy))) + i += copy(dAtA[i:], m.ExternalTrafficPolicy) + dAtA[i] = 0x40 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.HealthCheckNodePort)) + if m.SessionAffinityConfig != nil { + dAtA[i] = 0x4a + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.SessionAffinityConfig.Size())) + n21, err := m.SessionAffinityConfig.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n21 + } + return i, nil +} + +func (m *ServiceTemplateSpec) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ServiceTemplateSpec) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size())) + n22, err := m.ObjectMeta.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n22 + dAtA[i] = 0x12 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.Spec.Size())) + n23, err := m.Spec.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n23 + return i, nil +} + +func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return offset + 1 +} +func (m *ContainerRuntimeSettings) Size() (n int) { + var l int + _ = l + l = m.Resources.Size() + n += 1 + l + sovGenerated(uint64(l)) + if m.LivenessProbe != nil { + l = m.LivenessProbe.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.ReadinessProbe != nil { + l = m.ReadinessProbe.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.Lifecycle != nil { + l = m.Lifecycle.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.SecurityContext != nil { + l = m.SecurityContext.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.Nice != nil { + l = m.Nice.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.IONice != nil { + l = m.IONice.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if len(m.EnvFrom) > 0 { + for _, e := range m.EnvFrom { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.Env) > 0 { + for _, e := range m.Env { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *IONiceSettings) Size() (n int) { + var l int + _ = l + if m.Class != nil { + n += 1 + sovGenerated(uint64(*m.Class)) + } + if m.ClassData != nil { + n += 1 + sovGenerated(uint64(*m.ClassData)) + } + return n +} + +func (m *NiceSettings) Size() (n int) { + var l int + _ = l + if m.Adjustment != nil { + n += 1 + sovGenerated(uint64(*m.Adjustment)) + } + return n +} + +func (m *ObjectMeta) Size() (n int) { + var l int + _ = l + if len(m.Annotations) > 0 { + for k, v := range m.Annotations { + _ = k + _ = v + mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v))) + n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) + } + } + return n +} + +func (m *PodRuntimeSettings) Size() (n int) { + var l int + _ = l + if len(m.NodeSelector) > 0 { + for k, v := range m.NodeSelector { + _ = k + _ = v + mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v))) + n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) + } + } + l = len(m.ServiceAccountName) + n += 1 + l + sovGenerated(uint64(l)) + if m.AutomountServiceAccountToken != nil { + n += 2 + } + l = len(m.NodeName) + n += 1 + l + sovGenerated(uint64(l)) + if m.SecurityContext != nil { + l = m.SecurityContext.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if len(m.ImagePullSecrets) > 0 { + for _, e := range m.ImagePullSecrets { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if m.Affinity != nil { + l = m.Affinity.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + l = len(m.SchedulerName) + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Tolerations) > 0 { + for _, e := range m.Tolerations { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + l = len(m.PriorityClassName) + n += 1 + l + sovGenerated(uint64(l)) + if m.Priority != nil { + n += 1 + sovGenerated(uint64(*m.Priority)) + } + if len(m.ReadinessGates) > 0 { + for _, e := range m.ReadinessGates { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if m.RuntimeClassName != nil { + l = len(*m.RuntimeClassName) + n += 1 + l + sovGenerated(uint64(l)) + } + if m.EnableServiceLinks != nil { + n += 2 + } + return n +} + +func (m *PodSpec) Size() (n int) { + var l int + _ = l + l = len(m.ServiceAccountName) + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Args) > 0 { + for _, s := range m.Args { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.NodeSelector) > 0 { + for k, v := range m.NodeSelector { + _ = k + _ = v + mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v))) + n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) + } + } + l = m.Resources.Size() + n += 1 + l + sovGenerated(uint64(l)) + if m.Affinity != nil { + l = m.Affinity.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + l = len(m.SchedulerName) + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Tolerations) > 0 { + for _, e := range m.Tolerations { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.ImagePullSecrets) > 0 { + for _, e := range m.ImagePullSecrets { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.Env) > 0 { + for _, e := range m.Env { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.InitContainers) > 0 { + for _, e := range m.InitContainers { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + l = len(m.PriorityClassName) + n += 1 + l + sovGenerated(uint64(l)) + if m.Priority != nil { + n += 1 + sovGenerated(uint64(*m.Priority)) + } + if m.SecurityContext != nil { + l = m.SecurityContext.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.LivenessProbe != nil { + l = m.LivenessProbe.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.ReadinessProbe != nil { + l = m.ReadinessProbe.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.Lifecycle != nil { + l = m.Lifecycle.Size() + n += 2 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *PodTemplateSpec) Size() (n int) { + var l int + _ = l + l = m.ObjectMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Controller.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Spec.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *RuntimeSettings) Size() (n int) { + var l int + _ = l + if m.Pod != nil { + l = m.Pod.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.Container != nil { + l = m.Container.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *ServicePort) Size() (n int) { + var l int + _ = l + l = len(m.Name) + n += 1 + l + sovGenerated(uint64(l)) + n += 1 + sovGenerated(uint64(m.Port)) + n += 1 + sovGenerated(uint64(m.NodePort)) + return n +} + +func (m *ServiceSpec) Size() (n int) { + var l int + _ = l + if len(m.Ports) > 0 { + for _, e := range m.Ports { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + l = len(m.ClusterIP) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Type) + n += 1 + l + sovGenerated(uint64(l)) + if len(m.ExternalIPs) > 0 { + for _, s := range m.ExternalIPs { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + l = len(m.LoadBalancerIP) + n += 1 + l + sovGenerated(uint64(l)) + if len(m.LoadBalancerSourceRanges) > 0 { + for _, s := range m.LoadBalancerSourceRanges { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + l = len(m.ExternalTrafficPolicy) + n += 1 + l + sovGenerated(uint64(l)) + n += 1 + sovGenerated(uint64(m.HealthCheckNodePort)) + if m.SessionAffinityConfig != nil { + l = m.SessionAffinityConfig.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *ServiceTemplateSpec) Size() (n int) { + var l int + _ = l + l = m.ObjectMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Spec.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func sovGenerated(x uint64) (n int) { + for { + n++ + x >>= 7 + if x == 0 { + break + } + } + return n +} +func sozGenerated(x uint64) (n int) { + return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (this *ContainerRuntimeSettings) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ContainerRuntimeSettings{`, + `Resources:` + strings.Replace(strings.Replace(this.Resources.String(), "ResourceRequirements", "k8s_io_api_core_v1.ResourceRequirements", 1), `&`, ``, 1) + `,`, + `LivenessProbe:` + strings.Replace(fmt.Sprintf("%v", this.LivenessProbe), "Probe", "k8s_io_api_core_v1.Probe", 1) + `,`, + `ReadinessProbe:` + strings.Replace(fmt.Sprintf("%v", this.ReadinessProbe), "Probe", "k8s_io_api_core_v1.Probe", 1) + `,`, + `Lifecycle:` + strings.Replace(fmt.Sprintf("%v", this.Lifecycle), "Lifecycle", "k8s_io_api_core_v1.Lifecycle", 1) + `,`, + `SecurityContext:` + strings.Replace(fmt.Sprintf("%v", this.SecurityContext), "SecurityContext", "k8s_io_api_core_v1.SecurityContext", 1) + `,`, + `Nice:` + strings.Replace(fmt.Sprintf("%v", this.Nice), "NiceSettings", "NiceSettings", 1) + `,`, + `IONice:` + strings.Replace(fmt.Sprintf("%v", this.IONice), "IONiceSettings", "IONiceSettings", 1) + `,`, + `EnvFrom:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.EnvFrom), "EnvFromSource", "k8s_io_api_core_v1.EnvFromSource", 1), `&`, ``, 1) + `,`, + `Env:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Env), "EnvVar", "k8s_io_api_core_v1.EnvVar", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *IONiceSettings) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&IONiceSettings{`, + `Class:` + valueToStringGenerated(this.Class) + `,`, + `ClassData:` + valueToStringGenerated(this.ClassData) + `,`, + `}`, + }, "") + return s +} +func (this *NiceSettings) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&NiceSettings{`, + `Adjustment:` + valueToStringGenerated(this.Adjustment) + `,`, + `}`, + }, "") + return s +} +func (this *ObjectMeta) String() string { + if this == nil { + return "nil" + } + keysForAnnotations := make([]string, 0, len(this.Annotations)) + for k := range this.Annotations { + keysForAnnotations = append(keysForAnnotations, k) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForAnnotations) + mapStringForAnnotations := "map[string]string{" + for _, k := range keysForAnnotations { + mapStringForAnnotations += fmt.Sprintf("%v: %v,", k, this.Annotations[k]) + } + mapStringForAnnotations += "}" + s := strings.Join([]string{`&ObjectMeta{`, + `Annotations:` + mapStringForAnnotations + `,`, + `}`, + }, "") + return s +} +func (this *PodRuntimeSettings) String() string { + if this == nil { + return "nil" + } + keysForNodeSelector := make([]string, 0, len(this.NodeSelector)) + for k := range this.NodeSelector { + keysForNodeSelector = append(keysForNodeSelector, k) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForNodeSelector) + mapStringForNodeSelector := "map[string]string{" + for _, k := range keysForNodeSelector { + mapStringForNodeSelector += fmt.Sprintf("%v: %v,", k, this.NodeSelector[k]) + } + mapStringForNodeSelector += "}" + s := strings.Join([]string{`&PodRuntimeSettings{`, + `NodeSelector:` + mapStringForNodeSelector + `,`, + `ServiceAccountName:` + fmt.Sprintf("%v", this.ServiceAccountName) + `,`, + `AutomountServiceAccountToken:` + valueToStringGenerated(this.AutomountServiceAccountToken) + `,`, + `NodeName:` + fmt.Sprintf("%v", this.NodeName) + `,`, + `SecurityContext:` + strings.Replace(fmt.Sprintf("%v", this.SecurityContext), "PodSecurityContext", "k8s_io_api_core_v1.PodSecurityContext", 1) + `,`, + `ImagePullSecrets:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ImagePullSecrets), "LocalObjectReference", "k8s_io_api_core_v1.LocalObjectReference", 1), `&`, ``, 1) + `,`, + `Affinity:` + strings.Replace(fmt.Sprintf("%v", this.Affinity), "Affinity", "k8s_io_api_core_v1.Affinity", 1) + `,`, + `SchedulerName:` + fmt.Sprintf("%v", this.SchedulerName) + `,`, + `Tolerations:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Tolerations), "Toleration", "k8s_io_api_core_v1.Toleration", 1), `&`, ``, 1) + `,`, + `PriorityClassName:` + fmt.Sprintf("%v", this.PriorityClassName) + `,`, + `Priority:` + valueToStringGenerated(this.Priority) + `,`, + `ReadinessGates:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ReadinessGates), "PodReadinessGate", "k8s_io_api_core_v1.PodReadinessGate", 1), `&`, ``, 1) + `,`, + `RuntimeClassName:` + valueToStringGenerated(this.RuntimeClassName) + `,`, + `EnableServiceLinks:` + valueToStringGenerated(this.EnableServiceLinks) + `,`, + `}`, + }, "") + return s +} +func (this *PodSpec) String() string { + if this == nil { + return "nil" + } + keysForNodeSelector := make([]string, 0, len(this.NodeSelector)) + for k := range this.NodeSelector { + keysForNodeSelector = append(keysForNodeSelector, k) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForNodeSelector) + mapStringForNodeSelector := "map[string]string{" + for _, k := range keysForNodeSelector { + mapStringForNodeSelector += fmt.Sprintf("%v: %v,", k, this.NodeSelector[k]) + } + mapStringForNodeSelector += "}" + s := strings.Join([]string{`&PodSpec{`, + `ServiceAccountName:` + fmt.Sprintf("%v", this.ServiceAccountName) + `,`, + `Args:` + fmt.Sprintf("%v", this.Args) + `,`, + `NodeSelector:` + mapStringForNodeSelector + `,`, + `Resources:` + strings.Replace(strings.Replace(this.Resources.String(), "ResourceRequirements", "k8s_io_api_core_v1.ResourceRequirements", 1), `&`, ``, 1) + `,`, + `Affinity:` + strings.Replace(fmt.Sprintf("%v", this.Affinity), "Affinity", "k8s_io_api_core_v1.Affinity", 1) + `,`, + `SchedulerName:` + fmt.Sprintf("%v", this.SchedulerName) + `,`, + `Tolerations:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Tolerations), "Toleration", "k8s_io_api_core_v1.Toleration", 1), `&`, ``, 1) + `,`, + `ImagePullSecrets:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ImagePullSecrets), "LocalObjectReference", "k8s_io_api_core_v1.LocalObjectReference", 1), `&`, ``, 1) + `,`, + `Env:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Env), "EnvVar", "k8s_io_api_core_v1.EnvVar", 1), `&`, ``, 1) + `,`, + `InitContainers:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.InitContainers), "Container", "k8s_io_api_core_v1.Container", 1), `&`, ``, 1) + `,`, + `PriorityClassName:` + fmt.Sprintf("%v", this.PriorityClassName) + `,`, + `Priority:` + valueToStringGenerated(this.Priority) + `,`, + `SecurityContext:` + strings.Replace(fmt.Sprintf("%v", this.SecurityContext), "PodSecurityContext", "k8s_io_api_core_v1.PodSecurityContext", 1) + `,`, + `LivenessProbe:` + strings.Replace(fmt.Sprintf("%v", this.LivenessProbe), "Probe", "k8s_io_api_core_v1.Probe", 1) + `,`, + `ReadinessProbe:` + strings.Replace(fmt.Sprintf("%v", this.ReadinessProbe), "Probe", "k8s_io_api_core_v1.Probe", 1) + `,`, + `Lifecycle:` + strings.Replace(fmt.Sprintf("%v", this.Lifecycle), "Lifecycle", "k8s_io_api_core_v1.Lifecycle", 1) + `,`, + `}`, + }, "") + return s +} +func (this *PodTemplateSpec) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&PodTemplateSpec{`, + `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "ObjectMeta", 1), `&`, ``, 1) + `,`, + `Controller:` + strings.Replace(strings.Replace(this.Controller.String(), "ObjectMeta", "ObjectMeta", 1), `&`, ``, 1) + `,`, + `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "PodSpec", "PodSpec", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *RuntimeSettings) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&RuntimeSettings{`, + `Pod:` + strings.Replace(fmt.Sprintf("%v", this.Pod), "PodRuntimeSettings", "PodRuntimeSettings", 1) + `,`, + `Container:` + strings.Replace(fmt.Sprintf("%v", this.Container), "ContainerRuntimeSettings", "ContainerRuntimeSettings", 1) + `,`, + `}`, + }, "") + return s +} +func (this *ServicePort) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ServicePort{`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `Port:` + fmt.Sprintf("%v", this.Port) + `,`, + `NodePort:` + fmt.Sprintf("%v", this.NodePort) + `,`, + `}`, + }, "") + return s +} +func (this *ServiceSpec) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ServiceSpec{`, + `Ports:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Ports), "ServicePort", "ServicePort", 1), `&`, ``, 1) + `,`, + `ClusterIP:` + fmt.Sprintf("%v", this.ClusterIP) + `,`, + `Type:` + fmt.Sprintf("%v", this.Type) + `,`, + `ExternalIPs:` + fmt.Sprintf("%v", this.ExternalIPs) + `,`, + `LoadBalancerIP:` + fmt.Sprintf("%v", this.LoadBalancerIP) + `,`, + `LoadBalancerSourceRanges:` + fmt.Sprintf("%v", this.LoadBalancerSourceRanges) + `,`, + `ExternalTrafficPolicy:` + fmt.Sprintf("%v", this.ExternalTrafficPolicy) + `,`, + `HealthCheckNodePort:` + fmt.Sprintf("%v", this.HealthCheckNodePort) + `,`, + `SessionAffinityConfig:` + strings.Replace(fmt.Sprintf("%v", this.SessionAffinityConfig), "SessionAffinityConfig", "k8s_io_api_core_v1.SessionAffinityConfig", 1) + `,`, + `}`, + }, "") + return s +} +func (this *ServiceTemplateSpec) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ServiceTemplateSpec{`, + `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "ObjectMeta", 1), `&`, ``, 1) + `,`, + `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "ServiceSpec", "ServiceSpec", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func valueToStringGenerated(v interface{}) string { + rv := reflect.ValueOf(v) + if rv.IsNil() { + return "nil" + } + pv := reflect.Indirect(rv).Interface() + return fmt.Sprintf("*%v", pv) +} +func (m *ContainerRuntimeSettings) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ContainerRuntimeSettings: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ContainerRuntimeSettings: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Resources", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Resources.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LivenessProbe", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.LivenessProbe == nil { + m.LivenessProbe = &k8s_io_api_core_v1.Probe{} + } + if err := m.LivenessProbe.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ReadinessProbe", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ReadinessProbe == nil { + m.ReadinessProbe = &k8s_io_api_core_v1.Probe{} + } + if err := m.ReadinessProbe.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Lifecycle", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Lifecycle == nil { + m.Lifecycle = &k8s_io_api_core_v1.Lifecycle{} + } + if err := m.Lifecycle.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SecurityContext", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SecurityContext == nil { + m.SecurityContext = &k8s_io_api_core_v1.SecurityContext{} + } + if err := m.SecurityContext.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Nice", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Nice == nil { + m.Nice = &NiceSettings{} + } + if err := m.Nice.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IONice", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.IONice == nil { + m.IONice = &IONiceSettings{} + } + if err := m.IONice.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EnvFrom", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.EnvFrom = append(m.EnvFrom, k8s_io_api_core_v1.EnvFromSource{}) + if err := m.EnvFrom[len(m.EnvFrom)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Env", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Env = append(m.Env, k8s_io_api_core_v1.EnvVar{}) + if err := m.Env[len(m.Env)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *IONiceSettings) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: IONiceSettings: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: IONiceSettings: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Class", wireType) + } + var v int32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= (int32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.Class = &v + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ClassData", wireType) + } + var v int32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= (int32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.ClassData = &v + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NiceSettings) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: NiceSettings: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NiceSettings: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Adjustment", wireType) + } + var v int32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= (int32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.Adjustment = &v + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ObjectMeta) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ObjectMeta: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ObjectMeta: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Annotations", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Annotations == nil { + m.Annotations = make(map[string]string) + } + var mapkey string + var mapvalue string + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return ErrInvalidLengthGenerated + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + var stringLenmapvalue uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapvalue |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapvalue := int(stringLenmapvalue) + if intStringLenmapvalue < 0 { + return ErrInvalidLengthGenerated + } + postStringIndexmapvalue := iNdEx + intStringLenmapvalue + if postStringIndexmapvalue > l { + return io.ErrUnexpectedEOF + } + mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) + iNdEx = postStringIndexmapvalue + } else { + iNdEx = entryPreIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.Annotations[mapkey] = mapvalue + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *PodRuntimeSettings) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: PodRuntimeSettings: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PodRuntimeSettings: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NodeSelector", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.NodeSelector == nil { + m.NodeSelector = make(map[string]string) + } + var mapkey string + var mapvalue string + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return ErrInvalidLengthGenerated + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + var stringLenmapvalue uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapvalue |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapvalue := int(stringLenmapvalue) + if intStringLenmapvalue < 0 { + return ErrInvalidLengthGenerated + } + postStringIndexmapvalue := iNdEx + intStringLenmapvalue + if postStringIndexmapvalue > l { + return io.ErrUnexpectedEOF + } + mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) + iNdEx = postStringIndexmapvalue + } else { + iNdEx = entryPreIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.NodeSelector[mapkey] = mapvalue + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ServiceAccountName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ServiceAccountName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AutomountServiceAccountToken", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.AutomountServiceAccountToken = &b + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NodeName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NodeName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SecurityContext", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SecurityContext == nil { + m.SecurityContext = &k8s_io_api_core_v1.PodSecurityContext{} + } + if err := m.SecurityContext.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ImagePullSecrets", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ImagePullSecrets = append(m.ImagePullSecrets, k8s_io_api_core_v1.LocalObjectReference{}) + if err := m.ImagePullSecrets[len(m.ImagePullSecrets)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Affinity", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Affinity == nil { + m.Affinity = &k8s_io_api_core_v1.Affinity{} + } + if err := m.Affinity.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SchedulerName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SchedulerName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tolerations", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Tolerations = append(m.Tolerations, k8s_io_api_core_v1.Toleration{}) + if err := m.Tolerations[len(m.Tolerations)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PriorityClassName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PriorityClassName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 11: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Priority", wireType) + } + var v int32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= (int32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.Priority = &v + case 12: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ReadinessGates", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ReadinessGates = append(m.ReadinessGates, k8s_io_api_core_v1.PodReadinessGate{}) + if err := m.ReadinessGates[len(m.ReadinessGates)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 13: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RuntimeClassName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.RuntimeClassName = &s + iNdEx = postIndex + case 14: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EnableServiceLinks", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.EnableServiceLinks = &b + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *PodSpec) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: PodSpec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PodSpec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ServiceAccountName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ServiceAccountName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Args", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Args = append(m.Args, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NodeSelector", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.NodeSelector == nil { + m.NodeSelector = make(map[string]string) + } + var mapkey string + var mapvalue string + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return ErrInvalidLengthGenerated + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + var stringLenmapvalue uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapvalue |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapvalue := int(stringLenmapvalue) + if intStringLenmapvalue < 0 { + return ErrInvalidLengthGenerated + } + postStringIndexmapvalue := iNdEx + intStringLenmapvalue + if postStringIndexmapvalue > l { + return io.ErrUnexpectedEOF + } + mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) + iNdEx = postStringIndexmapvalue + } else { + iNdEx = entryPreIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.NodeSelector[mapkey] = mapvalue + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Resources", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Resources.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Affinity", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Affinity == nil { + m.Affinity = &k8s_io_api_core_v1.Affinity{} + } + if err := m.Affinity.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SchedulerName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SchedulerName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tolerations", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Tolerations = append(m.Tolerations, k8s_io_api_core_v1.Toleration{}) + if err := m.Tolerations[len(m.Tolerations)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ImagePullSecrets", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ImagePullSecrets = append(m.ImagePullSecrets, k8s_io_api_core_v1.LocalObjectReference{}) + if err := m.ImagePullSecrets[len(m.ImagePullSecrets)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Env", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Env = append(m.Env, k8s_io_api_core_v1.EnvVar{}) + if err := m.Env[len(m.Env)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InitContainers", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.InitContainers = append(m.InitContainers, k8s_io_api_core_v1.Container{}) + if err := m.InitContainers[len(m.InitContainers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PriorityClassName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PriorityClassName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 12: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Priority", wireType) + } + var v int32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= (int32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.Priority = &v + case 13: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SecurityContext", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SecurityContext == nil { + m.SecurityContext = &k8s_io_api_core_v1.PodSecurityContext{} + } + if err := m.SecurityContext.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 14: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LivenessProbe", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.LivenessProbe == nil { + m.LivenessProbe = &k8s_io_api_core_v1.Probe{} + } + if err := m.LivenessProbe.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 15: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ReadinessProbe", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ReadinessProbe == nil { + m.ReadinessProbe = &k8s_io_api_core_v1.Probe{} + } + if err := m.ReadinessProbe.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 16: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Lifecycle", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Lifecycle == nil { + m.Lifecycle = &k8s_io_api_core_v1.Lifecycle{} + } + if err := m.Lifecycle.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *PodTemplateSpec) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: PodTemplateSpec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PodTemplateSpec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Controller", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Controller.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RuntimeSettings) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: RuntimeSettings: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RuntimeSettings: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pod", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pod == nil { + m.Pod = &PodRuntimeSettings{} + } + if err := m.Pod.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Container", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Container == nil { + m.Container = &ContainerRuntimeSettings{} + } + if err := m.Container.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ServicePort) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ServicePort: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ServicePort: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Port", wireType) + } + m.Port = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Port |= (int32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NodePort", wireType) + } + m.NodePort = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NodePort |= (int32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ServiceSpec) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ServiceSpec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ServiceSpec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ports", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Ports = append(m.Ports, ServicePort{}) + if err := m.Ports[len(m.Ports)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClusterIP", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ClusterIP = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Type = k8s_io_api_core_v1.ServiceType(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExternalIPs", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ExternalIPs = append(m.ExternalIPs, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LoadBalancerIP", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.LoadBalancerIP = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LoadBalancerSourceRanges", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.LoadBalancerSourceRanges = append(m.LoadBalancerSourceRanges, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExternalTrafficPolicy", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ExternalTrafficPolicy = k8s_io_api_core_v1.ServiceExternalTrafficPolicyType(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HealthCheckNodePort", wireType) + } + m.HealthCheckNodePort = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.HealthCheckNodePort |= (int32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SessionAffinityConfig", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SessionAffinityConfig == nil { + m.SessionAffinityConfig = &k8s_io_api_core_v1.SessionAffinityConfig{} + } + if err := m.SessionAffinityConfig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ServiceTemplateSpec) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ServiceTemplateSpec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ServiceTemplateSpec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipGenerated(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowGenerated + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowGenerated + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + return iNdEx, nil + case 1: + iNdEx += 8 + return iNdEx, nil + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowGenerated + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + iNdEx += length + if length < 0 { + return 0, ErrInvalidLengthGenerated + } + return iNdEx, nil + case 3: + for { + var innerWire uint64 + var start int = iNdEx + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowGenerated + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + innerWire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + innerWireType := int(innerWire & 0x7) + if innerWireType == 4 { + break + } + next, err := skipGenerated(dAtA[start:]) + if err != nil { + return 0, err + } + iNdEx = start + next + } + return iNdEx, nil + case 4: + return iNdEx, nil + case 5: + iNdEx += 4 + return iNdEx, nil + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + } + panic("unreachable") +} + +var ( + ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") +) + +func init() { + proto.RegisterFile("kmodules.xyz/offshoot-api/api/v1/generated.proto", fileDescriptorGenerated) +} + +var fileDescriptorGenerated = []byte{ + // 1648 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x58, 0x5f, 0x6f, 0x1b, 0x45, + 0x10, 0x8f, 0x63, 0x3b, 0xb1, 0xc7, 0xb1, 0x93, 0x6c, 0x9a, 0xea, 0x1a, 0x82, 0x1d, 0x0c, 0x42, + 0x41, 0xb4, 0x97, 0xa6, 0xf0, 0x50, 0x5a, 0x51, 0xc8, 0x85, 0xa4, 0xa4, 0xb8, 0x89, 0xb5, 0x49, + 0x11, 0x20, 0xfe, 0x5d, 0xce, 0x6b, 0xe7, 0x9a, 0xf3, 0xad, 0xb9, 0x5b, 0x5b, 0x75, 0x5f, 0xe8, + 0x33, 0x4f, 0x7c, 0x02, 0xbe, 0x09, 0x2f, 0x88, 0x87, 0x4a, 0x48, 0xa8, 0x8f, 0x7d, 0xb2, 0xe8, + 0xf1, 0x2d, 0x8a, 0x90, 0xd0, 0xee, 0xed, 0x9d, 0xcf, 0xf6, 0xb9, 0x69, 0xd3, 0x94, 0x07, 0x4b, + 0xbe, 0xd9, 0x99, 0xdf, 0xce, 0xcc, 0xed, 0xfc, 0x76, 0xe6, 0xe0, 0xf2, 0x71, 0x93, 0xd6, 0xda, + 0x16, 0x71, 0xd5, 0x7b, 0xdd, 0xfb, 0x6b, 0xb4, 0x5e, 0x77, 0x8f, 0x28, 0x65, 0x97, 0xf4, 0x96, + 0xb9, 0xc6, 0x7f, 0x9d, 0xf5, 0xb5, 0x06, 0xb1, 0x89, 0xa3, 0x33, 0x52, 0x53, 0x5b, 0x0e, 0x65, + 0x14, 0xad, 0x44, 0x2d, 0xd4, 0xc0, 0xe2, 0x3b, 0xbd, 0x65, 0xaa, 0xfc, 0xd7, 0x59, 0x5f, 0xba, + 0xd4, 0x30, 0xd9, 0x51, 0xfb, 0x50, 0x35, 0x68, 0x73, 0xad, 0x41, 0x1b, 0x74, 0x4d, 0x18, 0x1e, + 0xb6, 0xeb, 0xe2, 0x49, 0x3c, 0x88, 0x7f, 0x3e, 0xe0, 0x52, 0xf9, 0xf8, 0xaa, 0xab, 0x9a, 0x54, + 0xec, 0x67, 0x50, 0x87, 0xc4, 0x6c, 0x5a, 0xfe, 0x37, 0x0d, 0xca, 0x26, 0xb5, 0x99, 0x6e, 0xda, + 0xc4, 0xc1, 0x6d, 0x9b, 0x99, 0x4d, 0xb2, 0x4f, 0x18, 0x33, 0xed, 0x86, 0x8b, 0xbe, 0x84, 0xac, + 0x43, 0x5c, 0xda, 0x76, 0x0c, 0xe2, 0x2a, 0x89, 0x95, 0xc4, 0x6a, 0xee, 0xca, 0xaa, 0xea, 0x83, + 0x0a, 0x97, 0x38, 0xa8, 0xda, 0x59, 0x57, 0xb1, 0x54, 0xc2, 0xe4, 0x87, 0xb6, 0xe9, 0x90, 0x26, + 0xb1, 0x99, 0xab, 0xcd, 0x3f, 0xec, 0x95, 0x26, 0xbc, 0x5e, 0x29, 0x1b, 0xac, 0xba, 0xb8, 0x8f, + 0x86, 0x30, 0xe4, 0x2d, 0xb3, 0x43, 0x6c, 0xe2, 0xba, 0x55, 0x87, 0x1e, 0x12, 0x65, 0x52, 0xc0, + 0x5f, 0x88, 0x83, 0x17, 0x0a, 0xda, 0xbc, 0xd7, 0x2b, 0xe5, 0x2b, 0x51, 0x1b, 0x3c, 0x08, 0x81, + 0xee, 0x40, 0xc1, 0x21, 0x7a, 0xcd, 0xec, 0x83, 0x26, 0x4f, 0x02, 0x45, 0x5e, 0xaf, 0x54, 0xc0, + 0x03, 0x46, 0x78, 0x08, 0x04, 0xdd, 0x82, 0xac, 0x65, 0xd6, 0x89, 0xd1, 0x35, 0x2c, 0xa2, 0xa4, + 0x04, 0xe2, 0xeb, 0x71, 0x88, 0x95, 0x40, 0x49, 0xcb, 0xf3, 0xb0, 0xc3, 0x47, 0xdc, 0x37, 0x47, + 0x87, 0x30, 0xeb, 0x12, 0xa3, 0xed, 0x98, 0xac, 0xcb, 0xb3, 0x4e, 0xee, 0x31, 0x25, 0x2d, 0x10, + 0xdf, 0x8c, 0x43, 0xdc, 0x1f, 0x54, 0xd5, 0x16, 0xbc, 0x5e, 0x69, 0x76, 0x48, 0x88, 0x87, 0x01, + 0x51, 0x05, 0x52, 0xb6, 0x69, 0x10, 0x65, 0x4a, 0x00, 0xab, 0xea, 0x49, 0xc7, 0x4a, 0xdd, 0x35, + 0x8d, 0xf0, 0x9d, 0x6b, 0x19, 0xaf, 0x57, 0x4a, 0x71, 0x09, 0x16, 0x28, 0xe8, 0x00, 0xa6, 0x4c, + 0x2a, 0xf0, 0xa6, 0x05, 0xde, 0xe5, 0x93, 0xf1, 0x76, 0xf6, 0x06, 0x10, 0xc1, 0xeb, 0x95, 0xa6, + 0x7c, 0x19, 0x96, 0x58, 0xa8, 0x02, 0xd3, 0xc4, 0xee, 0x6c, 0x3b, 0xb4, 0xa9, 0x64, 0x56, 0x92, + 0xab, 0xb9, 0x2b, 0x6f, 0xc4, 0xc5, 0xbf, 0xe5, 0xab, 0xec, 0x8b, 0x33, 0xa3, 0xcd, 0xca, 0x03, + 0x35, 0x2d, 0xc5, 0x38, 0x80, 0x40, 0x1f, 0x40, 0x92, 0xd8, 0x1d, 0x25, 0x2b, 0x90, 0x96, 0xc6, + 0x20, 0x7d, 0xae, 0x3b, 0x5a, 0x4e, 0x42, 0x24, 0xb7, 0xec, 0x0e, 0xe6, 0x36, 0xe5, 0x6f, 0xa1, + 0x30, 0xe8, 0x2e, 0x2a, 0x41, 0xda, 0xb0, 0x74, 0xd7, 0x3f, 0xf0, 0x69, 0x2d, 0xeb, 0xf5, 0x4a, + 0xe9, 0x4d, 0x2e, 0xc0, 0xbe, 0x1c, 0xbd, 0x0b, 0x59, 0xf1, 0xe7, 0x13, 0x9d, 0xe9, 0xe2, 0xd8, + 0xa6, 0xfd, 0x17, 0xbe, 0x19, 0x08, 0x71, 0x7f, 0xbd, 0x7c, 0x03, 0x66, 0x06, 0xd0, 0x55, 0x00, + 0xbd, 0x76, 0xb7, 0xed, 0x32, 0x5e, 0x24, 0x72, 0x8b, 0x82, 0xd7, 0x2b, 0xc1, 0x46, 0x28, 0xc5, + 0x11, 0x8d, 0xf2, 0x6f, 0x09, 0x80, 0xbd, 0xc3, 0xbb, 0xc4, 0x60, 0xb7, 0x09, 0xd3, 0x11, 0x83, + 0x9c, 0x6e, 0xdb, 0x94, 0xe9, 0xcc, 0xa4, 0x36, 0x77, 0x91, 0x47, 0xfc, 0xe1, 0xc9, 0xaf, 0xa4, + 0x0f, 0xa1, 0x6e, 0xf4, 0xed, 0xb7, 0x6c, 0xe6, 0x74, 0xb5, 0x05, 0x99, 0x94, 0x5c, 0x64, 0x05, + 0x47, 0xb7, 0x59, 0xba, 0x01, 0x73, 0xc3, 0x56, 0x68, 0x0e, 0x92, 0xc7, 0xa4, 0x2b, 0x22, 0xc8, + 0x62, 0xfe, 0x17, 0x9d, 0x83, 0x74, 0x47, 0xb7, 0xda, 0x7e, 0x29, 0x67, 0xb1, 0xff, 0x70, 0x6d, + 0xf2, 0x6a, 0xa2, 0xfc, 0x67, 0x16, 0x50, 0x95, 0xd6, 0x86, 0xe9, 0xe5, 0x41, 0x02, 0x66, 0x6c, + 0x5a, 0x23, 0xfb, 0xc4, 0x22, 0x06, 0xa3, 0x8e, 0x0c, 0x67, 0xfb, 0xe4, 0x70, 0x46, 0xc1, 0xd4, + 0xdd, 0x08, 0x90, 0x1f, 0xd7, 0x39, 0x19, 0xd7, 0x4c, 0x74, 0x09, 0x0f, 0xec, 0x88, 0x6e, 0x01, + 0x72, 0x89, 0xd3, 0x31, 0x0d, 0xb2, 0x61, 0x18, 0xb4, 0x6d, 0xb3, 0x5d, 0xbd, 0x29, 0x03, 0xd0, + 0x96, 0xa4, 0x3d, 0xda, 0x1f, 0xd1, 0xc0, 0x31, 0x56, 0xa8, 0x06, 0xcb, 0x7a, 0x9b, 0xd1, 0x26, + 0x17, 0x0c, 0x9a, 0x1c, 0xd0, 0x63, 0x62, 0x0b, 0x32, 0xca, 0x68, 0x2b, 0x5e, 0xaf, 0xb4, 0xbc, + 0xf1, 0x0c, 0x3d, 0xfc, 0x4c, 0x14, 0x74, 0x11, 0x32, 0x3c, 0x02, 0xe1, 0x67, 0x4a, 0xf8, 0x39, + 0x27, 0xfd, 0xcc, 0xec, 0x4a, 0x39, 0x0e, 0x35, 0x10, 0x19, 0xc7, 0x37, 0x6f, 0xc7, 0x72, 0x22, + 0xad, 0x9d, 0x8e, 0x72, 0x6c, 0x98, 0x33, 0x9b, 0x7a, 0x83, 0x54, 0xdb, 0x96, 0xb5, 0x4f, 0x0c, + 0x87, 0x30, 0x57, 0x99, 0x12, 0x2f, 0x33, 0xf6, 0xbe, 0xa8, 0x50, 0x43, 0xb7, 0xfc, 0x23, 0x89, + 0x49, 0x9d, 0x38, 0xc4, 0x36, 0x88, 0xa6, 0xc8, 0x30, 0xe6, 0x76, 0x86, 0x90, 0xf0, 0x08, 0x36, + 0xda, 0x86, 0x8c, 0x5e, 0xaf, 0x9b, 0xb6, 0xc9, 0xba, 0x92, 0x96, 0x96, 0xe3, 0xf6, 0xd9, 0x90, + 0x3a, 0xda, 0x0c, 0x4f, 0x4f, 0xf0, 0x84, 0x43, 0x5b, 0x74, 0x1d, 0xf2, 0xae, 0x71, 0x44, 0xf8, + 0x61, 0x73, 0x44, 0x46, 0x33, 0x22, 0xa3, 0x8b, 0xd2, 0x95, 0xfc, 0x7e, 0x74, 0x11, 0x0f, 0xea, + 0xa2, 0x3b, 0x90, 0x63, 0xd4, 0xe2, 0xb7, 0xa9, 0xa8, 0x45, 0x9f, 0x7d, 0x8a, 0x71, 0x7e, 0x1c, + 0x84, 0x6a, 0xfd, 0x62, 0xeb, 0xcb, 0x5c, 0x1c, 0xc5, 0x41, 0x37, 0x61, 0xbe, 0xe5, 0x98, 0x54, + 0xa4, 0x97, 0xd3, 0x88, 0xf0, 0x0b, 0x84, 0x5f, 0x17, 0xa4, 0xf1, 0x7c, 0x75, 0x58, 0x01, 0x8f, + 0xda, 0xa0, 0x55, 0xc8, 0x04, 0x42, 0x25, 0x27, 0x88, 0x46, 0xa4, 0x21, 0xb0, 0xc5, 0xe1, 0x2a, + 0xaa, 0x45, 0x2e, 0xce, 0x9b, 0x3a, 0x23, 0xae, 0x32, 0x23, 0x82, 0x79, 0x6b, 0xcc, 0x21, 0xc1, + 0x51, 0x65, 0xed, 0xbc, 0xf4, 0xaa, 0x30, 0x20, 0x76, 0xf1, 0x10, 0x26, 0xfa, 0x18, 0xe6, 0x1c, + 0xbf, 0x68, 0xfb, 0x71, 0xe5, 0x45, 0x5c, 0xe7, 0xf8, 0x6b, 0xc7, 0x43, 0x6b, 0x78, 0x44, 0x1b, + 0x6d, 0x03, 0x22, 0xb6, 0x7e, 0x68, 0x11, 0x59, 0x18, 0x15, 0xd3, 0x3e, 0x76, 0x95, 0x82, 0xa8, + 0xab, 0xf3, 0xbc, 0x52, 0xb7, 0x46, 0x56, 0x71, 0x8c, 0xc5, 0xd2, 0x47, 0x30, 0x3f, 0x42, 0x17, + 0x2f, 0x44, 0x68, 0xbf, 0x02, 0x4c, 0xf3, 0x62, 0x69, 0x11, 0x63, 0x0c, 0x85, 0x24, 0x4e, 0x45, + 0x21, 0xcb, 0x90, 0xd2, 0x9d, 0x86, 0xab, 0x4c, 0xae, 0x24, 0x57, 0xb3, 0xfe, 0x55, 0xbc, 0xe1, + 0x34, 0x5c, 0x2c, 0xa4, 0xa8, 0x3d, 0x44, 0x97, 0x49, 0xf1, 0x92, 0xae, 0x3f, 0x17, 0x5d, 0x72, + 0x57, 0x4f, 0xc9, 0x91, 0x03, 0x5d, 0x60, 0xea, 0x4c, 0xbb, 0xc0, 0x68, 0x1d, 0xa7, 0xcf, 0xb2, + 0x8e, 0xa7, 0x4e, 0x5f, 0xc7, 0xd3, 0x67, 0x54, 0xc7, 0x71, 0x9c, 0x98, 0x79, 0x85, 0x9c, 0x78, + 0xfa, 0x26, 0x08, 0x7d, 0x03, 0x05, 0x9e, 0xc7, 0x70, 0x0e, 0x70, 0x15, 0x10, 0x28, 0xb1, 0x6d, + 0x6e, 0xa8, 0xd5, 0x2f, 0xfc, 0x9d, 0x01, 0x63, 0x3c, 0x04, 0x16, 0xcf, 0x68, 0xb9, 0x97, 0x64, + 0xb4, 0x99, 0x67, 0x32, 0x5a, 0xcc, 0xbd, 0x97, 0x7f, 0x05, 0xf7, 0xde, 0xc8, 0x14, 0x53, 0x78, + 0x15, 0x53, 0xcc, 0xec, 0x99, 0x4f, 0x31, 0x73, 0x2f, 0x35, 0xc5, 0xbc, 0x3c, 0x7f, 0xfe, 0x32, + 0x09, 0xb3, 0x55, 0x5a, 0x3b, 0x20, 0xcd, 0x96, 0xa5, 0x33, 0x22, 0x78, 0xf4, 0x6b, 0xc8, 0x34, + 0x09, 0xd3, 0x6b, 0xbc, 0xab, 0xf6, 0x67, 0xcd, 0x8b, 0x2f, 0xd2, 0xd7, 0x6a, 0x48, 0x1e, 0xa5, + 0x48, 0xbb, 0x8c, 0x43, 0x44, 0xf4, 0x3d, 0x80, 0x41, 0x6d, 0xe6, 0x50, 0xcb, 0x22, 0x8e, 0x1c, + 0x36, 0x4f, 0x89, 0xbf, 0x19, 0xe2, 0xe0, 0x08, 0x26, 0xfa, 0x0c, 0x52, 0x6e, 0x8b, 0x18, 0x72, + 0xe6, 0x7c, 0xe7, 0xb9, 0x59, 0x59, 0x9b, 0x91, 0xc0, 0x29, 0xfe, 0x84, 0x05, 0x48, 0xf9, 0x8f, + 0x04, 0xcc, 0x0e, 0xb7, 0xcb, 0x7b, 0x90, 0x6c, 0xd1, 0x9a, 0xcc, 0xcd, 0xfb, 0xa7, 0x69, 0x92, + 0xb5, 0x69, 0x5e, 0xf6, 0x5c, 0xce, 0x91, 0x50, 0x03, 0xb2, 0x46, 0x50, 0xa5, 0x32, 0x25, 0xd7, + 0x4e, 0x86, 0x1d, 0xf7, 0xb5, 0x40, 0x0e, 0x41, 0xe1, 0x6a, 0x1f, 0xbb, 0xfc, 0x23, 0xe4, 0xe4, + 0x05, 0x58, 0xa5, 0x0e, 0x43, 0x2b, 0x90, 0xb2, 0xfb, 0x77, 0x64, 0x18, 0xbe, 0xa8, 0x7a, 0xb1, + 0xc2, 0x35, 0x5a, 0xd4, 0x61, 0x72, 0xba, 0x0a, 0x35, 0xb8, 0x35, 0x16, 0x2b, 0x41, 0x1b, 0xcc, + 0x25, 0x22, 0xe3, 0xe9, 0xc1, 0x36, 0x58, 0x68, 0x86, 0x1a, 0xe5, 0x7f, 0xd2, 0xa1, 0x07, 0xe2, + 0xac, 0x61, 0x48, 0x73, 0x94, 0x60, 0x80, 0xba, 0x74, 0x72, 0xd4, 0x11, 0xff, 0xb5, 0xbc, 0xdc, + 0x29, 0xcd, 0x9f, 0x5c, 0xec, 0x43, 0xa1, 0x35, 0x3e, 0x16, 0xb6, 0x5d, 0x46, 0x9c, 0x9d, 0xaa, + 0x9c, 0x20, 0xc2, 0xcb, 0x6f, 0x33, 0x58, 0xc0, 0x7d, 0x1d, 0xa4, 0x41, 0x8a, 0x75, 0x5b, 0xfe, + 0x47, 0x8a, 0xac, 0xa6, 0x06, 0x41, 0x1e, 0x74, 0x5b, 0xe4, 0x69, 0xaf, 0x54, 0x1c, 0xfd, 0x78, + 0x13, 0x38, 0xc1, 0x35, 0xb0, 0xb0, 0x45, 0xeb, 0x90, 0x23, 0xf7, 0x18, 0x71, 0x6c, 0xdd, 0xda, + 0xa9, 0xf2, 0xdb, 0x99, 0xf7, 0x0d, 0xb3, 0xfc, 0x5e, 0xda, 0xea, 0x8b, 0x71, 0x54, 0x07, 0xdd, + 0x80, 0x82, 0x45, 0xf5, 0x9a, 0xa6, 0x5b, 0xba, 0x6d, 0x08, 0x67, 0xd3, 0xc2, 0x81, 0x90, 0xcd, + 0x2b, 0x03, 0xab, 0x78, 0x48, 0x1b, 0x7d, 0x01, 0x4a, 0x54, 0xe2, 0x0f, 0xe7, 0x58, 0xb7, 0x1b, + 0xc4, 0xef, 0xf9, 0xb3, 0xda, 0xb2, 0xd7, 0x2b, 0x29, 0x95, 0x31, 0x3a, 0x78, 0xac, 0x35, 0xfa, + 0x29, 0x01, 0x8b, 0x81, 0xa7, 0x07, 0x0e, 0xbf, 0xdc, 0x8d, 0x2a, 0xb5, 0x4c, 0xc3, 0xef, 0xf1, + 0xb3, 0xda, 0x81, 0xf4, 0x70, 0x71, 0x2b, 0x4e, 0xe9, 0x69, 0xaf, 0xf4, 0xde, 0xf8, 0x9c, 0xc5, + 0x9a, 0x88, 0x44, 0xc6, 0x6f, 0x89, 0x6e, 0xc3, 0xc2, 0x11, 0xd1, 0x2d, 0x76, 0xb4, 0x79, 0x44, + 0x8c, 0xe3, 0xe0, 0x4c, 0x89, 0x01, 0x21, 0xad, 0xbd, 0x26, 0x3d, 0x59, 0xf8, 0x74, 0x54, 0x05, + 0xc7, 0xd9, 0xa1, 0xfb, 0xb0, 0xe8, 0x12, 0xd7, 0x35, 0xa9, 0x1d, 0xb4, 0x2f, 0x9b, 0xd4, 0xae, + 0x9b, 0x0d, 0x25, 0x1b, 0xd0, 0x45, 0xdc, 0xe7, 0x9f, 0x18, 0x03, 0xed, 0x02, 0xcf, 0x40, 0xec, + 0x12, 0x8e, 0xdf, 0xa2, 0xfc, 0x7b, 0x02, 0x16, 0x82, 0xa3, 0xf3, 0xff, 0x31, 0xee, 0x9e, 0xe4, + 0x43, 0x9f, 0x58, 0x9e, 0xbf, 0xc4, 0xc6, 0x71, 0xa2, 0xb6, 0xfa, 0xf0, 0x49, 0x71, 0xe2, 0xd1, + 0x93, 0xe2, 0xc4, 0xe3, 0x27, 0xc5, 0x89, 0x07, 0x5e, 0x31, 0xf1, 0xd0, 0x2b, 0x26, 0x1e, 0x79, + 0xc5, 0xc4, 0x63, 0xaf, 0x98, 0xf8, 0xcb, 0x2b, 0x26, 0x7e, 0xfe, 0xbb, 0x38, 0xf1, 0xd5, 0x64, + 0x67, 0xfd, 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x1c, 0x3a, 0x9c, 0x4a, 0x7c, 0x15, 0x00, 0x00, +} diff --git a/vendor/kmodules.xyz/offshoot-api/api/v1/generated.proto b/vendor/kmodules.xyz/offshoot-api/api/v1/generated.proto new file mode 100644 index 000000000..0aad159fe --- /dev/null +++ b/vendor/kmodules.xyz/offshoot-api/api/v1/generated.proto @@ -0,0 +1,451 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// This file was autogenerated by go-to-protobuf. Do not edit it manually! + +syntax = 'proto2'; + +package kmodules.xyz.offshoot_api.api.v1; + +import "k8s.io/api/core/v1/generated.proto"; + +// Package-wide variables from generator "generated". +option go_package = "v1"; + +message ContainerRuntimeSettings { + // Compute Resources required by container. + // Cannot be updated. + // More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + // +optional + optional k8s.io.api.core.v1.ResourceRequirements resources = 1; + + // Periodic probe of container liveness. + // Container will be restarted if the probe fails. + // Cannot be updated. + // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + // +optional + optional k8s.io.api.core.v1.Probe livenessProbe = 2; + + // Periodic probe of container service readiness. + // Container will be removed from service endpoints if the probe fails. + // Cannot be updated. + // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + // +optional + optional k8s.io.api.core.v1.Probe readinessProbe = 3; + + // Actions that the management system should take in response to container lifecycle events. + // Cannot be updated. + // +optional + optional k8s.io.api.core.v1.Lifecycle lifecycle = 4; + + // Security options the pod should run with. + // More info: https://kubernetes.io/docs/concepts/policy/security-context/ + // More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + // +optional + optional k8s.io.api.core.v1.SecurityContext securityContext = 5; + + // Settings to configure `nice` to throttle the load on cpu. + // More info: http://kennystechtalk.blogspot.com/2015/04/throttling-cpu-usage-with-linux-cgroups.html + // More info: https://oakbytes.wordpress.com/2012/06/06/linux-scheduler-cfs-and-nice/ + // +optional + optional NiceSettings nice = 6; + + // Settings to configure `ionice` to throttle the load on disk. + // More info: http://kennystechtalk.blogspot.com/2015/04/throttling-cpu-usage-with-linux-cgroups.html + // More info: https://oakbytes.wordpress.com/2012/06/06/linux-scheduler-cfs-and-nice/ + // +optional + optional IONiceSettings ionice = 7; + + // List of sources to populate environment variables in the container. + // The keys defined within a source must be a C_IDENTIFIER. All invalid keys + // will be reported as an event when the container is starting. When a key exists in multiple + // sources, the value associated with the last source will take precedence. + // Values defined by an Env with a duplicate key will take precedence. + // Cannot be updated. + // +optional + repeated k8s.io.api.core.v1.EnvFromSource envFrom = 8; + + // List of environment variables to set in the container. + // Cannot be updated. + // +optional + // +patchMergeKey=name + // +patchStrategy=merge + repeated k8s.io.api.core.v1.EnvVar env = 9; +} + +// https://linux.die.net/man/1/ionice +message IONiceSettings { + optional int32 class = 1; + + optional int32 classData = 2; +} + +// https://linux.die.net/man/1/nice +message NiceSettings { + optional int32 adjustment = 1; +} + +// ObjectMeta is metadata that all persisted resources must have, which includes all objects +// users must create. +message ObjectMeta { + // Annotations is an unstructured key value map stored with a resource that may be + // set by external tools to store and retrieve arbitrary metadata. They are not + // queryable and should be preserved when modifying objects. + // More info: http://kubernetes.io/docs/user-guide/annotations + // +optional + map annotations = 1; +} + +message PodRuntimeSettings { + // NodeSelector is a selector which must be true for the pod to fit on a node. + // Selector which must match a node's labels for the pod to be scheduled on that node. + // More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + // +optional + map nodeSelector = 1; + + // ServiceAccountName is the name of the ServiceAccount to use to run this pod. + // More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + // +optional + optional string serviceAccountName = 2; + + // AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. + // +optional + optional bool automountServiceAccountToken = 3; + + // NodeName is a request to schedule this pod onto a specific node. If it is non-empty, + // the scheduler simply schedules this pod onto that node, assuming that it fits resource + // requirements. + // +optional + optional string nodeName = 4; + + // Security options the pod should run with. + // More info: https://kubernetes.io/docs/concepts/policy/security-context/ + // More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + // +optional + optional k8s.io.api.core.v1.PodSecurityContext securityContext = 5; + + // ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodRuntimeSettings. + // If specified, these secrets will be passed to individual puller implementations for them to use. For example, + // in the case of docker, only DockerConfig type secrets are honored. + // More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod + // +optional + repeated k8s.io.api.core.v1.LocalObjectReference imagePullSecrets = 6; + + // If specified, the pod's scheduling constraints + // +optional + optional k8s.io.api.core.v1.Affinity affinity = 7; + + // If specified, the pod will be dispatched by specified scheduler. + // If not specified, the pod will be dispatched by default scheduler. + // +optional + optional string schedulerName = 8; + + // If specified, the pod's tolerations. + // +optional + repeated k8s.io.api.core.v1.Toleration tolerations = 9; + + // If specified, indicates the pod's priority. "system-node-critical" and + // "system-cluster-critical" are two special keywords which indicate the + // highest priorities with the former being the highest priority. Any other + // name must be defined by creating a PriorityClass object with that name. + // If not specified, the pod priority will be default or zero if there is no + // default. + // +optional + optional string priorityClassName = 10; + + // The priority value. Various system components use this field to find the + // priority of the pod. When Priority Admission Controller is enabled, it + // prevents users from setting this field. The admission controller populates + // this field from PriorityClassName. + // The higher the value, the higher the priority. + // +optional + optional int32 priority = 11; + + // If specified, all readiness gates will be evaluated for pod readiness. + // A pod is ready when all its containers are ready AND + // all conditions specified in the readiness gates have status equal to "True" + // More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md + // +optional + repeated k8s.io.api.core.v1.PodReadinessGate readinessGates = 12; + + // RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used + // to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. + // If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an + // empty definition that uses the default runtime handler. + // More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md + // This is an alpha feature and may change in the future. + // +optional + optional string runtimeClassName = 13; + + // EnableServiceLinks indicates whether information about services should be injected into pod's + // environment variables, matching the syntax of Docker links. + // Optional: Defaults to true. + // +optional + optional bool enableServiceLinks = 14; +} + +message PodSpec { + // ServiceAccountName is the name of the ServiceAccount to use to run this pod. + // More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + // +optional + optional string serviceAccountName = 1; + + // Arguments to the entrypoint. + // The docker image's CMD is used if this is not provided. + // Variable references $(VAR_NAME) are expanded using the container's environment. If a variable + // cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax + // can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, + // regardless of whether the variable exists or not. + // Cannot be updated. + // More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + // +optional + repeated string args = 2; + + // NodeSelector is a selector which must be true for the pod to fit on a node. + // Selector which must match a node's labels for the pod to be scheduled on that node. + // More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + // +optional + map nodeSelector = 3; + + // Compute Resources required by the sidecar container. + optional k8s.io.api.core.v1.ResourceRequirements resources = 4; + + // If specified, the pod's scheduling constraints + // +optional + optional k8s.io.api.core.v1.Affinity affinity = 5; + + // If specified, the pod will be dispatched by specified scheduler. + // If not specified, the pod will be dispatched by default scheduler. + // +optional + optional string schedulerName = 6; + + // If specified, the pod's tolerations. + // +optional + repeated k8s.io.api.core.v1.Toleration tolerations = 7; + + // ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. + // If specified, these secrets will be passed to individual puller implementations for them to use. + // +optional + repeated k8s.io.api.core.v1.LocalObjectReference imagePullSecrets = 8; + + // List of environment variables to set in the container. + // Cannot be updated. + // +optional + repeated k8s.io.api.core.v1.EnvVar env = 9; + + // List of initialization containers belonging to the pod. + // Init containers are executed in order prior to containers being started. If any + // init container fails, the pod is considered to have failed and is handled according + // to its restartPolicy. The name for an init container or normal container must be + // unique among all containers. + // Init containers may not have Lifecycle actions, Readiness probes, or Liveness probes. + // The resourceRequirements of an init container are taken into account during scheduling + // by finding the highest request/limit for each resource type, and then using the max of + // of that value or the sum of the normal containers. Limits are applied to init containers + // in a similar fashion. + // Init containers cannot currently be added or removed. + // Cannot be updated. + // More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ + // +patchMergeKey=name + // +patchStrategy=merge + repeated k8s.io.api.core.v1.Container initContainers = 10; + + // If specified, indicates the pod's priority. "system-node-critical" and + // "system-cluster-critical" are two special keywords which indicate the + // highest priorities with the former being the highest priority. Any other + // name must be defined by creating a PriorityClass object with that name. + // If not specified, the pod priority will be default or zero if there is no + // default. + // +optional + optional string priorityClassName = 11; + + // The priority value. Various system components use this field to find the + // priority of the pod. When Priority Admission Controller is enabled, it + // prevents users from setting this field. The admission controller populates + // this field from PriorityClassName. + // The higher the value, the higher the priority. + // +optional + optional int32 priority = 12; + + // SecurityContext holds pod-level security attributes and common container settings. + // Optional: Defaults to empty. See type description for default values of each field. + // +optional + optional k8s.io.api.core.v1.PodSecurityContext securityContext = 13; + + // Periodic probe of container liveness. + // Container will be restarted if the probe fails. + // Controllers may set default LivenessProbe if no liveness probe is provided. + // To ignore defaulting, set the value to empty LivenessProbe "{}". + // Cannot be updated. + // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + // +optional + optional k8s.io.api.core.v1.Probe livenessProbe = 14; + + // Periodic probe of container service readiness. + // Container will be removed from service endpoints if the probe fails. + // Cannot be updated. + // Controllers may set default ReadinessProbe if no readyness probe is provided. + // To ignore defaulting, set the value to empty ReadynessProbe "{}". + // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + // +optional + optional k8s.io.api.core.v1.Probe readinessProbe = 15; + + // Actions that the management system should take in response to container lifecycle events. + // Cannot be updated. + // +optional + optional k8s.io.api.core.v1.Lifecycle lifecycle = 16; +} + +// PodTemplateSpec describes the data a pod should have when created from a template +message PodTemplateSpec { + // Standard object's metadata. + // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + // +optional + optional ObjectMeta metadata = 1; + + // Workload controller's metadata. + // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + // +optional + optional ObjectMeta controller = 2; + + // Specification of the desired behavior of the pod. + // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + // +optional + optional PodSpec spec = 3; +} + +message RuntimeSettings { + optional PodRuntimeSettings pod = 1; + + optional ContainerRuntimeSettings container = 2; +} + +// ServicePort contains information on service's port. +message ServicePort { + // The name of this port within the service. This must be a DNS_LABEL. + // All ports within a ServiceSpec must have unique names. This maps to + // the 'Name' field in EndpointPort objects. + // Optional if only one ServicePort is defined on this service. + // +optional + optional string name = 1; + + // The port that will be exposed by this service. + optional int32 port = 2; + + // The port on each node on which this service is exposed when type=NodePort or LoadBalancer. + // Usually assigned by the system. If specified, it will be allocated to the service + // if unused or else creation of the service will fail. + // Default is to auto-allocate a port if the ServiceType of this Service requires one. + // More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport + // +optional + optional int32 nodePort = 3; +} + +// ServiceSpec describes the attributes that a user creates on a service. +message ServiceSpec { + // The list of ports that are exposed by this service. + // More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies + // +patchMergeKey=port + // +patchStrategy=merge + repeated ServicePort ports = 1; + + // clusterIP is the IP address of the service and is usually assigned + // randomly by the master. If an address is specified manually and is not in + // use by others, it will be allocated to the service; otherwise, creation + // of the service will fail. This field can not be changed through updates. + // Valid values are "None", empty string (""), or a valid IP address. "None" + // can be specified for headless services when proxying is not required. + // Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if + // type is ExternalName. + // More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies + // +optional + optional string clusterIP = 2; + + // type determines how the Service is exposed. Defaults to ClusterIP. Valid + // options are ExternalName, ClusterIP, NodePort, and LoadBalancer. + // "ExternalName" maps to the specified externalName. + // "ClusterIP" allocates a cluster-internal IP address for load-balancing to + // endpoints. Endpoints are determined by the selector or if that is not + // specified, by manual construction of an Endpoints object. If clusterIP is + // "None", no virtual IP is allocated and the endpoints are published as a + // set of endpoints rather than a stable IP. + // "NodePort" builds on ClusterIP and allocates a port on every node which + // routes to the clusterIP. + // "LoadBalancer" builds on NodePort and creates an + // external load-balancer (if supported in the current cloud) which routes + // to the clusterIP. + // More info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services---service-types + // +optional + optional string type = 3; + + // externalIPs is a list of IP addresses for which nodes in the cluster + // will also accept traffic for this service. These IPs are not managed by + // Kubernetes. The user is responsible for ensuring that traffic arrives + // at a node with this IP. A common example is external load-balancers + // that are not part of the Kubernetes system. + // +optional + repeated string externalIPs = 4; + + // Only applies to Service Type: LoadBalancer + // LoadBalancer will get created with the IP specified in this field. + // This feature depends on whether the underlying cloud-provider supports specifying + // the loadBalancerIP when a load balancer is created. + // This field will be ignored if the cloud-provider does not support the feature. + // +optional + optional string loadBalancerIP = 5; + + // If specified and supported by the platform, this will restrict traffic through the cloud-provider + // load-balancer will be restricted to the specified client IPs. This field will be ignored if the + // cloud-provider does not support the feature." + // More info: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/ + // +optional + repeated string loadBalancerSourceRanges = 6; + + // externalTrafficPolicy denotes if this Service desires to route external + // traffic to node-local or cluster-wide endpoints. "Local" preserves the + // client source IP and avoids a second hop for LoadBalancer and Nodeport + // type services, but risks potentially imbalanced traffic spreading. + // "Cluster" obscures the client source IP and may cause a second hop to + // another node, but should have good overall load-spreading. + // +optional + optional string externalTrafficPolicy = 7; + + // healthCheckNodePort specifies the healthcheck nodePort for the service. + // If not specified, HealthCheckNodePort is created by the service api + // backend with the allocated nodePort. Will use user-specified nodePort value + // if specified by the client. Only effects when Type is set to LoadBalancer + // and ExternalTrafficPolicy is set to Local. + // +optional + optional int32 healthCheckNodePort = 8; + + // sessionAffinityConfig contains the configurations of session affinity. + // +optional + optional k8s.io.api.core.v1.SessionAffinityConfig sessionAffinityConfig = 9; +} + +// ServiceTemplateSpec describes the data a service should have when created from a template +message ServiceTemplateSpec { + // Standard object's metadata. + // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + // +optional + optional ObjectMeta metadata = 1; + + // Specification of the desired behavior of the service. + // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + // +optional + optional ServiceSpec spec = 2; +} + diff --git a/vendor/kmodules.xyz/offshoot-api/api/v1/openapi_generated.go b/vendor/kmodules.xyz/offshoot-api/api/v1/openapi_generated.go index 0dac20fe0..60d58f72b 100644 --- a/vendor/kmodules.xyz/offshoot-api/api/v1/openapi_generated.go +++ b/vendor/kmodules.xyz/offshoot-api/api/v1/openapi_generated.go @@ -1,7 +1,7 @@ // +build !ignore_autogenerated /* -Copyright 2019 The Kmodules Authors. +Copyright The Kmodules Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/vendor/kmodules.xyz/offshoot-api/api/v1/runtime_settings_types.go b/vendor/kmodules.xyz/offshoot-api/api/v1/runtime_settings_types.go index 25c0ba2f8..7442cf0d2 100644 --- a/vendor/kmodules.xyz/offshoot-api/api/v1/runtime_settings_types.go +++ b/vendor/kmodules.xyz/offshoot-api/api/v1/runtime_settings_types.go @@ -1,3 +1,19 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package v1 import ( @@ -5,8 +21,8 @@ import ( ) type RuntimeSettings struct { - Pod *PodRuntimeSettings `json:"pod,omitempty"` - Container *ContainerRuntimeSettings `json:"container,omitempty"` + Pod *PodRuntimeSettings `json:"pod,omitempty" protobuf:"bytes,1,opt,name=pod"` + Container *ContainerRuntimeSettings `json:"container,omitempty" protobuf:"bytes,2,opt,name=container"` } type PodRuntimeSettings struct { @@ -14,40 +30,40 @@ type PodRuntimeSettings struct { // Selector which must match a node's labels for the pod to be scheduled on that node. // More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ // +optional - NodeSelector map[string]string `json:"nodeSelector,omitempty"` + NodeSelector map[string]string `json:"nodeSelector,omitempty" protobuf:"bytes,1,rep,name=nodeSelector"` // ServiceAccountName is the name of the ServiceAccount to use to run this pod. // More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ // +optional - ServiceAccountName string `json:"serviceAccountName,omitempty"` + ServiceAccountName string `json:"serviceAccountName,omitempty" protobuf:"bytes,2,opt,name=serviceAccountName"` // AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. // +optional - AutomountServiceAccountToken *bool `json:"automountServiceAccountToken,omitempty"` + AutomountServiceAccountToken *bool `json:"automountServiceAccountToken,omitempty" protobuf:"varint,3,opt,name=automountServiceAccountToken"` // NodeName is a request to schedule this pod onto a specific node. If it is non-empty, // the scheduler simply schedules this pod onto that node, assuming that it fits resource // requirements. // +optional - NodeName string `json:"nodeName,omitempty"` + NodeName string `json:"nodeName,omitempty" protobuf:"bytes,4,opt,name=nodeName"` // Security options the pod should run with. // More info: https://kubernetes.io/docs/concepts/policy/security-context/ // More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ // +optional - SecurityContext *core.PodSecurityContext `json:"securityContext,omitempty"` + SecurityContext *core.PodSecurityContext `json:"securityContext,omitempty" protobuf:"bytes,5,opt,name=securityContext"` // ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodRuntimeSettings. // If specified, these secrets will be passed to individual puller implementations for them to use. For example, // in the case of docker, only DockerConfig type secrets are honored. // More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod // +optional - ImagePullSecrets []core.LocalObjectReference `json:"imagePullSecrets,omitempty"` + ImagePullSecrets []core.LocalObjectReference `json:"imagePullSecrets,omitempty" protobuf:"bytes,6,rep,name=imagePullSecrets"` // If specified, the pod's scheduling constraints // +optional - Affinity *core.Affinity `json:"affinity,omitempty"` + Affinity *core.Affinity `json:"affinity,omitempty" protobuf:"bytes,7,opt,name=affinity"` // If specified, the pod will be dispatched by specified scheduler. // If not specified, the pod will be dispatched by default scheduler. // +optional - SchedulerName string `json:"schedulerName,omitempty"` + SchedulerName string `json:"schedulerName,omitempty" protobuf:"bytes,8,opt,name=schedulerName"` // If specified, the pod's tolerations. // +optional - Tolerations []core.Toleration `json:"tolerations,omitempty"` + Tolerations []core.Toleration `json:"tolerations,omitempty" protobuf:"bytes,9,rep,name=tolerations"` // If specified, indicates the pod's priority. "system-node-critical" and // "system-cluster-critical" are two special keywords which indicate the // highest priorities with the former being the highest priority. Any other @@ -55,20 +71,20 @@ type PodRuntimeSettings struct { // If not specified, the pod priority will be default or zero if there is no // default. // +optional - PriorityClassName string `json:"priorityClassName,omitempty"` + PriorityClassName string `json:"priorityClassName,omitempty" protobuf:"bytes,10,opt,name=priorityClassName"` // The priority value. Various system components use this field to find the // priority of the pod. When Priority Admission Controller is enabled, it // prevents users from setting this field. The admission controller populates // this field from PriorityClassName. // The higher the value, the higher the priority. // +optional - Priority *int32 `json:"priority,omitempty"` + Priority *int32 `json:"priority,omitempty" protobuf:"varint,11,opt,name=priority"` // If specified, all readiness gates will be evaluated for pod readiness. // A pod is ready when all its containers are ready AND // all conditions specified in the readiness gates have status equal to "True" // More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md // +optional - ReadinessGates []core.PodReadinessGate `json:"readinessGates,omitempty"` + ReadinessGates []core.PodReadinessGate `json:"readinessGates,omitempty" protobuf:"bytes,12,rep,name=readinessGates"` // RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used // to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. // If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an @@ -76,12 +92,12 @@ type PodRuntimeSettings struct { // More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md // This is an alpha feature and may change in the future. // +optional - RuntimeClassName *string `json:"runtimeClassName,omitempty"` + RuntimeClassName *string `json:"runtimeClassName,omitempty" protobuf:"bytes,13,opt,name=runtimeClassName"` // EnableServiceLinks indicates whether information about services should be injected into pod's // environment variables, matching the syntax of Docker links. // Optional: Defaults to true. // +optional - EnableServiceLinks *bool `json:"enableServiceLinks,omitempty"` + EnableServiceLinks *bool `json:"enableServiceLinks,omitempty" protobuf:"varint,14,opt,name=enableServiceLinks"` } type ContainerRuntimeSettings struct { @@ -89,38 +105,38 @@ type ContainerRuntimeSettings struct { // Cannot be updated. // More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ // +optional - Resources core.ResourceRequirements `json:"resources,omitempty"` + Resources core.ResourceRequirements `json:"resources,omitempty" protobuf:"bytes,1,opt,name=resources"` // Periodic probe of container liveness. // Container will be restarted if the probe fails. // Cannot be updated. // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes // +optional - LivenessProbe *core.Probe `json:"livenessProbe,omitempty"` + LivenessProbe *core.Probe `json:"livenessProbe,omitempty" protobuf:"bytes,2,opt,name=livenessProbe"` // Periodic probe of container service readiness. // Container will be removed from service endpoints if the probe fails. // Cannot be updated. // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes // +optional - ReadinessProbe *core.Probe `json:"readinessProbe,omitempty"` + ReadinessProbe *core.Probe `json:"readinessProbe,omitempty" protobuf:"bytes,3,opt,name=readinessProbe"` // Actions that the management system should take in response to container lifecycle events. // Cannot be updated. // +optional - Lifecycle *core.Lifecycle `json:"lifecycle,omitempty"` + Lifecycle *core.Lifecycle `json:"lifecycle,omitempty" protobuf:"bytes,4,opt,name=lifecycle"` // Security options the pod should run with. // More info: https://kubernetes.io/docs/concepts/policy/security-context/ // More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ // +optional - SecurityContext *core.SecurityContext `json:"securityContext,omitempty"` + SecurityContext *core.SecurityContext `json:"securityContext,omitempty" protobuf:"bytes,5,opt,name=securityContext"` // Settings to configure `nice` to throttle the load on cpu. // More info: http://kennystechtalk.blogspot.com/2015/04/throttling-cpu-usage-with-linux-cgroups.html // More info: https://oakbytes.wordpress.com/2012/06/06/linux-scheduler-cfs-and-nice/ // +optional - Nice *NiceSettings `json:"nice,omitempty"` + Nice *NiceSettings `json:"nice,omitempty" protobuf:"bytes,6,opt,name=nice"` // Settings to configure `ionice` to throttle the load on disk. // More info: http://kennystechtalk.blogspot.com/2015/04/throttling-cpu-usage-with-linux-cgroups.html // More info: https://oakbytes.wordpress.com/2012/06/06/linux-scheduler-cfs-and-nice/ // +optional - IONice *IONiceSettings `json:"ionice,omitempty"` + IONice *IONiceSettings `json:"ionice,omitempty" protobuf:"bytes,7,opt,name=ionice"` // List of sources to populate environment variables in the container. // The keys defined within a source must be a C_IDENTIFIER. All invalid keys // will be reported as an event when the container is starting. When a key exists in multiple @@ -128,22 +144,22 @@ type ContainerRuntimeSettings struct { // Values defined by an Env with a duplicate key will take precedence. // Cannot be updated. // +optional - EnvFrom []core.EnvFromSource `json:"envFrom,omitempty"` + EnvFrom []core.EnvFromSource `json:"envFrom,omitempty" protobuf:"bytes,8,rep,name=envFrom"` // List of environment variables to set in the container. // Cannot be updated. // +optional // +patchMergeKey=name // +patchStrategy=merge - Env []core.EnvVar `json:"env,omitempty" patchStrategy:"merge" patchMergeKey:"name"` + Env []core.EnvVar `json:"env,omitempty" patchStrategy:"merge" patchMergeKey:"name" protobuf:"bytes,9,rep,name=env"` } // https://linux.die.net/man/1/nice type NiceSettings struct { - Adjustment *int32 `json:"adjustment,omitempty"` + Adjustment *int32 `json:"adjustment,omitempty" protobuf:"varint,1,opt,name=adjustment"` } // https://linux.die.net/man/1/ionice type IONiceSettings struct { - Class *int32 `json:"class,omitempty"` - ClassData *int32 `json:"classData,omitempty"` + Class *int32 `json:"class,omitempty" protobuf:"varint,1,opt,name=class"` + ClassData *int32 `json:"classData,omitempty" protobuf:"varint,2,opt,name=classData"` } diff --git a/vendor/kmodules.xyz/offshoot-api/api/v1/types.go b/vendor/kmodules.xyz/offshoot-api/api/v1/types.go index d0c1c8ef4..e656273cc 100644 --- a/vendor/kmodules.xyz/offshoot-api/api/v1/types.go +++ b/vendor/kmodules.xyz/offshoot-api/api/v1/types.go @@ -1,3 +1,19 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package v1 import ( @@ -12,7 +28,7 @@ type ObjectMeta struct { // queryable and should be preserved when modifying objects. // More info: http://kubernetes.io/docs/user-guide/annotations // +optional - Annotations map[string]string `json:"annotations,omitempty"` + Annotations map[string]string `json:"annotations,omitempty" protobuf:"bytes,1,rep,name=annotations"` } // PodTemplateSpec describes the data a pod should have when created from a template @@ -20,24 +36,24 @@ type PodTemplateSpec struct { // Standard object's metadata. // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata // +optional - ObjectMeta `json:"metadata,omitempty"` + ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // Workload controller's metadata. // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata // +optional - Controller ObjectMeta `json:"controller,omitempty"` + Controller ObjectMeta `json:"controller,omitempty" protobuf:"bytes,2,opt,name=controller"` // Specification of the desired behavior of the pod. // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status // +optional - Spec PodSpec `json:"spec,omitempty"` + Spec PodSpec `json:"spec,omitempty" protobuf:"bytes,3,opt,name=spec"` } type PodSpec struct { // ServiceAccountName is the name of the ServiceAccount to use to run this pod. // More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ // +optional - ServiceAccountName string `json:"serviceAccountName,omitempty"` + ServiceAccountName string `json:"serviceAccountName,omitempty" protobuf:"bytes,1,opt,name=serviceAccountName"` // Arguments to the entrypoint. // The docker image's CMD is used if this is not provided. @@ -48,39 +64,39 @@ type PodSpec struct { // Cannot be updated. // More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell // +optional - Args []string `json:"args,omitempty"` + Args []string `json:"args,omitempty" protobuf:"bytes,2,rep,name=args"` // NodeSelector is a selector which must be true for the pod to fit on a node. // Selector which must match a node's labels for the pod to be scheduled on that node. // More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ // +optional - NodeSelector map[string]string `json:"nodeSelector,omitempty"` + NodeSelector map[string]string `json:"nodeSelector,omitempty" protobuf:"bytes,3,rep,name=nodeSelector"` // Compute Resources required by the sidecar container. - Resources core.ResourceRequirements `json:"resources,omitempty"` + Resources core.ResourceRequirements `json:"resources,omitempty" protobuf:"bytes,4,opt,name=resources"` // If specified, the pod's scheduling constraints // +optional - Affinity *core.Affinity `json:"affinity,omitempty"` + Affinity *core.Affinity `json:"affinity,omitempty" protobuf:"bytes,5,opt,name=affinity"` // If specified, the pod will be dispatched by specified scheduler. // If not specified, the pod will be dispatched by default scheduler. // +optional - SchedulerName string `json:"schedulerName,omitempty"` + SchedulerName string `json:"schedulerName,omitempty" protobuf:"bytes,6,opt,name=schedulerName"` // If specified, the pod's tolerations. // +optional - Tolerations []core.Toleration `json:"tolerations,omitempty"` + Tolerations []core.Toleration `json:"tolerations,omitempty" protobuf:"bytes,7,rep,name=tolerations"` // ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. // If specified, these secrets will be passed to individual puller implementations for them to use. // +optional - ImagePullSecrets []core.LocalObjectReference `json:"imagePullSecrets,omitempty"` + ImagePullSecrets []core.LocalObjectReference `json:"imagePullSecrets,omitempty" protobuf:"bytes,8,rep,name=imagePullSecrets"` // List of environment variables to set in the container. // Cannot be updated. // +optional - Env []core.EnvVar `json:"env,omitempty"` + Env []core.EnvVar `json:"env,omitempty" protobuf:"bytes,9,rep,name=env"` // List of initialization containers belonging to the pod. // Init containers are executed in order prior to containers being started. If any @@ -97,7 +113,7 @@ type PodSpec struct { // More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ // +patchMergeKey=name // +patchStrategy=merge - InitContainers []core.Container `json:"initContainers,omitempty" patchStrategy:"merge" patchMergeKey:"name"` + InitContainers []core.Container `json:"initContainers,omitempty" patchStrategy:"merge" patchMergeKey:"name" protobuf:"bytes,10,rep,name=initContainers"` // If specified, indicates the pod's priority. "system-node-critical" and // "system-cluster-critical" are two special keywords which indicate the @@ -106,19 +122,19 @@ type PodSpec struct { // If not specified, the pod priority will be default or zero if there is no // default. // +optional - PriorityClassName string `json:"priorityClassName,omitempty"` + PriorityClassName string `json:"priorityClassName,omitempty" protobuf:"bytes,11,opt,name=priorityClassName"` // The priority value. Various system components use this field to find the // priority of the pod. When Priority Admission Controller is enabled, it // prevents users from setting this field. The admission controller populates // this field from PriorityClassName. // The higher the value, the higher the priority. // +optional - Priority *int32 `json:"priority,omitempty"` + Priority *int32 `json:"priority,omitempty" protobuf:"varint,12,opt,name=priority"` // SecurityContext holds pod-level security attributes and common container settings. // Optional: Defaults to empty. See type description for default values of each field. // +optional - SecurityContext *core.PodSecurityContext `json:"securityContext,omitempty"` + SecurityContext *core.PodSecurityContext `json:"securityContext,omitempty" protobuf:"bytes,13,opt,name=securityContext"` // Periodic probe of container liveness. // Container will be restarted if the probe fails. @@ -127,7 +143,7 @@ type PodSpec struct { // Cannot be updated. // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes // +optional - LivenessProbe *core.Probe `json:"livenessProbe,omitempty"` + LivenessProbe *core.Probe `json:"livenessProbe,omitempty" protobuf:"bytes,14,opt,name=livenessProbe"` // Periodic probe of container service readiness. // Container will be removed from service endpoints if the probe fails. @@ -136,12 +152,12 @@ type PodSpec struct { // To ignore defaulting, set the value to empty ReadynessProbe "{}". // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes // +optional - ReadinessProbe *core.Probe `json:"readinessProbe,omitempty"` + ReadinessProbe *core.Probe `json:"readinessProbe,omitempty" protobuf:"bytes,15,opt,name=readinessProbe"` // Actions that the management system should take in response to container lifecycle events. // Cannot be updated. // +optional - Lifecycle *core.Lifecycle `json:"lifecycle,omitempty"` + Lifecycle *core.Lifecycle `json:"lifecycle,omitempty" protobuf:"bytes,16,opt,name=lifecycle"` } // ServiceTemplateSpec describes the data a service should have when created from a template @@ -149,12 +165,12 @@ type ServiceTemplateSpec struct { // Standard object's metadata. // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata // +optional - ObjectMeta `json:"metadata,omitempty"` + ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // Specification of the desired behavior of the service. // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status // +optional - Spec ServiceSpec `json:"spec,omitempty"` + Spec ServiceSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` } // ServiceSpec describes the attributes that a user creates on a service. @@ -163,7 +179,7 @@ type ServiceSpec struct { // More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies // +patchMergeKey=port // +patchStrategy=merge - Ports []ServicePort `json:"ports,omitempty" patchStrategy:"merge" patchMergeKey:"port"` + Ports []ServicePort `json:"ports,omitempty" patchStrategy:"merge" patchMergeKey:"port" protobuf:"bytes,1,rep,name=ports"` // clusterIP is the IP address of the service and is usually assigned // randomly by the master. If an address is specified manually and is not in @@ -175,7 +191,7 @@ type ServiceSpec struct { // type is ExternalName. // More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies // +optional - ClusterIP string `json:"clusterIP,omitempty"` + ClusterIP string `json:"clusterIP,omitempty" protobuf:"bytes,2,opt,name=clusterIP"` // type determines how the Service is exposed. Defaults to ClusterIP. Valid // options are ExternalName, ClusterIP, NodePort, and LoadBalancer. @@ -192,7 +208,7 @@ type ServiceSpec struct { // to the clusterIP. // More info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services---service-types // +optional - Type core.ServiceType `json:"type,omitempty"` + Type core.ServiceType `json:"type,omitempty" protobuf:"bytes,3,opt,name=type,casttype=k8s.io/api/core/v1.ServiceType"` // externalIPs is a list of IP addresses for which nodes in the cluster // will also accept traffic for this service. These IPs are not managed by @@ -200,7 +216,7 @@ type ServiceSpec struct { // at a node with this IP. A common example is external load-balancers // that are not part of the Kubernetes system. // +optional - ExternalIPs []string `json:"externalIPs,omitempty"` + ExternalIPs []string `json:"externalIPs,omitempty" protobuf:"bytes,4,rep,name=externalIPs"` // Only applies to Service Type: LoadBalancer // LoadBalancer will get created with the IP specified in this field. @@ -208,14 +224,14 @@ type ServiceSpec struct { // the loadBalancerIP when a load balancer is created. // This field will be ignored if the cloud-provider does not support the feature. // +optional - LoadBalancerIP string `json:"loadBalancerIP,omitempty"` + LoadBalancerIP string `json:"loadBalancerIP,omitempty" protobuf:"bytes,5,opt,name=loadBalancerIP"` // If specified and supported by the platform, this will restrict traffic through the cloud-provider // load-balancer will be restricted to the specified client IPs. This field will be ignored if the // cloud-provider does not support the feature." // More info: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/ // +optional - LoadBalancerSourceRanges []string `json:"loadBalancerSourceRanges,omitempty"` + LoadBalancerSourceRanges []string `json:"loadBalancerSourceRanges,omitempty" protobuf:"bytes,6,rep,name=loadBalancerSourceRanges"` // externalTrafficPolicy denotes if this Service desires to route external // traffic to node-local or cluster-wide endpoints. "Local" preserves the @@ -224,7 +240,7 @@ type ServiceSpec struct { // "Cluster" obscures the client source IP and may cause a second hop to // another node, but should have good overall load-spreading. // +optional - ExternalTrafficPolicy core.ServiceExternalTrafficPolicyType `json:"externalTrafficPolicy,omitempty"` + ExternalTrafficPolicy core.ServiceExternalTrafficPolicyType `json:"externalTrafficPolicy,omitempty" protobuf:"bytes,7,opt,name=externalTrafficPolicy,casttype=k8s.io/api/core/v1.ServiceExternalTrafficPolicyType"` // healthCheckNodePort specifies the healthcheck nodePort for the service. // If not specified, HealthCheckNodePort is created by the service api @@ -232,11 +248,11 @@ type ServiceSpec struct { // if specified by the client. Only effects when Type is set to LoadBalancer // and ExternalTrafficPolicy is set to Local. // +optional - HealthCheckNodePort int32 `json:"healthCheckNodePort,omitempty"` + HealthCheckNodePort int32 `json:"healthCheckNodePort,omitempty" protobuf:"varint,8,opt,name=healthCheckNodePort"` // sessionAffinityConfig contains the configurations of session affinity. // +optional - SessionAffinityConfig *core.SessionAffinityConfig `json:"sessionAffinityConfig,omitempty"` + SessionAffinityConfig *core.SessionAffinityConfig `json:"sessionAffinityConfig,omitempty" protobuf:"bytes,9,opt,name=sessionAffinityConfig"` } // ServicePort contains information on service's port. @@ -246,10 +262,10 @@ type ServicePort struct { // the 'Name' field in EndpointPort objects. // Optional if only one ServicePort is defined on this service. // +optional - Name string `json:"name,omitempty"` + Name string `json:"name,omitempty" protobuf:"bytes,1,opt,name=name"` // The port that will be exposed by this service. - Port int32 `json:"port"` + Port int32 `json:"port" protobuf:"varint,2,opt,name=port"` // The port on each node on which this service is exposed when type=NodePort or LoadBalancer. // Usually assigned by the system. If specified, it will be allocated to the service @@ -257,7 +273,7 @@ type ServicePort struct { // Default is to auto-allocate a port if the ServiceType of this Service requires one. // More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport // +optional - NodePort int32 `json:"nodePort,omitempty"` + NodePort int32 `json:"nodePort,omitempty" protobuf:"varint,3,opt,name=nodePort"` } func MergeServicePorts(cur []core.ServicePort, desired []ServicePort) []core.ServicePort { diff --git a/vendor/kmodules.xyz/offshoot-api/api/v1/zz_generated.deepcopy.go b/vendor/kmodules.xyz/offshoot-api/api/v1/zz_generated.deepcopy.go index 64fe16d97..0d5f22031 100644 --- a/vendor/kmodules.xyz/offshoot-api/api/v1/zz_generated.deepcopy.go +++ b/vendor/kmodules.xyz/offshoot-api/api/v1/zz_generated.deepcopy.go @@ -1,7 +1,7 @@ // +build !ignore_autogenerated /* -Copyright 2019 The Kmodules Authors. +Copyright The Kmodules Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/vendor/kmodules.xyz/offshoot-api/util/runtime_settings.go b/vendor/kmodules.xyz/offshoot-api/util/runtime_settings.go index ad2d0ff14..e56247e2c 100644 --- a/vendor/kmodules.xyz/offshoot-api/util/runtime_settings.go +++ b/vendor/kmodules.xyz/offshoot-api/util/runtime_settings.go @@ -1,11 +1,28 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package util import ( "fmt" - core "k8s.io/api/core/v1" core_util "kmodules.xyz/client-go/core/v1" ofst "kmodules.xyz/offshoot-api/api/v1" + + core "k8s.io/api/core/v1" ) const ( diff --git a/vendor/kmodules.xyz/prober/LICENSE b/vendor/kmodules.xyz/prober/LICENSE new file mode 100644 index 000000000..261eeb9e9 --- /dev/null +++ b/vendor/kmodules.xyz/prober/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/vendor/kmodules.xyz/prober/api/v1/doc.go b/vendor/kmodules.xyz/prober/api/v1/doc.go new file mode 100644 index 000000000..fbf0207f2 --- /dev/null +++ b/vendor/kmodules.xyz/prober/api/v1/doc.go @@ -0,0 +1,19 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// +k8s:deepcopy-gen=package +// +k8s:openapi-gen=true +package v1 // import "kmodules.xyz/prober/api/v1" diff --git a/vendor/kmodules.xyz/prober/api/v1/generated.pb.go b/vendor/kmodules.xyz/prober/api/v1/generated.pb.go new file mode 100644 index 000000000..259cdfa75 --- /dev/null +++ b/vendor/kmodules.xyz/prober/api/v1/generated.pb.go @@ -0,0 +1,1153 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: kmodules.xyz/prober/api/v1/generated.proto + +/* + Package v1 is a generated protocol buffer package. + + It is generated from these files: + kmodules.xyz/prober/api/v1/generated.proto + + It has these top-level messages: + HTTPPostAction + Handler + ValueList +*/ +package v1 + +import ( + fmt "fmt" + io "io" + math "math" + reflect "reflect" + strings "strings" + + proto "github.com/gogo/protobuf/proto" + github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys" + k8s_io_api_core_v1 "k8s.io/api/core/v1" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package + +func (m *HTTPPostAction) Reset() { *m = HTTPPostAction{} } +func (*HTTPPostAction) ProtoMessage() {} +func (*HTTPPostAction) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{0} } + +func (m *Handler) Reset() { *m = Handler{} } +func (*Handler) ProtoMessage() {} +func (*Handler) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{1} } + +func (m *ValueList) Reset() { *m = ValueList{} } +func (*ValueList) ProtoMessage() {} +func (*ValueList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{2} } + +func init() { + proto.RegisterType((*HTTPPostAction)(nil), "kmodules.xyz.prober.api.v1.HTTPPostAction") + proto.RegisterType((*Handler)(nil), "kmodules.xyz.prober.api.v1.Handler") + proto.RegisterType((*ValueList)(nil), "kmodules.xyz.prober.api.v1.ValueList") +} +func (m *HTTPPostAction) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *HTTPPostAction) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Path))) + i += copy(dAtA[i:], m.Path) + dAtA[i] = 0x12 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.Port.Size())) + n1, err := m.Port.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n1 + dAtA[i] = 0x1a + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Host))) + i += copy(dAtA[i:], m.Host) + dAtA[i] = 0x22 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Scheme))) + i += copy(dAtA[i:], m.Scheme) + if len(m.HTTPHeaders) > 0 { + for _, msg := range m.HTTPHeaders { + dAtA[i] = 0x2a + i++ + i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } + } + dAtA[i] = 0x32 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Body))) + i += copy(dAtA[i:], m.Body) + if len(m.Form) > 0 { + keysForForm := make([]string, 0, len(m.Form)) + for k := range m.Form { + keysForForm = append(keysForForm, string(k)) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForForm) + for _, k := range keysForForm { + dAtA[i] = 0x3a + i++ + v := m.Form[string(k)] + msgSize := 0 + if (&v) != nil { + msgSize = (&v).Size() + msgSize += 1 + sovGenerated(uint64(msgSize)) + } + mapSize := 1 + len(k) + sovGenerated(uint64(len(k))) + msgSize + i = encodeVarintGenerated(dAtA, i, uint64(mapSize)) + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(len(k))) + i += copy(dAtA[i:], k) + dAtA[i] = 0x12 + i++ + i = encodeVarintGenerated(dAtA, i, uint64((&v).Size())) + n2, err := (&v).MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n2 + } + } + return i, nil +} + +func (m *Handler) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Handler) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Exec != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.Exec.Size())) + n3, err := m.Exec.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n3 + } + if m.HTTPGet != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.HTTPGet.Size())) + n4, err := m.HTTPGet.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n4 + } + if m.HTTPPost != nil { + dAtA[i] = 0x1a + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.HTTPPost.Size())) + n5, err := m.HTTPPost.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n5 + } + if m.TCPSocket != nil { + dAtA[i] = 0x22 + i++ + i = encodeVarintGenerated(dAtA, i, uint64(m.TCPSocket.Size())) + n6, err := m.TCPSocket.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n6 + } + return i, nil +} + +func (m *ValueList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ValueList) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Values) > 0 { + for _, s := range m.Values { + dAtA[i] = 0xa + i++ + l = len(s) + for l >= 1<<7 { + dAtA[i] = uint8(uint64(l)&0x7f | 0x80) + l >>= 7 + i++ + } + dAtA[i] = uint8(l) + i++ + i += copy(dAtA[i:], s) + } + } + return i, nil +} + +func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return offset + 1 +} +func (m *HTTPPostAction) Size() (n int) { + var l int + _ = l + l = len(m.Path) + n += 1 + l + sovGenerated(uint64(l)) + l = m.Port.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Host) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Scheme) + n += 1 + l + sovGenerated(uint64(l)) + if len(m.HTTPHeaders) > 0 { + for _, e := range m.HTTPHeaders { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + l = len(m.Body) + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Form) > 0 { + for k, v := range m.Form { + _ = k + _ = v + l = v.Size() + mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l)) + n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) + } + } + return n +} + +func (m *Handler) Size() (n int) { + var l int + _ = l + if m.Exec != nil { + l = m.Exec.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.HTTPGet != nil { + l = m.HTTPGet.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.HTTPPost != nil { + l = m.HTTPPost.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.TCPSocket != nil { + l = m.TCPSocket.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *ValueList) Size() (n int) { + var l int + _ = l + if len(m.Values) > 0 { + for _, s := range m.Values { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func sovGenerated(x uint64) (n int) { + for { + n++ + x >>= 7 + if x == 0 { + break + } + } + return n +} +func sozGenerated(x uint64) (n int) { + return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (this *HTTPPostAction) String() string { + if this == nil { + return "nil" + } + keysForForm := make([]string, 0, len(this.Form)) + for k := range this.Form { + keysForForm = append(keysForForm, k) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForForm) + mapStringForForm := "map[string]ValueList{" + for _, k := range keysForForm { + mapStringForForm += fmt.Sprintf("%v: %v,", k, this.Form[k]) + } + mapStringForForm += "}" + s := strings.Join([]string{`&HTTPPostAction{`, + `Path:` + fmt.Sprintf("%v", this.Path) + `,`, + `Port:` + strings.Replace(strings.Replace(this.Port.String(), "IntOrString", "k8s_io_apimachinery_pkg_util_intstr.IntOrString", 1), `&`, ``, 1) + `,`, + `Host:` + fmt.Sprintf("%v", this.Host) + `,`, + `Scheme:` + fmt.Sprintf("%v", this.Scheme) + `,`, + `HTTPHeaders:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.HTTPHeaders), "HTTPHeader", "k8s_io_api_core_v1.HTTPHeader", 1), `&`, ``, 1) + `,`, + `Body:` + fmt.Sprintf("%v", this.Body) + `,`, + `Form:` + mapStringForForm + `,`, + `}`, + }, "") + return s +} +func (this *Handler) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Handler{`, + `Exec:` + strings.Replace(fmt.Sprintf("%v", this.Exec), "ExecAction", "k8s_io_api_core_v1.ExecAction", 1) + `,`, + `HTTPGet:` + strings.Replace(fmt.Sprintf("%v", this.HTTPGet), "HTTPGetAction", "k8s_io_api_core_v1.HTTPGetAction", 1) + `,`, + `HTTPPost:` + strings.Replace(fmt.Sprintf("%v", this.HTTPPost), "HTTPPostAction", "HTTPPostAction", 1) + `,`, + `TCPSocket:` + strings.Replace(fmt.Sprintf("%v", this.TCPSocket), "TCPSocketAction", "k8s_io_api_core_v1.TCPSocketAction", 1) + `,`, + `}`, + }, "") + return s +} +func (this *ValueList) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ValueList{`, + `Values:` + fmt.Sprintf("%v", this.Values) + `,`, + `}`, + }, "") + return s +} +func valueToStringGenerated(v interface{}) string { + rv := reflect.ValueOf(v) + if rv.IsNil() { + return "nil" + } + pv := reflect.Indirect(rv).Interface() + return fmt.Sprintf("*%v", pv) +} +func (m *HTTPPostAction) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: HTTPPostAction: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: HTTPPostAction: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Path = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Port", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Port.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Host", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Host = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Scheme", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Scheme = k8s_io_api_core_v1.URIScheme(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HTTPHeaders", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.HTTPHeaders = append(m.HTTPHeaders, k8s_io_api_core_v1.HTTPHeader{}) + if err := m.HTTPHeaders[len(m.HTTPHeaders)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Body", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Body = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Form", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Form == nil { + m.Form = make(map[string]ValueList) + } + var mapkey string + mapvalue := &ValueList{} + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return ErrInvalidLengthGenerated + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + var mapmsglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapmsglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if mapmsglen < 0 { + return ErrInvalidLengthGenerated + } + postmsgIndex := iNdEx + mapmsglen + if mapmsglen < 0 { + return ErrInvalidLengthGenerated + } + if postmsgIndex > l { + return io.ErrUnexpectedEOF + } + mapvalue = &ValueList{} + if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { + return err + } + iNdEx = postmsgIndex + } else { + iNdEx = entryPreIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.Form[mapkey] = *mapvalue + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Handler) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Handler: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Handler: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Exec", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Exec == nil { + m.Exec = &k8s_io_api_core_v1.ExecAction{} + } + if err := m.Exec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HTTPGet", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.HTTPGet == nil { + m.HTTPGet = &k8s_io_api_core_v1.HTTPGetAction{} + } + if err := m.HTTPGet.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HTTPPost", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.HTTPPost == nil { + m.HTTPPost = &HTTPPostAction{} + } + if err := m.HTTPPost.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TCPSocket", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.TCPSocket == nil { + m.TCPSocket = &k8s_io_api_core_v1.TCPSocketAction{} + } + if err := m.TCPSocket.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ValueList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ValueList: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ValueList: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Values", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Values = append(m.Values, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipGenerated(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowGenerated + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowGenerated + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + return iNdEx, nil + case 1: + iNdEx += 8 + return iNdEx, nil + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowGenerated + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + iNdEx += length + if length < 0 { + return 0, ErrInvalidLengthGenerated + } + return iNdEx, nil + case 3: + for { + var innerWire uint64 + var start int = iNdEx + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowGenerated + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + innerWire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + innerWireType := int(innerWire & 0x7) + if innerWireType == 4 { + break + } + next, err := skipGenerated(dAtA[start:]) + if err != nil { + return 0, err + } + iNdEx = start + next + } + return iNdEx, nil + case 4: + return iNdEx, nil + case 5: + iNdEx += 4 + return iNdEx, nil + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + } + panic("unreachable") +} + +var ( + ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") +) + +func init() { proto.RegisterFile("kmodules.xyz/prober/api/v1/generated.proto", fileDescriptorGenerated) } + +var fileDescriptorGenerated = []byte{ + // 625 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x52, 0xcf, 0x6e, 0xd3, 0x30, + 0x18, 0x6f, 0xda, 0xac, 0x5d, 0x9d, 0x81, 0x90, 0xb9, 0x44, 0x15, 0x4a, 0x4b, 0x11, 0x52, 0x35, + 0x09, 0x87, 0x16, 0x0e, 0x13, 0x70, 0x21, 0x68, 0x5b, 0x27, 0x21, 0x51, 0x79, 0xdd, 0x0e, 0x1c, + 0x90, 0xd2, 0xd4, 0x4b, 0xa2, 0xb6, 0x71, 0x64, 0xbb, 0xd5, 0xc2, 0x89, 0x47, 0xe0, 0x15, 0x78, + 0x0c, 0xde, 0x60, 0xc7, 0x1d, 0x77, 0x8a, 0x58, 0x78, 0x0b, 0x4e, 0xc8, 0x4e, 0xfa, 0x67, 0xb0, + 0x21, 0x6e, 0xf6, 0xf7, 0xfd, 0xfe, 0xf8, 0xfb, 0xf9, 0x03, 0xbb, 0x93, 0x19, 0x1d, 0xcf, 0xa7, + 0x84, 0xa3, 0xf3, 0xe4, 0xb3, 0x1d, 0x33, 0x3a, 0x22, 0xcc, 0x76, 0xe3, 0xd0, 0x5e, 0x74, 0x6d, + 0x9f, 0x44, 0x84, 0xb9, 0x82, 0x8c, 0x51, 0xcc, 0xa8, 0xa0, 0xb0, 0xb1, 0x89, 0x45, 0x39, 0x16, + 0xb9, 0x71, 0x88, 0x16, 0xdd, 0xc6, 0x33, 0x3f, 0x14, 0xc1, 0x7c, 0x84, 0x3c, 0x3a, 0xb3, 0x7d, + 0xea, 0x53, 0x5b, 0x51, 0x46, 0xf3, 0x33, 0x75, 0x53, 0x17, 0x75, 0xca, 0xa5, 0x1a, 0xed, 0xc9, + 0x1e, 0x47, 0x21, 0x55, 0x4e, 0x1e, 0x65, 0xe4, 0x16, 0xbb, 0xc6, 0x8b, 0x35, 0x66, 0xe6, 0x7a, + 0x41, 0x18, 0x11, 0x96, 0xd8, 0xf1, 0xc4, 0xb7, 0xe7, 0x22, 0x9c, 0xda, 0x61, 0x24, 0xb8, 0x60, + 0x7f, 0x92, 0xda, 0xdf, 0x74, 0x70, 0xbf, 0x3f, 0x1c, 0x0e, 0x06, 0x94, 0x8b, 0xb7, 0x9e, 0x08, + 0x69, 0x04, 0x5b, 0x40, 0x8f, 0x5d, 0x11, 0x98, 0x5a, 0x4b, 0xeb, 0xd4, 0x9d, 0x9d, 0x8b, 0xb4, + 0x59, 0xca, 0xd2, 0xa6, 0x3e, 0x70, 0x45, 0x80, 0x55, 0x07, 0x62, 0xa0, 0xc7, 0x94, 0x09, 0xb3, + 0xdc, 0xd2, 0x3a, 0x46, 0xef, 0x39, 0xca, 0x8d, 0xd1, 0xa6, 0x31, 0x8a, 0x27, 0x3e, 0x92, 0xc6, + 0x28, 0x37, 0x46, 0x47, 0x91, 0xf8, 0xc0, 0x8e, 0x05, 0x0b, 0x23, 0x7f, 0x43, 0x93, 0x32, 0x81, + 0x95, 0x96, 0x74, 0x0d, 0x28, 0x17, 0x66, 0xe5, 0xa6, 0x6b, 0x9f, 0x72, 0x81, 0x55, 0x07, 0x1e, + 0x80, 0x2a, 0xf7, 0x02, 0x32, 0x23, 0xa6, 0xae, 0x30, 0xa8, 0xc0, 0x54, 0x8f, 0x55, 0xf5, 0x57, + 0xda, 0x7c, 0xf4, 0x77, 0x4a, 0xe8, 0x04, 0x1f, 0xe5, 0x7d, 0x5c, 0xb0, 0xe1, 0x09, 0x30, 0x02, + 0x21, 0xe2, 0x3e, 0x71, 0xc7, 0x84, 0x71, 0x73, 0xab, 0x55, 0xe9, 0x18, 0x3d, 0x6b, 0x63, 0x08, + 0x24, 0xb9, 0x68, 0xd1, 0x45, 0x32, 0x98, 0x1c, 0xe6, 0x3c, 0x2c, 0xcc, 0x8c, 0x75, 0x8d, 0xe3, + 0x4d, 0x1d, 0x39, 0xc0, 0x88, 0x8e, 0x13, 0xb3, 0x7a, 0x73, 0x00, 0x87, 0x8e, 0x13, 0xac, 0x3a, + 0xf0, 0x14, 0xe8, 0x67, 0x94, 0xcd, 0xcc, 0x9a, 0x72, 0x7c, 0x89, 0xee, 0x5e, 0x0f, 0x74, 0xf3, + 0x4b, 0xd0, 0x01, 0x65, 0xb3, 0xfd, 0x48, 0xb0, 0x64, 0xad, 0x2b, 0x4b, 0x58, 0xe9, 0x35, 0x3e, + 0x81, 0xfa, 0x0a, 0x00, 0x1f, 0x80, 0xca, 0x84, 0x24, 0xf9, 0xe7, 0x61, 0x79, 0x84, 0xaf, 0xc1, + 0xd6, 0xc2, 0x9d, 0xce, 0x49, 0xf1, 0x5d, 0x4f, 0xff, 0xe5, 0x7b, 0x2a, 0x81, 0xef, 0x43, 0x2e, + 0x70, 0xce, 0x79, 0x55, 0xde, 0xd3, 0xda, 0xdf, 0xcb, 0xa0, 0xd6, 0x77, 0xa3, 0xf1, 0x94, 0x30, + 0xf8, 0x06, 0xe8, 0xe4, 0x9c, 0x78, 0x4a, 0xff, 0x8e, 0xd4, 0xf6, 0xcf, 0x89, 0x97, 0xbf, 0xdb, + 0xd9, 0x96, 0x2f, 0x95, 0x77, 0xac, 0x58, 0xb0, 0x0f, 0x6a, 0x32, 0xb2, 0x43, 0xb2, 0xdc, 0x9d, + 0xc7, 0x77, 0xc5, 0x7e, 0x48, 0x8a, 0xd9, 0x1d, 0x23, 0x4b, 0x9b, 0xb5, 0xa2, 0x84, 0x97, 0x74, + 0x38, 0x04, 0xdb, 0xf2, 0x38, 0x58, 0xae, 0x8c, 0xd1, 0xdb, 0xfd, 0xff, 0x3c, 0x9d, 0x9d, 0x2c, + 0x6d, 0x6e, 0x2f, 0x6b, 0x78, 0xa5, 0x04, 0x07, 0xa0, 0x2e, 0xbc, 0xf8, 0x98, 0x7a, 0x13, 0x22, + 0xd4, 0x96, 0x19, 0xbd, 0x27, 0xb7, 0xbd, 0x70, 0xf8, 0x6e, 0x90, 0x83, 0x0a, 0xbd, 0x7b, 0x59, + 0xda, 0xac, 0xaf, 0x8a, 0x78, 0x2d, 0xd2, 0xb6, 0x41, 0x7d, 0x95, 0x29, 0x6c, 0x83, 0xaa, 0x4a, + 0x95, 0x9b, 0x5a, 0xab, 0xd2, 0xa9, 0x3b, 0x40, 0x6e, 0xaf, 0x6a, 0x73, 0x5c, 0x74, 0x9c, 0xce, + 0xc5, 0xb5, 0x55, 0xba, 0xbc, 0xb6, 0x4a, 0x57, 0xd7, 0x56, 0xe9, 0x4b, 0x66, 0x69, 0x17, 0x99, + 0xa5, 0x5d, 0x66, 0x96, 0x76, 0x95, 0x59, 0xda, 0x8f, 0xcc, 0xd2, 0xbe, 0xfe, 0xb4, 0x4a, 0x1f, + 0xcb, 0x8b, 0xee, 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0xf8, 0xf4, 0x0b, 0x6c, 0x8b, 0x04, 0x00, + 0x00, +} diff --git a/vendor/kmodules.xyz/prober/api/v1/generated.proto b/vendor/kmodules.xyz/prober/api/v1/generated.proto new file mode 100644 index 000000000..436c51b9d --- /dev/null +++ b/vendor/kmodules.xyz/prober/api/v1/generated.proto @@ -0,0 +1,90 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + + +// This file was autogenerated by go-to-protobuf. Do not edit it manually! + +syntax = 'proto2'; + +package kmodules.xyz.prober.api.v1; + +import "k8s.io/api/core/v1/generated.proto"; +import "k8s.io/apimachinery/pkg/util/intstr/generated.proto"; + +// Package-wide variables from generator "generated". +option go_package = "v1"; + +// HTTPPostAction describes an action based on HTTP Post requests. +message HTTPPostAction { + // Path to access on the HTTP server. + // +optional + optional string path = 1; + + // Name or number of the port to access on the container. + // Number must be in the range 1 to 65535. + // Name must be an IANA_SVC_NAME. + optional k8s.io.apimachinery.pkg.util.intstr.IntOrString port = 2; + + // Host name to connect to, defaults to the pod IP. You probably want to set + // "Host" in httpHeaders instead. + // +optional + optional string host = 3; + + // Scheme to use for connecting to the host. + // Defaults to HTTP. + // +optional + optional string scheme = 4; + + // Custom headers to set in the request. HTTP allows repeated headers. + // +optional + repeated k8s.io.api.core.v1.HTTPHeader httpHeaders = 5; + + // Body to set in the request. + // +optional + optional string body = 6; + + // Form to set in the request body. + // +optional + map form = 7; +} + +// Handler defines a specific action that should be taken +// TODO: pass structured data to these actions, and document that data here. +message Handler { + // One and only one of the following should be specified. + // Exec specifies the action to take. + // +optional + optional k8s.io.api.core.v1.ExecAction exec = 1; + + // HTTPGet specifies the http Get request to perform. + // +optional + optional k8s.io.api.core.v1.HTTPGetAction httpGet = 2; + + // HTTPPost specifies the http Post request to perform. + // +optional + optional HTTPPostAction httpPost = 3; + + // TCPSocket specifies an action involving a TCP port. + // TCP hooks not yet supported + // TODO: implement a realistic TCP lifecycle hook + // +optional + optional k8s.io.api.core.v1.TCPSocketAction tcpSocket = 4; +} + +message ValueList { + repeated string values = 1; +} + diff --git a/vendor/kmodules.xyz/prober/api/v1/openapi_generated.go b/vendor/kmodules.xyz/prober/api/v1/openapi_generated.go new file mode 100644 index 000000000..934a93bdf --- /dev/null +++ b/vendor/kmodules.xyz/prober/api/v1/openapi_generated.go @@ -0,0 +1,177 @@ +// +build !ignore_autogenerated + +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by openapi-gen. DO NOT EDIT. + +// This file was autogenerated by openapi-gen. Do not edit it manually! + +package v1 + +import ( + spec "github.com/go-openapi/spec" + common "k8s.io/kube-openapi/pkg/common" +) + +func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition { + return map[string]common.OpenAPIDefinition{ + "kmodules.xyz/prober/api/v1.HTTPPostAction": schema_kmodulesxyz_prober_api_v1_HTTPPostAction(ref), + "kmodules.xyz/prober/api/v1.Handler": schema_kmodulesxyz_prober_api_v1_Handler(ref), + "kmodules.xyz/prober/api/v1.ValueList": schema_kmodulesxyz_prober_api_v1_ValueList(ref), + } +} + +func schema_kmodulesxyz_prober_api_v1_HTTPPostAction(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "HTTPPostAction describes an action based on HTTP Post requests.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "path": { + SchemaProps: spec.SchemaProps{ + Description: "Path to access on the HTTP server.", + Type: []string{"string"}, + Format: "", + }, + }, + "port": { + SchemaProps: spec.SchemaProps{ + Description: "Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.", + Ref: ref("k8s.io/apimachinery/pkg/util/intstr.IntOrString"), + }, + }, + "host": { + SchemaProps: spec.SchemaProps{ + Description: "Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead.", + Type: []string{"string"}, + Format: "", + }, + }, + "scheme": { + SchemaProps: spec.SchemaProps{ + Description: "Scheme to use for connecting to the host. Defaults to HTTP.", + Type: []string{"string"}, + Format: "", + }, + }, + "httpHeaders": { + SchemaProps: spec.SchemaProps{ + Description: "Custom headers to set in the request. HTTP allows repeated headers.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("k8s.io/api/core/v1.HTTPHeader"), + }, + }, + }, + }, + }, + "body": { + SchemaProps: spec.SchemaProps{ + Description: "Body to set in the request.", + Type: []string{"string"}, + Format: "", + }, + }, + "form": { + SchemaProps: spec.SchemaProps{ + Description: "Form to set in the request body.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("kmodules.xyz/prober/api/v1.ValueList"), + }, + }, + }, + }, + }, + }, + Required: []string{"port"}, + }, + }, + Dependencies: []string{ + "k8s.io/api/core/v1.HTTPHeader", "k8s.io/apimachinery/pkg/util/intstr.IntOrString", "kmodules.xyz/prober/api/v1.ValueList"}, + } +} + +func schema_kmodulesxyz_prober_api_v1_Handler(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "Handler defines a specific action that should be taken", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "exec": { + SchemaProps: spec.SchemaProps{ + Description: "One and only one of the following should be specified. Exec specifies the action to take.", + Ref: ref("k8s.io/api/core/v1.ExecAction"), + }, + }, + "httpGet": { + SchemaProps: spec.SchemaProps{ + Description: "HTTPGet specifies the http Get request to perform.", + Ref: ref("k8s.io/api/core/v1.HTTPGetAction"), + }, + }, + "httpPost": { + SchemaProps: spec.SchemaProps{ + Description: "HTTPPost specifies the http Post request to perform.", + Ref: ref("kmodules.xyz/prober/api/v1.HTTPPostAction"), + }, + }, + "tcpSocket": { + SchemaProps: spec.SchemaProps{ + Description: "TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported", + Ref: ref("k8s.io/api/core/v1.TCPSocketAction"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "k8s.io/api/core/v1.ExecAction", "k8s.io/api/core/v1.HTTPGetAction", "k8s.io/api/core/v1.TCPSocketAction", "kmodules.xyz/prober/api/v1.HTTPPostAction"}, + } +} + +func schema_kmodulesxyz_prober_api_v1_ValueList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "values": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + }, + }, + }, + } +} diff --git a/vendor/kmodules.xyz/prober/api/v1/types.go b/vendor/kmodules.xyz/prober/api/v1/types.go new file mode 100644 index 000000000..746822f7d --- /dev/null +++ b/vendor/kmodules.xyz/prober/api/v1/types.go @@ -0,0 +1,74 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package v1 + +import ( + core "k8s.io/api/core/v1" + "k8s.io/apimachinery/pkg/util/intstr" +) + +// Handler defines a specific action that should be taken +// TODO: pass structured data to these actions, and document that data here. +type Handler struct { + // One and only one of the following should be specified. + // Exec specifies the action to take. + // +optional + Exec *core.ExecAction `json:"exec,omitempty" protobuf:"bytes,1,opt,name=exec"` + // HTTPGet specifies the http Get request to perform. + // +optional + HTTPGet *core.HTTPGetAction `json:"httpGet,omitempty" protobuf:"bytes,2,opt,name=httpGet"` + // HTTPPost specifies the http Post request to perform. + // +optional + HTTPPost *HTTPPostAction `json:"httpPost,omitempty" protobuf:"bytes,3,opt,name=httpPost"` + // TCPSocket specifies an action involving a TCP port. + // TCP hooks not yet supported + // TODO: implement a realistic TCP lifecycle hook + // +optional + TCPSocket *core.TCPSocketAction `json:"tcpSocket,omitempty" protobuf:"bytes,4,opt,name=tcpSocket"` +} + +// HTTPPostAction describes an action based on HTTP Post requests. +type HTTPPostAction struct { + // Path to access on the HTTP server. + // +optional + Path string `json:"path,omitempty" protobuf:"bytes,1,opt,name=path"` + // Name or number of the port to access on the container. + // Number must be in the range 1 to 65535. + // Name must be an IANA_SVC_NAME. + Port intstr.IntOrString `json:"port" protobuf:"bytes,2,opt,name=port"` + // Host name to connect to, defaults to the pod IP. You probably want to set + // "Host" in httpHeaders instead. + // +optional + Host string `json:"host,omitempty" protobuf:"bytes,3,opt,name=host"` + // Scheme to use for connecting to the host. + // Defaults to HTTP. + // +optional + Scheme core.URIScheme `json:"scheme,omitempty" protobuf:"bytes,4,opt,name=scheme,casttype=k8s.io/api/core/v1.URIScheme"` + // Custom headers to set in the request. HTTP allows repeated headers. + // +optional + HTTPHeaders []core.HTTPHeader `json:"httpHeaders,omitempty" protobuf:"bytes,5,rep,name=httpHeaders"` + // Body to set in the request. + // +optional + Body string `json:"body,omitempty" protobuf:"bytes,6,opt,name=body"` + // Form to set in the request body. + // +optional + Form map[string]ValueList `json:"form,omitempty" protobuf:"bytes,7,rep,name=form"` +} + +type ValueList struct { + Values []string `json:"values,omitempty" protobuf:"bytes,1,rep,name=values"` +} diff --git a/vendor/kmodules.xyz/prober/api/v1/zz_generated.deepcopy.go b/vendor/kmodules.xyz/prober/api/v1/zz_generated.deepcopy.go new file mode 100644 index 000000000..6b814558a --- /dev/null +++ b/vendor/kmodules.xyz/prober/api/v1/zz_generated.deepcopy.go @@ -0,0 +1,111 @@ +// +build !ignore_autogenerated + +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by deepcopy-gen. DO NOT EDIT. + +package v1 + +import ( + corev1 "k8s.io/api/core/v1" +) + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *HTTPPostAction) DeepCopyInto(out *HTTPPostAction) { + *out = *in + out.Port = in.Port + if in.HTTPHeaders != nil { + in, out := &in.HTTPHeaders, &out.HTTPHeaders + *out = make([]corev1.HTTPHeader, len(*in)) + copy(*out, *in) + } + if in.Form != nil { + in, out := &in.Form, &out.Form + *out = make(map[string]ValueList, len(*in)) + for key, val := range *in { + (*out)[key] = *val.DeepCopy() + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HTTPPostAction. +func (in *HTTPPostAction) DeepCopy() *HTTPPostAction { + if in == nil { + return nil + } + out := new(HTTPPostAction) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *Handler) DeepCopyInto(out *Handler) { + *out = *in + if in.Exec != nil { + in, out := &in.Exec, &out.Exec + *out = new(corev1.ExecAction) + (*in).DeepCopyInto(*out) + } + if in.HTTPGet != nil { + in, out := &in.HTTPGet, &out.HTTPGet + *out = new(corev1.HTTPGetAction) + (*in).DeepCopyInto(*out) + } + if in.HTTPPost != nil { + in, out := &in.HTTPPost, &out.HTTPPost + *out = new(HTTPPostAction) + (*in).DeepCopyInto(*out) + } + if in.TCPSocket != nil { + in, out := &in.TCPSocket, &out.TCPSocket + *out = new(corev1.TCPSocketAction) + **out = **in + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Handler. +func (in *Handler) DeepCopy() *Handler { + if in == nil { + return nil + } + out := new(Handler) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ValueList) DeepCopyInto(out *ValueList) { + *out = *in + if in.Values != nil { + in, out := &in.Values, &out.Values + *out = make([]string, len(*in)) + copy(*out, *in) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValueList. +func (in *ValueList) DeepCopy() *ValueList { + if in == nil { + return nil + } + out := new(ValueList) + in.DeepCopyInto(out) + return out +} diff --git a/vendor/kmodules.xyz/webhook-runtime/admission/handler.go b/vendor/kmodules.xyz/webhook-runtime/admission/handler.go index d65a066ba..e41c3dac8 100644 --- a/vendor/kmodules.xyz/webhook-runtime/admission/handler.go +++ b/vendor/kmodules.xyz/webhook-runtime/admission/handler.go @@ -1,3 +1,18 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ package admission import "k8s.io/apimachinery/pkg/runtime" diff --git a/vendor/kmodules.xyz/webhook-runtime/admission/v1beta1/errors.go b/vendor/kmodules.xyz/webhook-runtime/admission/v1beta1/errors.go index de932c230..6c1f2d00c 100644 --- a/vendor/kmodules.xyz/webhook-runtime/admission/v1beta1/errors.go +++ b/vendor/kmodules.xyz/webhook-runtime/admission/v1beta1/errors.go @@ -1,3 +1,18 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ package v1beta1 import ( diff --git a/vendor/kmodules.xyz/webhook-runtime/admission/v1beta1/generic/generic.go b/vendor/kmodules.xyz/webhook-runtime/admission/v1beta1/generic/generic.go index 4cb9b6c48..ae5d2c7d3 100644 --- a/vendor/kmodules.xyz/webhook-runtime/admission/v1beta1/generic/generic.go +++ b/vendor/kmodules.xyz/webhook-runtime/admission/v1beta1/generic/generic.go @@ -1,9 +1,29 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ package generic import ( "bytes" "sync" + "kmodules.xyz/client-go/meta" + "kmodules.xyz/webhook-runtime/admission" + api "kmodules.xyz/webhook-runtime/admission/v1beta1" + "kmodules.xyz/webhook-runtime/runtime/serializer/versioning" + "github.com/golang/glog" jsoniter "github.com/json-iterator/go" jp "gomodules.xyz/jsonpatch/v2" @@ -13,10 +33,6 @@ import ( "k8s.io/apimachinery/pkg/util/sets" "k8s.io/client-go/rest" "k8s.io/kubernetes/pkg/api/legacyscheme" - "kmodules.xyz/client-go/meta" - "kmodules.xyz/webhook-runtime/admission" - api "kmodules.xyz/webhook-runtime/admission/v1beta1" - "kmodules.xyz/webhook-runtime/runtime/serializer/versioning" ) var json = jsoniter.ConfigFastest diff --git a/vendor/kmodules.xyz/webhook-runtime/admission/v1beta1/types.go b/vendor/kmodules.xyz/webhook-runtime/admission/v1beta1/types.go index d85c93ee8..04daec684 100644 --- a/vendor/kmodules.xyz/webhook-runtime/admission/v1beta1/types.go +++ b/vendor/kmodules.xyz/webhook-runtime/admission/v1beta1/types.go @@ -1,15 +1,27 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ package v1beta1 import ( - jsoniter "github.com/json-iterator/go" admission "k8s.io/api/admission/v1beta1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/schema" "k8s.io/client-go/rest" ) -var json = jsoniter.ConfigFastest - type AdmissionHook interface { // Initialize is called as a post-start hook Initialize(config *rest.Config, stopCh <-chan struct{}) error diff --git a/vendor/kmodules.xyz/webhook-runtime/admission/v1beta1/workload/workload.go b/vendor/kmodules.xyz/webhook-runtime/admission/v1beta1/workload/workload.go index 3a11c7b72..f22722ec6 100644 --- a/vendor/kmodules.xyz/webhook-runtime/admission/v1beta1/workload/workload.go +++ b/vendor/kmodules.xyz/webhook-runtime/admission/v1beta1/workload/workload.go @@ -1,9 +1,30 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ package workload import ( "bytes" "sync" + "kmodules.xyz/client-go/meta" + "kmodules.xyz/webhook-runtime/admission" + api "kmodules.xyz/webhook-runtime/admission/v1beta1" + v1 "kmodules.xyz/webhook-runtime/apis/workload/v1" + cs "kmodules.xyz/webhook-runtime/client/workload/v1" + "github.com/golang/glog" jsoniter "github.com/json-iterator/go" jp "gomodules.xyz/jsonpatch/v2" @@ -17,11 +38,6 @@ import ( "k8s.io/apimachinery/pkg/util/sets" "k8s.io/client-go/rest" "k8s.io/kubernetes/pkg/api/legacyscheme" - "kmodules.xyz/client-go/meta" - "kmodules.xyz/webhook-runtime/admission" - api "kmodules.xyz/webhook-runtime/admission/v1beta1" - v1 "kmodules.xyz/webhook-runtime/apis/workload/v1" - cs "kmodules.xyz/webhook-runtime/client/workload/v1" ) var json = jsoniter.ConfigFastest diff --git a/vendor/kmodules.xyz/webhook-runtime/apis/workload/v1/constants.go b/vendor/kmodules.xyz/webhook-runtime/apis/workload/v1/constants.go index b5e733654..4d2d3b0aa 100644 --- a/vendor/kmodules.xyz/webhook-runtime/apis/workload/v1/constants.go +++ b/vendor/kmodules.xyz/webhook-runtime/apis/workload/v1/constants.go @@ -1,3 +1,18 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ package v1 import ( diff --git a/vendor/kmodules.xyz/webhook-runtime/apis/workload/v1/doc.go b/vendor/kmodules.xyz/webhook-runtime/apis/workload/v1/doc.go index 632034959..0323b3cf5 100644 --- a/vendor/kmodules.xyz/webhook-runtime/apis/workload/v1/doc.go +++ b/vendor/kmodules.xyz/webhook-runtime/apis/workload/v1/doc.go @@ -1,2 +1,17 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ // +k8s:deepcopy-gen=package package v1 diff --git a/vendor/kmodules.xyz/webhook-runtime/apis/workload/v1/types.go b/vendor/kmodules.xyz/webhook-runtime/apis/workload/v1/types.go index 794ee3c56..4b6b27231 100644 --- a/vendor/kmodules.xyz/webhook-runtime/apis/workload/v1/types.go +++ b/vendor/kmodules.xyz/webhook-runtime/apis/workload/v1/types.go @@ -1,3 +1,18 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ package v1 import ( diff --git a/vendor/kmodules.xyz/webhook-runtime/apis/workload/v1/zz_generated.deepcopy.go b/vendor/kmodules.xyz/webhook-runtime/apis/workload/v1/zz_generated.deepcopy.go index d908dbc11..a5eebf9c8 100644 --- a/vendor/kmodules.xyz/webhook-runtime/apis/workload/v1/zz_generated.deepcopy.go +++ b/vendor/kmodules.xyz/webhook-runtime/apis/workload/v1/zz_generated.deepcopy.go @@ -1,7 +1,7 @@ // +build !ignore_autogenerated /* -Copyright 2019 The kubernetes-webhook-util Authors. +Copyright The Kmodules Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/vendor/kmodules.xyz/webhook-runtime/client/workload/v1/client.go b/vendor/kmodules.xyz/webhook-runtime/client/workload/v1/client.go index 275144252..82f71f86d 100644 --- a/vendor/kmodules.xyz/webhook-runtime/client/workload/v1/client.go +++ b/vendor/kmodules.xyz/webhook-runtime/client/workload/v1/client.go @@ -1,12 +1,28 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ package v1 import ( - "k8s.io/client-go/kubernetes" - "k8s.io/client-go/rest" "kmodules.xyz/client-go/discovery" ocapps "kmodules.xyz/openshift/apis/apps/v1" occ "kmodules.xyz/openshift/client/clientset/versioned" wpi "kmodules.xyz/webhook-runtime/apis/workload/v1" + + "k8s.io/client-go/kubernetes" + "k8s.io/client-go/rest" ) type Interface interface { diff --git a/vendor/kmodules.xyz/webhook-runtime/client/workload/v1/factory.go b/vendor/kmodules.xyz/webhook-runtime/client/workload/v1/factory.go index e54436689..5126ebb16 100644 --- a/vendor/kmodules.xyz/webhook-runtime/client/workload/v1/factory.go +++ b/vendor/kmodules.xyz/webhook-runtime/client/workload/v1/factory.go @@ -1,7 +1,26 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ package v1 import ( "fmt" + + ocapps "kmodules.xyz/openshift/apis/apps/v1" + v1 "kmodules.xyz/webhook-runtime/apis/workload/v1" + appsv1 "k8s.io/api/apps/v1" appsv1beta1 "k8s.io/api/apps/v1beta1" appsv1beta2 "k8s.io/api/apps/v1beta2" @@ -14,8 +33,6 @@ import ( "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/schema" "k8s.io/kubernetes/pkg/api/legacyscheme" - ocapps "kmodules.xyz/openshift/apis/apps/v1" - v1 "kmodules.xyz/webhook-runtime/apis/workload/v1" ) func NewWorkload(t metav1.TypeMeta, o metav1.ObjectMeta, tpl core.PodTemplateSpec) *v1.Workload { diff --git a/vendor/kmodules.xyz/webhook-runtime/client/workload/v1/workload.go b/vendor/kmodules.xyz/webhook-runtime/client/workload/v1/workload.go index bb490343a..03f7f738d 100644 --- a/vendor/kmodules.xyz/webhook-runtime/client/workload/v1/workload.go +++ b/vendor/kmodules.xyz/webhook-runtime/client/workload/v1/workload.go @@ -1,8 +1,28 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ package v1 import ( "fmt" + kutil "kmodules.xyz/client-go" + ocapps "kmodules.xyz/openshift/apis/apps/v1" + occ "kmodules.xyz/openshift/client/clientset/versioned" + v1 "kmodules.xyz/webhook-runtime/apis/workload/v1" + jsonpatch "github.com/evanphx/json-patch" "github.com/golang/glog" jsoniter "github.com/json-iterator/go" @@ -19,10 +39,6 @@ import ( "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/types" "k8s.io/client-go/kubernetes" - kutil "kmodules.xyz/client-go" - ocapps "kmodules.xyz/openshift/apis/apps/v1" - occ "kmodules.xyz/openshift/client/clientset/versioned" - v1 "kmodules.xyz/webhook-runtime/apis/workload/v1" ) var json = jsoniter.ConfigFastest @@ -71,82 +87,118 @@ func (c *workloads) Create(w *v1.Workload) (*v1.Workload, error) { switch w.GroupVersionKind() { case core.SchemeGroupVersion.WithKind(v1.KindPod): obj := &core.Pod{} - ApplyWorkload(obj, w) + if err = ApplyWorkload(obj, w); err != nil { + return nil, err + } out, err = c.kc.CoreV1().Pods(c.ns).Create(obj) // ReplicationController case core.SchemeGroupVersion.WithKind(v1.KindReplicationController): obj := &core.ReplicationController{} - ApplyWorkload(obj, w) + if err = ApplyWorkload(obj, w); err != nil { + return nil, err + } out, err = c.kc.CoreV1().ReplicationControllers(c.ns).Create(obj) // Deployment case extensions.SchemeGroupVersion.WithKind(v1.KindDeployment): obj := &extensions.Deployment{} - ApplyWorkload(obj, w) + if err = ApplyWorkload(obj, w); err != nil { + return nil, err + } out, err = c.kc.ExtensionsV1beta1().Deployments(c.ns).Create(obj) case appsv1beta1.SchemeGroupVersion.WithKind(v1.KindDeployment): obj := &appsv1beta1.Deployment{} - ApplyWorkload(obj, w) + if err = ApplyWorkload(obj, w); err != nil { + return nil, err + } out, err = c.kc.AppsV1beta1().Deployments(c.ns).Create(obj) case appsv1beta2.SchemeGroupVersion.WithKind(v1.KindDeployment): obj := &appsv1beta2.Deployment{} - ApplyWorkload(obj, w) + if err = ApplyWorkload(obj, w); err != nil { + return nil, err + } out, err = c.kc.AppsV1beta2().Deployments(c.ns).Create(obj) case appsv1.SchemeGroupVersion.WithKind(v1.KindDeployment): obj := &appsv1.Deployment{} - ApplyWorkload(obj, w) + if err = ApplyWorkload(obj, w); err != nil { + return nil, err + } out, err = c.kc.AppsV1().Deployments(c.ns).Create(obj) // DaemonSet case extensions.SchemeGroupVersion.WithKind(v1.KindDaemonSet): obj := &extensions.DaemonSet{} - ApplyWorkload(obj, w) + if err = ApplyWorkload(obj, w); err != nil { + return nil, err + } out, err = c.kc.ExtensionsV1beta1().DaemonSets(c.ns).Create(obj) case appsv1beta2.SchemeGroupVersion.WithKind(v1.KindDaemonSet): obj := &appsv1beta2.DaemonSet{} - ApplyWorkload(obj, w) + if err = ApplyWorkload(obj, w); err != nil { + return nil, err + } out, err = c.kc.AppsV1beta2().DaemonSets(c.ns).Create(obj) case appsv1.SchemeGroupVersion.WithKind(v1.KindDaemonSet): obj := &appsv1.DaemonSet{} - ApplyWorkload(obj, w) + if err = ApplyWorkload(obj, w); err != nil { + return nil, err + } out, err = c.kc.AppsV1().DaemonSets(c.ns).Create(obj) // ReplicaSet case extensions.SchemeGroupVersion.WithKind(v1.KindReplicaSet): obj := &extensions.ReplicaSet{} - ApplyWorkload(obj, w) + if err = ApplyWorkload(obj, w); err != nil { + return nil, err + } out, err = c.kc.ExtensionsV1beta1().ReplicaSets(c.ns).Create(obj) case appsv1beta2.SchemeGroupVersion.WithKind(v1.KindReplicaSet): obj := &appsv1beta2.ReplicaSet{} - ApplyWorkload(obj, w) + if err = ApplyWorkload(obj, w); err != nil { + return nil, err + } out, err = c.kc.AppsV1beta2().ReplicaSets(c.ns).Create(obj) case appsv1.SchemeGroupVersion.WithKind(v1.KindReplicaSet): obj := &appsv1.ReplicaSet{} - ApplyWorkload(obj, w) + if err = ApplyWorkload(obj, w); err != nil { + return nil, err + } out, err = c.kc.AppsV1().ReplicaSets(c.ns).Create(obj) // StatefulSet case appsv1beta1.SchemeGroupVersion.WithKind(v1.KindStatefulSet): obj := &appsv1beta1.StatefulSet{} - ApplyWorkload(obj, w) + if err = ApplyWorkload(obj, w); err != nil { + return nil, err + } out, err = c.kc.AppsV1beta1().StatefulSets(c.ns).Create(obj) case appsv1beta2.SchemeGroupVersion.WithKind(v1.KindStatefulSet): obj := &appsv1beta2.StatefulSet{} - ApplyWorkload(obj, w) + if err = ApplyWorkload(obj, w); err != nil { + return nil, err + } out, err = c.kc.AppsV1beta2().StatefulSets(c.ns).Create(obj) case appsv1.SchemeGroupVersion.WithKind(v1.KindStatefulSet): obj := &appsv1.StatefulSet{} - ApplyWorkload(obj, w) + if err = ApplyWorkload(obj, w); err != nil { + return nil, err + } out, err = c.kc.AppsV1().StatefulSets(c.ns).Create(obj) // Job case batchv1.SchemeGroupVersion.WithKind(v1.KindJob): obj := &batchv1.Job{} - ApplyWorkload(obj, w) + if err = ApplyWorkload(obj, w); err != nil { + return nil, err + } out, err = c.kc.BatchV1().Jobs(c.ns).Create(obj) // CronJob case batchv1beta1.SchemeGroupVersion.WithKind(v1.KindCronJob): obj := &batchv1beta1.CronJob{} - ApplyWorkload(obj, w) + if err = ApplyWorkload(obj, w); err != nil { + return nil, err + } out, err = c.kc.BatchV1beta1().CronJobs(c.ns).Create(obj) case ocapps.SchemeGroupVersion.WithKind(v1.KindDeploymentConfig): obj := &ocapps.DeploymentConfig{} - ApplyWorkload(obj, w) + if err = ApplyWorkload(obj, w); err != nil { + return nil, err + } out, err = c.oc.AppsV1().DeploymentConfigs(c.ns).Create(obj) default: err = fmt.Errorf("the object is not a pod or does not have a pod template") diff --git a/vendor/kmodules.xyz/webhook-runtime/registry/admissionreview/v1beta1/admission_review.go b/vendor/kmodules.xyz/webhook-runtime/registry/admissionreview/v1beta1/admission_review.go index 51a86dff1..1d0c05bce 100644 --- a/vendor/kmodules.xyz/webhook-runtime/registry/admissionreview/v1beta1/admission_review.go +++ b/vendor/kmodules.xyz/webhook-runtime/registry/admissionreview/v1beta1/admission_review.go @@ -1,3 +1,18 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ package v1beta1 import ( diff --git a/vendor/kmodules.xyz/webhook-runtime/runtime/serializer/versioning/codec.go b/vendor/kmodules.xyz/webhook-runtime/runtime/serializer/versioning/codec.go index a54bd72cd..829b9ddd5 100644 --- a/vendor/kmodules.xyz/webhook-runtime/runtime/serializer/versioning/codec.go +++ b/vendor/kmodules.xyz/webhook-runtime/runtime/serializer/versioning/codec.go @@ -1,8 +1,25 @@ +/* +Copyright The Kmodules Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ package versioning import ( "io" + _ "kmodules.xyz/openshift/apis/apps/install" + _ "k8s.io/api/extensions/v1beta1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/schema" @@ -13,7 +30,6 @@ import ( _ "k8s.io/kubernetes/pkg/apis/extensions/install" _ "k8s.io/kubernetes/pkg/apis/rbac/install" _ "k8s.io/kubernetes/pkg/apis/storage/install" - _ "kmodules.xyz/openshift/apis/apps/install" ) type codec struct { diff --git a/vendor/modules.txt b/vendor/modules.txt index adae7b448..48c0d5fad 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -201,7 +201,7 @@ github.com/jmespath/go-jmespath github.com/jpillora/go-ogle-analytics # github.com/json-iterator/go v1.1.6 github.com/json-iterator/go -# github.com/kubernetes-csi/external-snapshotter v1.2.0 +# github.com/kubernetes-csi/external-snapshotter v1.2.2 github.com/kubernetes-csi/external-snapshotter/pkg/apis/volumesnapshot/v1alpha1 github.com/kubernetes-csi/external-snapshotter/pkg/client/clientset/versioned github.com/kubernetes-csi/external-snapshotter/pkg/client/clientset/versioned/typed/volumesnapshot/v1alpha1 @@ -925,7 +925,7 @@ k8s.io/utils/integer k8s.io/utils/buffer k8s.io/utils/trace k8s.io/utils/pointer -# kmodules.xyz/client-go v0.0.0-20191101042247-ee9566c9ac7f +# kmodules.xyz/client-go v0.0.0-20191107203555-78563b72c377 kmodules.xyz/client-go/logs kmodules.xyz/client-go/apiextensions/v1beta1 kmodules.xyz/client-go/meta @@ -944,9 +944,12 @@ kmodules.xyz/client-go/batch/v1beta1 kmodules.xyz/client-go/dynamic kmodules.xyz/client-go/tools/analytics kmodules.xyz/client-go/apiregistration/v1beta1 -# kmodules.xyz/constants v0.0.0-20191009183447-fbd33067b8a6 +# kmodules.xyz/constants v0.0.0-20191024095500-cd4313df4aa6 kmodules.xyz/constants/google -# kmodules.xyz/custom-resources v0.0.0-20190927035424-65fe358bb045 +kmodules.xyz/constants/aws +kmodules.xyz/constants/azure +kmodules.xyz/constants/openstack +# kmodules.xyz/custom-resources v0.0.0-20191111200327-6984cba51875 kmodules.xyz/custom-resources/client/clientset/versioned kmodules.xyz/custom-resources/apis/appcatalog/v1alpha1 kmodules.xyz/custom-resources/client/clientset/versioned/scheme @@ -957,10 +960,10 @@ kmodules.xyz/custom-resources/apis/appcatalog kmodules.xyz/custom-resources/client/informers/externalversions/appcatalog kmodules.xyz/custom-resources/client/informers/externalversions/internalinterfaces kmodules.xyz/custom-resources/client/informers/externalversions/appcatalog/v1alpha1 -# kmodules.xyz/objectstore-api v0.0.0-20191106100235-bea39a8e0874 +# kmodules.xyz/objectstore-api v0.0.0-20191111201754-2aba8370dfda kmodules.xyz/objectstore-api/api/v1 kmodules.xyz/objectstore-api/osm -# kmodules.xyz/offshoot-api v0.0.0-20190901210649-de049192326c +# kmodules.xyz/offshoot-api v0.0.0-20191111195805-1105abf4a162 kmodules.xyz/offshoot-api/api/v1 kmodules.xyz/offshoot-api/util # kmodules.xyz/openshift v0.0.0-20190808144841-c8f9a927f1d1 @@ -980,7 +983,9 @@ kmodules.xyz/openshift/client/informers/externalversions/apps/v1 kmodules.xyz/openshift/client/informers/externalversions/security/v1 kmodules.xyz/openshift/apis/apps/install kmodules.xyz/openshift/client/listers/security/v1 -# kmodules.xyz/webhook-runtime v0.0.0-20190808145328-4186c470d56b +# kmodules.xyz/prober v0.0.0-20191111210804-26d3576296bc +kmodules.xyz/prober/api/v1 +# kmodules.xyz/webhook-runtime v0.0.0-20191106182834-bf518fbc7b19 kmodules.xyz/webhook-runtime/admission kmodules.xyz/webhook-runtime/admission/v1beta1 kmodules.xyz/webhook-runtime/admission/v1beta1/generic