go.mod: update osbuild/images to v0.156.0
tag v0.155.0 Tagger: imagebuilder-bot <imagebuilder-bots+imagebuilder-bot@redhat.com> Changes with 0.155.0 ---------------- * Fedora 43: add shadow-utils when LockRoot is enabled, update cloud-init service name (osbuild/images#1618) * Author: Achilleas Koutsou, Reviewers: Gianluca Zuccarelli, Michael Vogt * Update osbuild dependency commit ID to latest (osbuild/images#1609) * Author: SchutzBot, Reviewers: Achilleas Koutsou, Simon de Vlieger, Tomáš Hozza * Update snapshots to 20250626 (osbuild/images#1623) * Author: SchutzBot, Reviewers: Achilleas Koutsou, Simon de Vlieger * distro/rhel9: xz compress azure-cvm image type [HMS-8587] (osbuild/images#1620) * Author: Achilleas Koutsou, Reviewers: Simon de Vlieger, Tomáš Hozza * distro/rhel: introduce new image type: Azure SAP Apps [HMS-8738] (osbuild/images#1612) * Author: Achilleas Koutsou, Reviewers: Simon de Vlieger, Tomáš Hozza * distro/rhel: move ansible-core to sap_extras_pkgset (osbuild/images#1624) * Author: Achilleas Koutsou, Reviewers: Brian C. Lane, Tomáš Hozza * github/create-tag: allow passing the version when run manually (osbuild/images#1621) * Author: Achilleas Koutsou, Reviewers: Lukáš Zapletal, Tomáš Hozza * rhel9: move image-config into pure YAML (HMS-8593) (osbuild/images#1616) * Author: Michael Vogt, Reviewers: Achilleas Koutsou, Simon de Vlieger * test: split manifest checksums into separate files (osbuild/images#1625) * Author: Achilleas Koutsou, Reviewers: Simon de Vlieger, Tomáš Hozza — Somewhere on the Internet, 2025-06-30 --- tag v0.156.0 Tagger: imagebuilder-bot <imagebuilder-bots+imagebuilder-bot@redhat.com> Changes with 0.156.0 ---------------- * Many: delete repositories for EOL distributions (HMS-7044) (osbuild/images#1607) * Author: Tomáš Hozza, Reviewers: Michael Vogt, Simon de Vlieger * RHSM/facts: add 'image-builder CLI' API type (osbuild/images#1640) * Author: Tomáš Hozza, Reviewers: Brian C. Lane, Simon de Vlieger * Update dependencies 2025-06-29 (osbuild/images#1628) * Author: SchutzBot, Reviewers: Simon de Vlieger, Tomáš Hozza * Update osbuild dependency commit ID to latest (osbuild/images#1627) * Author: SchutzBot, Reviewers: Simon de Vlieger, Tomáš Hozza * [RFC] image: drop `InstallWeakDeps` from image.DiskImage (osbuild/images#1642) * Author: Michael Vogt, Reviewers: Brian C. Lane, Simon de Vlieger, Tomáš Hozza * build(deps): bump the go-deps group across 1 directory with 3 updates (osbuild/images#1632) * Author: dependabot[bot], Reviewers: SchutzBot, Tomáš Hozza * distro/rhel10: xz compress azure-cvm image type (osbuild/images#1638) * Author: Achilleas Koutsou, Reviewers: Brian C. Lane, Simon de Vlieger * distro: cleanup/refactor distro/{defs,generic} (HMS-8744) (osbuild/images#1570) * Author: Michael Vogt, Reviewers: Simon de Vlieger, Tomáš Hozza * distro: remove some hardcoded values from generic/images.go (osbuild/images#1636) * Author: Michael Vogt, Reviewers: Simon de Vlieger, Tomáš Hozza * distro: small tweaks for the YAML based imagetypes (osbuild/images#1622) * Author: Michael Vogt, Reviewers: Brian C. Lane, Simon de Vlieger * fedora/wsl: packages and locale (osbuild/images#1635) * Author: Simon de Vlieger, Reviewers: Michael Vogt, Tomáš Hozza * image/many: make compression more generic (osbuild/images#1634) * Author: Simon de Vlieger, Reviewers: Brian C. Lane, Michael Vogt * manifest: handle content template name with spaces (osbuild/images#1641) * Author: Bryttanie, Reviewers: Brian C. Lane, Michael Vogt, Tomáš Hozza * many: implement gzip (osbuild/images#1633) * Author: Simon de Vlieger, Reviewers: Michael Vogt, Tomáš Hozza * rhel/azure: set GRUB_TERMINAL based on architecture [RHEL-91383] (osbuild/images#1626) * Author: Achilleas Koutsou, Reviewers: Simon de Vlieger, Tomáš Hozza — Somewhere on the Internet, 2025-07-07 ---
This commit is contained in:
parent
60c5f10af8
commit
3fd7092db5
1486 changed files with 124742 additions and 82516 deletions
44
vendor/github.com/vmware/govmomi/.goreleaser.yml
generated
vendored
44
vendor/github.com/vmware/govmomi/.goreleaser.yml
generated
vendored
|
|
@ -1,6 +1,11 @@
|
|||
---
|
||||
version: 2
|
||||
project_name: govmomi
|
||||
|
||||
env:
|
||||
- GO_VERSION=1.24
|
||||
- ALPINE_VERSION=3.21
|
||||
|
||||
builds:
|
||||
- id: govc
|
||||
no_main_check: true
|
||||
|
|
@ -37,7 +42,9 @@ builds:
|
|||
|
||||
nfpms:
|
||||
- package_name: govmomi
|
||||
builds:
|
||||
vendor: Broadcom
|
||||
license: Apache 2.0
|
||||
ids:
|
||||
- govc
|
||||
- vcsim
|
||||
homepage: https://github.com/vmware/govmomi
|
||||
|
|
@ -49,7 +56,7 @@ nfpms:
|
|||
|
||||
archives:
|
||||
- id: govcbuild
|
||||
builds:
|
||||
ids:
|
||||
- govc
|
||||
name_template: >-
|
||||
govc_
|
||||
|
|
@ -59,14 +66,14 @@ archives:
|
|||
{{- else }}{{ .Arch }}{{ end }}
|
||||
format_overrides: &overrides
|
||||
- goos: windows
|
||||
format: zip
|
||||
formats:
|
||||
- zip
|
||||
files: &extrafiles
|
||||
- CHANGELOG.md
|
||||
- LICENSE.txt
|
||||
- README.md
|
||||
|
||||
- id: vcsimbuild
|
||||
builds:
|
||||
ids:
|
||||
- vcsim
|
||||
name_template: >-
|
||||
vcsim_
|
||||
|
|
@ -78,7 +85,7 @@ archives:
|
|||
files: *extrafiles
|
||||
|
||||
snapshot:
|
||||
name_template: "{{ .Tag }}-next"
|
||||
version_template: "{{ .Tag }}-next"
|
||||
|
||||
checksum:
|
||||
name_template: "checksums.txt"
|
||||
|
|
@ -108,6 +115,30 @@ dockers:
|
|||
- "--label=org.opencontainers.image.version={{.Version}}"
|
||||
- "--label=org.opencontainers.image.url=https://github.com/vmware/govmomi"
|
||||
- "--platform=linux/amd64"
|
||||
- "--build-arg=GO_VERSION={{.Env.GO_VERSION}}"
|
||||
|
||||
- image_templates:
|
||||
- "vmware/govc:{{ .Tag }}-runner"
|
||||
- "vmware/govc:alpine-{{ .Tag }}-runner"
|
||||
- "vmware/govc:{{ .ShortCommit }}-runner"
|
||||
- "vmware/govc:alpine-{{ .ShortCommit }}-runner"
|
||||
- "vmware/govc:latest-runner"
|
||||
- "vmware/govc:alpine-latest-runner"
|
||||
dockerfile: Dockerfile.govc.runner
|
||||
ids:
|
||||
- govc
|
||||
extra_files:
|
||||
- scripts/runner/entrypoint.sh
|
||||
build_flag_templates:
|
||||
- "--pull"
|
||||
- "--label=org.opencontainers.image.created={{.Date}}"
|
||||
- "--label=org.opencontainers.image.title={{.ProjectName}}"
|
||||
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
|
||||
- "--label=org.opencontainers.image.version={{.Version}}"
|
||||
- "--label=org.opencontainers.image.url=https://github.com/vmware/govmomi"
|
||||
- "--platform=linux/amd64"
|
||||
- "--build-arg=ALPINE_VERSION={{.Env.ALPINE_VERSION}}"
|
||||
|
||||
- image_templates:
|
||||
- "vmware/vcsim:{{ .Tag }}"
|
||||
- "vmware/vcsim:{{ .ShortCommit }}"
|
||||
|
|
@ -123,3 +154,4 @@ dockers:
|
|||
- "--label=org.opencontainers.image.version={{.Version}}"
|
||||
- "--label=org.opencontainers.image.url=https://github.com/vmware/govmomi"
|
||||
- "--platform=linux/amd64"
|
||||
- "--build-arg=GO_VERSION={{.Env.GO_VERSION}}"
|
||||
|
|
|
|||
26
vendor/github.com/vmware/govmomi/Dockerfile.govc
generated
vendored
26
vendor/github.com/vmware/govmomi/Dockerfile.govc
generated
vendored
|
|
@ -1,10 +1,14 @@
|
|||
# Create a builder container
|
||||
# golang:1.18.0-buster amd64
|
||||
FROM golang@sha256:7d39537344486528f8cdb3bd8adb98ab7f0f4236044b6944fed8631da35a4ce5 AS build
|
||||
# © Broadcom. All Rights Reserved.
|
||||
# The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
# --- Builder Stage ---
|
||||
# Uses the official Go Docker image for the build.
|
||||
|
||||
ARG GO_VERSION
|
||||
FROM golang:${GO_VERSION} AS build
|
||||
WORKDIR /go/src/app
|
||||
|
||||
# Create appuser to isolate potential vulnerabilities
|
||||
# See https://stackoverflow.com/a/55757473/12429735
|
||||
ENV USER=appuser
|
||||
ENV UID=10001
|
||||
RUN adduser \
|
||||
|
|
@ -15,31 +19,23 @@ RUN adduser \
|
|||
--uid "${UID}" \
|
||||
"${USER}"
|
||||
|
||||
# Create a new tmp directory so no bad actors can manipulate it
|
||||
RUN mkdir /temporary-tmp-directory && chmod 777 /temporary-tmp-directory
|
||||
|
||||
###############################################################################
|
||||
# Final stage
|
||||
# --- Final Stage ---
|
||||
|
||||
FROM scratch
|
||||
|
||||
# Allow container to use latest TLS certificates
|
||||
COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
||||
|
||||
# Copy over appuser to run as non-root
|
||||
COPY --from=build /etc/passwd /etc/passwd
|
||||
COPY --from=build /etc/group /etc/group
|
||||
|
||||
# Copy over the /tmp directory for golang/os.TmpDir
|
||||
COPY --chown=appuser --from=build /temporary-tmp-directory /tmp
|
||||
|
||||
# Copy application from external build
|
||||
COPY govc /govc
|
||||
|
||||
# Run all commands as non-root
|
||||
USER appuser:appuser
|
||||
|
||||
# session cache, etc
|
||||
ENV GOVMOMI_HOME=/tmp
|
||||
|
||||
# Set CMD to application with container defaults
|
||||
CMD ["/govc"]
|
||||
|
|
|
|||
37
vendor/github.com/vmware/govmomi/Dockerfile.govc.runner
generated
vendored
Normal file
37
vendor/github.com/vmware/govmomi/Dockerfile.govc.runner
generated
vendored
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
# © Broadcom. All Rights Reserved.
|
||||
# The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
ARG ALPINE_VERSION
|
||||
FROM alpine:${ALPINE_VERSION}
|
||||
|
||||
ENV USER=appuser
|
||||
ENV UID=10001
|
||||
|
||||
RUN adduser \
|
||||
--disabled-password \
|
||||
--gecos "" \
|
||||
--shell "/sbin/nologin" \
|
||||
--no-create-home \
|
||||
--uid "${UID}" \
|
||||
"${USER}" && \
|
||||
mkdir -p /home/${USER} /tmp && \
|
||||
chown -R "${USER}:${USER}" /home/${USER} /tmp && \
|
||||
apk --no-cache add --no-check-certificate ca-certificates && \
|
||||
update-ca-certificates && \
|
||||
rm -rf /var/cache/apk/*
|
||||
|
||||
COPY govc /usr/local/bin/govc
|
||||
RUN chmod +x /usr/local/bin/govc
|
||||
|
||||
COPY scripts/runner/entrypoint.sh /entrypoint.sh
|
||||
RUN chmod +x /entrypoint.sh
|
||||
|
||||
USER "${USER}"
|
||||
|
||||
ENV GOVMOMI_HOME=/tmp
|
||||
ENV PATH="$PATH:/usr/local/bin"
|
||||
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
|
||||
WORKDIR /home/${USER}
|
||||
27
vendor/github.com/vmware/govmomi/Dockerfile.vcsim
generated
vendored
27
vendor/github.com/vmware/govmomi/Dockerfile.vcsim
generated
vendored
|
|
@ -1,47 +1,42 @@
|
|||
# Create a builder container
|
||||
# golang:1.18.0-buster amd64
|
||||
FROM golang@sha256:7d39537344486528f8cdb3bd8adb98ab7f0f4236044b6944fed8631da35a4ce5 AS build
|
||||
# © Broadcom. All Rights Reserved.
|
||||
# The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
# --- Builder Stage ---
|
||||
# Uses the official Go Docker image to for the build.
|
||||
|
||||
ARG GO_VERSION
|
||||
FROM golang:${GO_VERSION} AS build
|
||||
WORKDIR /go/src/app
|
||||
|
||||
# Create appuser to isolate potential vulnerabilities
|
||||
# See https://stackoverflow.com/a/55757473/12429735
|
||||
ENV USER=appuser
|
||||
ENV UID=10001
|
||||
RUN adduser \
|
||||
--disabled-password \
|
||||
--gecos "" \
|
||||
--home "/nonexistent" \
|
||||
--shell "/sbin/nologin" \
|
||||
--no-create-home \
|
||||
--uid "${UID}" \
|
||||
"${USER}"
|
||||
|
||||
# Create a new tmp directory so no bad actors can manipulate it
|
||||
RUN mkdir /temporary-tmp-directory && chmod 777 /temporary-tmp-directory
|
||||
|
||||
###############################################################################
|
||||
# Final stage
|
||||
# --- Final Stage ---
|
||||
FROM scratch
|
||||
|
||||
# Run all commands as non-root
|
||||
USER appuser:appuser
|
||||
|
||||
# Allow container to use latest TLS certificates
|
||||
COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
||||
|
||||
# Copy over appuser to run as non-root
|
||||
COPY --from=build /etc/passwd /etc/passwd
|
||||
COPY --from=build /etc/group /etc/group
|
||||
|
||||
# Copy over the /tmp directory for golang/os.TmpDir
|
||||
COPY --chown=appuser --from=build /temporary-tmp-directory /tmp
|
||||
|
||||
# Expose application port
|
||||
EXPOSE 8989
|
||||
|
||||
# Copy application from external build
|
||||
COPY vcsim /vcsim
|
||||
|
||||
# Set entrypoint to application with container defaults
|
||||
ENTRYPOINT [ "/vcsim" ]
|
||||
|
||||
CMD ["-l", "0.0.0.0:8989"]
|
||||
|
|
|
|||
10
vendor/github.com/vmware/govmomi/Makefile
generated
vendored
10
vendor/github.com/vmware/govmomi/Makefile
generated
vendored
|
|
@ -1,4 +1,5 @@
|
|||
# Copyright (c) 2021 VMware, Inc. All Rights Reserved.
|
||||
# © Broadcom. All Rights Reserved.
|
||||
# The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
# If you update this file, please follow
|
||||
|
|
@ -151,6 +152,11 @@ go-test: ## Runs go unit tests with race detector enabled
|
|||
-v $(TEST_OPTS) \
|
||||
./...
|
||||
|
||||
.PHONY: go-fips140-test
|
||||
go-fips140-test: ## Test simulator can be used with fips140=only
|
||||
GODEBUG=fips140=only $(GO) test ./property
|
||||
|
||||
go-test: ## Runs go unit tests with race detector enabled
|
||||
.PHONY: govc-test
|
||||
govc-test: install
|
||||
govc-test: ## Runs govc bats tests
|
||||
|
|
@ -158,4 +164,4 @@ govc-test: ## Runs govc bats tests
|
|||
(cd govc/test && ./vendor/github.com/bats-core/bats-core/bin/bats -t .)
|
||||
|
||||
.PHONY: test
|
||||
test: go-test govc-test ## Runs go-test and govc-test
|
||||
test: go-test go-fips140-test govc-test ## Runs go-test and govc-test
|
||||
|
|
|
|||
18
vendor/github.com/vmware/govmomi/cli/command.go
generated
vendored
18
vendor/github.com/vmware/govmomi/cli/command.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2014-2016 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package cli
|
||||
|
||||
|
|
|
|||
18
vendor/github.com/vmware/govmomi/cli/datastore/cp.go
generated
vendored
18
vendor/github.com/vmware/govmomi/cli/datastore/cp.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2014-2018 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package datastore
|
||||
|
||||
|
|
|
|||
18
vendor/github.com/vmware/govmomi/cli/datastore/create.go
generated
vendored
18
vendor/github.com/vmware/govmomi/cli/datastore/create.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2015-2016 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package datastore
|
||||
|
||||
|
|
|
|||
18
vendor/github.com/vmware/govmomi/cli/datastore/info.go
generated
vendored
18
vendor/github.com/vmware/govmomi/cli/datastore/info.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2015-2024 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package datastore
|
||||
|
||||
|
|
|
|||
18
vendor/github.com/vmware/govmomi/cli/datastore/ls.go
generated
vendored
18
vendor/github.com/vmware/govmomi/cli/datastore/ls.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2014-2024 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package datastore
|
||||
|
||||
|
|
|
|||
18
vendor/github.com/vmware/govmomi/cli/datastore/mkdir.go
generated
vendored
18
vendor/github.com/vmware/govmomi/cli/datastore/mkdir.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2014-2024 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package datastore
|
||||
|
||||
|
|
|
|||
18
vendor/github.com/vmware/govmomi/cli/datastore/mv.go
generated
vendored
18
vendor/github.com/vmware/govmomi/cli/datastore/mv.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2014-2018 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package datastore
|
||||
|
||||
|
|
|
|||
18
vendor/github.com/vmware/govmomi/cli/datastore/remove.go
generated
vendored
18
vendor/github.com/vmware/govmomi/cli/datastore/remove.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2015 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package datastore
|
||||
|
||||
|
|
|
|||
18
vendor/github.com/vmware/govmomi/cli/datastore/rm.go
generated
vendored
18
vendor/github.com/vmware/govmomi/cli/datastore/rm.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2014-2015 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package datastore
|
||||
|
||||
|
|
|
|||
18
vendor/github.com/vmware/govmomi/cli/datastore/tail.go
generated
vendored
18
vendor/github.com/vmware/govmomi/cli/datastore/tail.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2016 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package datastore
|
||||
|
||||
|
|
|
|||
18
vendor/github.com/vmware/govmomi/cli/datastore/upload.go
generated
vendored
18
vendor/github.com/vmware/govmomi/cli/datastore/upload.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2014-2015 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package datastore
|
||||
|
||||
|
|
|
|||
18
vendor/github.com/vmware/govmomi/cli/esx/command.go
generated
vendored
18
vendor/github.com/vmware/govmomi/cli/esx/command.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2014-2024 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package esx
|
||||
|
||||
|
|
|
|||
20
vendor/github.com/vmware/govmomi/cli/esx/executor.go
generated
vendored
20
vendor/github.com/vmware/govmomi/cli/esx/executor.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2014-2024 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package esx
|
||||
|
||||
|
|
@ -162,7 +150,7 @@ func (e *Executor) NewRequest(ctx context.Context, args []string) (*internal.Exe
|
|||
return &sreq, info, nil
|
||||
}
|
||||
|
||||
func (e *Executor) Execute(ctx context.Context, req *internal.ExecuteSoapRequest, res interface{}) error {
|
||||
func (e *Executor) Execute(ctx context.Context, req *internal.ExecuteSoapRequest, res any) error {
|
||||
req.This = e.mme.ManagedObjectReference
|
||||
req.Version = "urn:vim25/5.0"
|
||||
|
||||
|
|
|
|||
18
vendor/github.com/vmware/govmomi/cli/esx/firewall_info.go
generated
vendored
18
vendor/github.com/vmware/govmomi/cli/esx/firewall_info.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2015-2024 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package esx
|
||||
|
||||
|
|
|
|||
18
vendor/github.com/vmware/govmomi/cli/esx/guest_info.go
generated
vendored
18
vendor/github.com/vmware/govmomi/cli/esx/guest_info.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2014-2024 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package esx
|
||||
|
||||
|
|
|
|||
18
vendor/github.com/vmware/govmomi/cli/esx/response.go
generated
vendored
18
vendor/github.com/vmware/govmomi/cli/esx/response.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2014-2024 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package esx
|
||||
|
||||
|
|
|
|||
18
vendor/github.com/vmware/govmomi/cli/flags/client.go
generated
vendored
18
vendor/github.com/vmware/govmomi/cli/flags/client.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2014-2023 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package flags
|
||||
|
||||
|
|
|
|||
18
vendor/github.com/vmware/govmomi/cli/flags/cluster.go
generated
vendored
18
vendor/github.com/vmware/govmomi/cli/flags/cluster.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2017 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package flags
|
||||
|
||||
|
|
|
|||
17
vendor/github.com/vmware/govmomi/cli/flags/common.go
generated
vendored
17
vendor/github.com/vmware/govmomi/cli/flags/common.go
generated
vendored
|
|
@ -1,18 +1,7 @@
|
|||
/*
|
||||
Copyright (c) 2015-2023 VMware, Inc. All Rights Reserved.
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
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 flags
|
||||
|
||||
import "sync"
|
||||
|
|
|
|||
18
vendor/github.com/vmware/govmomi/cli/flags/datacenter.go
generated
vendored
18
vendor/github.com/vmware/govmomi/cli/flags/datacenter.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2014-2024 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package flags
|
||||
|
||||
|
|
|
|||
18
vendor/github.com/vmware/govmomi/cli/flags/datastore.go
generated
vendored
18
vendor/github.com/vmware/govmomi/cli/flags/datastore.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2014-2024 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package flags
|
||||
|
||||
|
|
|
|||
22
vendor/github.com/vmware/govmomi/cli/flags/debug.go
generated
vendored
22
vendor/github.com/vmware/govmomi/cli/flags/debug.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2014-2024 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package flags
|
||||
|
||||
|
|
@ -372,7 +360,7 @@ func (v *verbose) objectContent(content []types.ObjectContent) []string {
|
|||
return s
|
||||
}
|
||||
|
||||
func (v *verbose) prettyPrint(val interface{}) string {
|
||||
func (v *verbose) prettyPrint(val any) string {
|
||||
p := pretty.Sprintf("%# v\n", val)
|
||||
var res []string
|
||||
scanner := bufio.NewScanner(strings.NewReader(p))
|
||||
|
|
@ -447,7 +435,7 @@ func (v *verbose) RoundTrip(ctx context.Context, req, res soap.HasFault) error {
|
|||
|
||||
vres := reflect.ValueOf(res).Elem().FieldByName("Res").Elem()
|
||||
ret := vres.FieldByName("Returnval")
|
||||
var s interface{} = "void"
|
||||
var s any = "void"
|
||||
|
||||
if ret.IsValid() {
|
||||
switch x := ret.Interface().(type) {
|
||||
|
|
|
|||
18
vendor/github.com/vmware/govmomi/cli/flags/empty.go
generated
vendored
18
vendor/github.com/vmware/govmomi/cli/flags/empty.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2014-2016 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package flags
|
||||
|
||||
|
|
|
|||
18
vendor/github.com/vmware/govmomi/cli/flags/env.go
generated
vendored
18
vendor/github.com/vmware/govmomi/cli/flags/env.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2023-2023 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package flags
|
||||
|
||||
|
|
|
|||
18
vendor/github.com/vmware/govmomi/cli/flags/folder.go
generated
vendored
18
vendor/github.com/vmware/govmomi/cli/flags/folder.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2014-2016 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package flags
|
||||
|
||||
|
|
|
|||
18
vendor/github.com/vmware/govmomi/cli/flags/host_connect.go
generated
vendored
18
vendor/github.com/vmware/govmomi/cli/flags/host_connect.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2015-2024 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package flags
|
||||
|
||||
|
|
|
|||
18
vendor/github.com/vmware/govmomi/cli/flags/host_system.go
generated
vendored
18
vendor/github.com/vmware/govmomi/cli/flags/host_system.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2014-2015 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package flags
|
||||
|
||||
|
|
|
|||
22
vendor/github.com/vmware/govmomi/cli/flags/int32.go
generated
vendored
22
vendor/github.com/vmware/govmomi/cli/flags/int32.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2016-2017 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package flags
|
||||
|
||||
|
|
@ -32,7 +20,7 @@ func (i *int32Value) Set(s string) error {
|
|||
return err
|
||||
}
|
||||
|
||||
func (i *int32Value) Get() interface{} {
|
||||
func (i *int32Value) Get() any {
|
||||
return int32(*i)
|
||||
}
|
||||
|
||||
|
|
@ -56,7 +44,7 @@ func (i *int32ptrValue) Set(s string) error {
|
|||
return err
|
||||
}
|
||||
|
||||
func (i *int32ptrValue) Get() interface{} {
|
||||
func (i *int32ptrValue) Get() any {
|
||||
if i.val == nil || *i.val == nil {
|
||||
return nil
|
||||
}
|
||||
|
|
|
|||
22
vendor/github.com/vmware/govmomi/cli/flags/int64.go
generated
vendored
22
vendor/github.com/vmware/govmomi/cli/flags/int64.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2017 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package flags
|
||||
|
||||
|
|
@ -32,7 +20,7 @@ func (i *int64Value) Set(s string) error {
|
|||
return err
|
||||
}
|
||||
|
||||
func (i *int64Value) Get() interface{} {
|
||||
func (i *int64Value) Get() any {
|
||||
return int64(*i)
|
||||
}
|
||||
|
||||
|
|
@ -56,7 +44,7 @@ func (i *int64ptrValue) Set(s string) error {
|
|||
return err
|
||||
}
|
||||
|
||||
func (i *int64ptrValue) Get() interface{} {
|
||||
func (i *int64ptrValue) Get() any {
|
||||
if i.val == nil || *i.val == nil {
|
||||
return nil
|
||||
}
|
||||
|
|
|
|||
18
vendor/github.com/vmware/govmomi/cli/flags/library.go
generated
vendored
18
vendor/github.com/vmware/govmomi/cli/flags/library.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2020-2022 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package flags
|
||||
|
||||
|
|
|
|||
18
vendor/github.com/vmware/govmomi/cli/flags/list.go
generated
vendored
18
vendor/github.com/vmware/govmomi/cli/flags/list.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2019 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package flags
|
||||
|
||||
|
|
|
|||
18
vendor/github.com/vmware/govmomi/cli/flags/network.go
generated
vendored
18
vendor/github.com/vmware/govmomi/cli/flags/network.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2014-2016 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package flags
|
||||
|
||||
|
|
|
|||
20
vendor/github.com/vmware/govmomi/cli/flags/optional_bool.go
generated
vendored
20
vendor/github.com/vmware/govmomi/cli/flags/optional_bool.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2015 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package flags
|
||||
|
||||
|
|
@ -32,7 +20,7 @@ func (b *optionalBool) Set(s string) error {
|
|||
return err
|
||||
}
|
||||
|
||||
func (b *optionalBool) Get() interface{} {
|
||||
func (b *optionalBool) Get() any {
|
||||
if *b.val == nil {
|
||||
return nil
|
||||
}
|
||||
|
|
|
|||
20
vendor/github.com/vmware/govmomi/cli/flags/optional_string.go
generated
vendored
20
vendor/github.com/vmware/govmomi/cli/flags/optional_string.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2023-2023 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package flags
|
||||
|
||||
|
|
@ -29,7 +17,7 @@ func (s *optionalString) Set(input string) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
func (s *optionalString) Get() interface{} {
|
||||
func (s *optionalString) Get() any {
|
||||
if *s.val == nil {
|
||||
return nil
|
||||
}
|
||||
|
|
|
|||
26
vendor/github.com/vmware/govmomi/cli/flags/output.go
generated
vendored
26
vendor/github.com/vmware/govmomi/cli/flags/output.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2014-2024 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package flags
|
||||
|
||||
|
|
@ -129,9 +117,9 @@ func (flag *OutputFlag) All() bool {
|
|||
return flag.JSON || flag.XML || flag.Dump
|
||||
}
|
||||
|
||||
func dumpValue(val interface{}) interface{} {
|
||||
func dumpValue(val any) any {
|
||||
type dumper interface {
|
||||
Dump() interface{}
|
||||
Dump() any
|
||||
}
|
||||
|
||||
if d, ok := val.(dumper); ok {
|
||||
|
|
@ -171,7 +159,7 @@ func (*outputAny) Write(io.Writer) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
func (a *outputAny) Dump() interface{} {
|
||||
func (a *outputAny) Dump() any {
|
||||
return a.Value
|
||||
}
|
||||
|
||||
|
|
@ -263,7 +251,7 @@ func (e errorOutput) Write(w io.Writer) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
func (e errorOutput) Dump() interface{} {
|
||||
func (e errorOutput) Dump() any {
|
||||
if f, ok := e.error.(task.Error); ok {
|
||||
return f.LocalizedMethodFault
|
||||
}
|
||||
|
|
|
|||
18
vendor/github.com/vmware/govmomi/cli/flags/resource_allocation_info.go
generated
vendored
18
vendor/github.com/vmware/govmomi/cli/flags/resource_allocation_info.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2017 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package flags
|
||||
|
||||
|
|
|
|||
18
vendor/github.com/vmware/govmomi/cli/flags/resource_pool.go
generated
vendored
18
vendor/github.com/vmware/govmomi/cli/flags/resource_pool.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2014-2016 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package flags
|
||||
|
||||
|
|
|
|||
18
vendor/github.com/vmware/govmomi/cli/flags/search.go
generated
vendored
18
vendor/github.com/vmware/govmomi/cli/flags/search.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2014-2024 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package flags
|
||||
|
||||
|
|
|
|||
18
vendor/github.com/vmware/govmomi/cli/flags/storage_pod.go
generated
vendored
18
vendor/github.com/vmware/govmomi/cli/flags/storage_pod.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2014-2022 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package flags
|
||||
|
||||
|
|
|
|||
18
vendor/github.com/vmware/govmomi/cli/flags/storage_profile.go
generated
vendored
18
vendor/github.com/vmware/govmomi/cli/flags/storage_profile.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2024-2024 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package flags
|
||||
|
||||
|
|
|
|||
18
vendor/github.com/vmware/govmomi/cli/flags/version.go
generated
vendored
18
vendor/github.com/vmware/govmomi/cli/flags/version.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2014-2020 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package flags
|
||||
|
||||
|
|
|
|||
18
vendor/github.com/vmware/govmomi/cli/flags/virtual_app.go
generated
vendored
18
vendor/github.com/vmware/govmomi/cli/flags/virtual_app.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2015 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package flags
|
||||
|
||||
|
|
|
|||
18
vendor/github.com/vmware/govmomi/cli/flags/virtual_machine.go
generated
vendored
18
vendor/github.com/vmware/govmomi/cli/flags/virtual_machine.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2014-2015 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package flags
|
||||
|
||||
|
|
|
|||
18
vendor/github.com/vmware/govmomi/cli/importx/options.go
generated
vendored
18
vendor/github.com/vmware/govmomi/cli/importx/options.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2015-2024 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package importx
|
||||
|
||||
|
|
|
|||
34
vendor/github.com/vmware/govmomi/cli/importx/ova.go
generated
vendored
34
vendor/github.com/vmware/govmomi/cli/importx/ova.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2014-2024 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package importx
|
||||
|
||||
|
|
@ -21,9 +9,7 @@ import (
|
|||
"flag"
|
||||
|
||||
"github.com/vmware/govmomi/cli"
|
||||
"github.com/vmware/govmomi/object"
|
||||
"github.com/vmware/govmomi/ovf/importer"
|
||||
"github.com/vmware/govmomi/vim25/types"
|
||||
)
|
||||
|
||||
type ova struct {
|
||||
|
|
@ -48,17 +34,7 @@ func (cmd *ova) Run(ctx context.Context, f *flag.FlagSet) error {
|
|||
archive.Client = cmd.Importer.Client
|
||||
|
||||
cmd.Importer.Archive = archive
|
||||
fpath = "*.ovf"
|
||||
|
||||
moref, err := cmd.Import(fpath)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
vm := object.NewVirtualMachine(cmd.Importer.Client, *moref)
|
||||
return cmd.Deploy(vm, cmd.OutputFlag)
|
||||
}
|
||||
|
||||
func (cmd *ova) Import(fpath string) (*types.ManagedObjectReference, error) {
|
||||
ovf := "*.ovf"
|
||||
return cmd.Importer.Import(context.TODO(), ovf, cmd.Options)
|
||||
return cmd.Import(ctx, fpath)
|
||||
}
|
||||
|
|
|
|||
129
vendor/github.com/vmware/govmomi/cli/importx/ovf.go
generated
vendored
129
vendor/github.com/vmware/govmomi/cli/importx/ovf.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2014-2024 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package importx
|
||||
|
||||
|
|
@ -20,11 +8,17 @@ import (
|
|||
"context"
|
||||
"errors"
|
||||
"flag"
|
||||
"fmt"
|
||||
|
||||
"github.com/vmware/govmomi/cli"
|
||||
"github.com/vmware/govmomi/cli/flags"
|
||||
"github.com/vmware/govmomi/fault"
|
||||
"github.com/vmware/govmomi/find"
|
||||
"github.com/vmware/govmomi/object"
|
||||
"github.com/vmware/govmomi/ovf/importer"
|
||||
"github.com/vmware/govmomi/property"
|
||||
"github.com/vmware/govmomi/vim25/mo"
|
||||
"github.com/vmware/govmomi/vim25/types"
|
||||
)
|
||||
|
||||
type ovfx struct {
|
||||
|
|
@ -37,6 +31,9 @@ type ovfx struct {
|
|||
*OptionsFlag
|
||||
|
||||
Importer importer.Importer
|
||||
|
||||
lease bool
|
||||
net string // No need for *flags.NetworkFlag here
|
||||
}
|
||||
|
||||
func init() {
|
||||
|
|
@ -61,6 +58,8 @@ func (cmd *ovfx) Register(ctx context.Context, f *flag.FlagSet) {
|
|||
f.StringVar(&cmd.Importer.Name, "name", "", "Name to use for new entity")
|
||||
f.BoolVar(&cmd.Importer.VerifyManifest, "m", false, "Verify checksum of uploaded files against manifest (.mf)")
|
||||
f.BoolVar(&cmd.Importer.Hidden, "hidden", false, "Enable hidden properties")
|
||||
f.BoolVar(&cmd.lease, "lease", false, "Output NFC Lease only")
|
||||
f.StringVar(&cmd.net, "net", "", "Network")
|
||||
}
|
||||
|
||||
func (cmd *ovfx) Process(ctx context.Context) error {
|
||||
|
|
@ -100,7 +99,47 @@ func (cmd *ovfx) Run(ctx context.Context, f *flag.FlagSet) error {
|
|||
|
||||
cmd.Importer.Archive = archive
|
||||
|
||||
moref, err := cmd.Importer.Import(context.TODO(), fpath, cmd.Options)
|
||||
if err = cmd.Import(ctx, fpath); err != nil {
|
||||
if fault.Is(err, &types.OvfNoHostNic{}) {
|
||||
hint := "specify Network with '-net' or '-options'"
|
||||
return fmt.Errorf("%s (%s)", err.Error(), hint)
|
||||
}
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (cmd *ovfx) Import(ctx context.Context, fpath string) error {
|
||||
if cmd.net != "" {
|
||||
if len(cmd.Options.NetworkMapping) == 0 {
|
||||
env, err := importer.Spec(fpath, cmd.Importer.Archive, false, false)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
cmd.Options.NetworkMapping = env.NetworkMapping
|
||||
}
|
||||
|
||||
for i := range cmd.Options.NetworkMapping {
|
||||
cmd.Options.NetworkMapping[i].Network = cmd.net
|
||||
}
|
||||
}
|
||||
|
||||
if cmd.lease {
|
||||
_, lease, err := cmd.Importer.ImportVApp(ctx, fpath, cmd.Options)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
o, err := lease.Properties(ctx)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return cmd.WriteResult(o)
|
||||
}
|
||||
|
||||
moref, err := cmd.Importer.Import(ctx, fpath, cmd.Options)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
@ -128,7 +167,7 @@ func (cmd *ovfx) Prepare(f *flag.FlagSet) (string, error) {
|
|||
return "", err
|
||||
}
|
||||
|
||||
cmd.Importer.Datastore, err = cmd.DatastoreFlag.Datastore()
|
||||
cmd.Importer.Datastore, err = cmd.datastore()
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
|
@ -184,3 +223,59 @@ func (cmd *ovfx) Prepare(f *flag.FlagSet) (string, error) {
|
|||
|
||||
return f.Arg(0), nil
|
||||
}
|
||||
|
||||
func (f *ovfx) datastore() (*object.Datastore, error) {
|
||||
ctx := context.Background()
|
||||
|
||||
ds, err := f.Datastore()
|
||||
if err == nil {
|
||||
return ds, nil
|
||||
}
|
||||
if _, ok := err.(*find.NotFoundError); !ok {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
finder, err := f.DatastoreFlag.Finder()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
pod, err := finder.DatastoreCluster(ctx, f.Name)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
var folder mo.Folder
|
||||
|
||||
err = pod.Properties(ctx, pod.Reference(), []string{"childEntity"}, &folder)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if len(folder.ChildEntity) == 0 {
|
||||
return nil, fmt.Errorf("datastore cluster %q has no datastores", f.Name)
|
||||
}
|
||||
|
||||
pc := property.DefaultCollector(pod.Client())
|
||||
|
||||
var stores []mo.Datastore
|
||||
|
||||
err = pc.Retrieve(ctx, folder.ChildEntity, []string{"info.freeSpace"}, &stores)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
// choose Datastore from DatastoreCluster (StoragePod) with the most free space
|
||||
var ref types.ManagedObjectReference
|
||||
var max int64
|
||||
|
||||
for _, ds := range stores {
|
||||
space := ds.Info.GetDatastoreInfo().FreeSpace
|
||||
if space > max {
|
||||
max = space
|
||||
ref = ds.Reference()
|
||||
}
|
||||
}
|
||||
|
||||
return object.NewDatastore(pod.Client(), ref), nil
|
||||
}
|
||||
|
|
|
|||
18
vendor/github.com/vmware/govmomi/cli/importx/spec.go
generated
vendored
18
vendor/github.com/vmware/govmomi/cli/importx/spec.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2015-2024 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package importx
|
||||
|
||||
|
|
|
|||
54
vendor/github.com/vmware/govmomi/cli/importx/vmdk.go
generated
vendored
54
vendor/github.com/vmware/govmomi/cli/importx/vmdk.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2014-2017 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package importx
|
||||
|
||||
|
|
@ -35,6 +23,7 @@ type disk struct {
|
|||
*flags.OutputFlag
|
||||
|
||||
force bool
|
||||
info bool
|
||||
}
|
||||
|
||||
func init() {
|
||||
|
|
@ -52,6 +41,7 @@ func (cmd *disk) Register(ctx context.Context, f *flag.FlagSet) {
|
|||
cmd.OutputFlag.Register(ctx, f)
|
||||
|
||||
f.BoolVar(&cmd.force, "force", false, "Overwrite existing disk")
|
||||
f.BoolVar(&cmd.info, "i", false, "Output vmdk info only")
|
||||
}
|
||||
|
||||
func (cmd *disk) Process(ctx context.Context) error {
|
||||
|
|
@ -74,6 +64,17 @@ func (cmd *disk) Usage() string {
|
|||
return "PATH_TO_VMDK [REMOTE_DIRECTORY]"
|
||||
}
|
||||
|
||||
func (cmd *disk) Description() string {
|
||||
return `Import vmdk to datastore.
|
||||
|
||||
The local vmdk must be in streamOptimized format.
|
||||
|
||||
Examples:
|
||||
govc import.vmdk my.vmdk
|
||||
govc import.vmdk -i my.vmdk # output vmdk info only
|
||||
govc import.vmdk -json -i my.vmdk | jq .capacity | xargs numfmt --to=iec --suffix=B --format="%.1f"`
|
||||
}
|
||||
|
||||
func (cmd *disk) Run(ctx context.Context, f *flag.FlagSet) error {
|
||||
args := f.Args()
|
||||
if len(args) < 1 {
|
||||
|
|
@ -82,6 +83,17 @@ func (cmd *disk) Run(ctx context.Context, f *flag.FlagSet) error {
|
|||
|
||||
src := f.Arg(0)
|
||||
|
||||
if cmd.info {
|
||||
info, err := vmdk.Stat(src)
|
||||
if err != nil {
|
||||
if err == vmdk.ErrInvalidFormat {
|
||||
return formatError(src, err)
|
||||
}
|
||||
return err
|
||||
}
|
||||
return cmd.WriteResult(info)
|
||||
}
|
||||
|
||||
c, err := cmd.DatastoreFlag.Client()
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
@ -122,11 +134,15 @@ func (cmd *disk) Run(ctx context.Context, f *flag.FlagSet) error {
|
|||
|
||||
err = vmdk.Import(ctx, c, src, ds, p)
|
||||
if err != nil && err == vmdk.ErrInvalidFormat {
|
||||
return fmt.Errorf(`%s
|
||||
The vmdk can be converted using one of:
|
||||
vmware-vdiskmanager -t 5 -r '%s' new.vmdk
|
||||
qemu-img convert -O vmdk -o subformat=streamOptimized '%s' new.vmdk`, err, src, src)
|
||||
return formatError(src, err)
|
||||
}
|
||||
|
||||
return err
|
||||
}
|
||||
|
||||
func formatError(src string, err error) error {
|
||||
return fmt.Errorf(`%s
|
||||
The vmdk can be converted using one of:
|
||||
vmware-vdiskmanager -t 5 -r '%s' new.vmdk
|
||||
qemu-img convert -O vmdk -o subformat=streamOptimized '%s' new.vmdk`, err, src, src)
|
||||
}
|
||||
|
|
|
|||
18
vendor/github.com/vmware/govmomi/cli/register.go
generated
vendored
18
vendor/github.com/vmware/govmomi/cli/register.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2014-2015 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package cli
|
||||
|
||||
|
|
|
|||
18
vendor/github.com/vmware/govmomi/cli/vm/change.go
generated
vendored
18
vendor/github.com/vmware/govmomi/cli/vm/change.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2015-2024 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package vm
|
||||
|
||||
|
|
|
|||
18
vendor/github.com/vmware/govmomi/cli/vm/clone.go
generated
vendored
18
vendor/github.com/vmware/govmomi/cli/vm/clone.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2016-2024 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package vm
|
||||
|
||||
|
|
|
|||
18
vendor/github.com/vmware/govmomi/cli/vm/console.go
generated
vendored
18
vendor/github.com/vmware/govmomi/cli/vm/console.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2017 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package vm
|
||||
|
||||
|
|
|
|||
22
vendor/github.com/vmware/govmomi/cli/vm/create.go
generated
vendored
22
vendor/github.com/vmware/govmomi/cli/vm/create.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2014-2024 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package vm
|
||||
|
||||
|
|
@ -207,7 +195,7 @@ func (cmd *create) Description() string {
|
|||
return `Create VM.
|
||||
|
||||
For a list of possible '-g' IDs, use 'govc vm.option.info' or see:
|
||||
https://code.vmware.com/apis/358/vsphere/doc/vim.vm.GuestOsDescriptor.GuestOsIdentifier.html
|
||||
https://developer.broadcom.com/xapis/vsphere-web-services-api/latest/vim.vm.GuestOsDescriptor.GuestOsIdentifier.html
|
||||
|
||||
Examples:
|
||||
govc vm.create -on=false vm-name
|
||||
|
|
@ -349,7 +337,7 @@ type place struct {
|
|||
cmd *create
|
||||
}
|
||||
|
||||
func (p *place) Dump() interface{} {
|
||||
func (p *place) Dump() any {
|
||||
return p.Recommendations
|
||||
}
|
||||
|
||||
|
|
|
|||
18
vendor/github.com/vmware/govmomi/cli/vm/customize.go
generated
vendored
18
vendor/github.com/vmware/govmomi/cli/vm/customize.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2019 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package vm
|
||||
|
||||
|
|
|
|||
18
vendor/github.com/vmware/govmomi/cli/vm/destroy.go
generated
vendored
18
vendor/github.com/vmware/govmomi/cli/vm/destroy.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2014-2015 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package vm
|
||||
|
||||
|
|
|
|||
18
vendor/github.com/vmware/govmomi/cli/vm/guest/auth.go
generated
vendored
18
vendor/github.com/vmware/govmomi/cli/vm/guest/auth.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2014-2016 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package guest
|
||||
|
||||
|
|
|
|||
18
vendor/github.com/vmware/govmomi/cli/vm/guest/chmod.go
generated
vendored
18
vendor/github.com/vmware/govmomi/cli/vm/guest/chmod.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2014-2017 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package guest
|
||||
|
||||
|
|
|
|||
28
vendor/github.com/vmware/govmomi/cli/vm/guest/chown.go
generated
vendored
28
vendor/github.com/vmware/govmomi/cli/vm/guest/chown.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2017 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package guest
|
||||
|
||||
|
|
@ -74,22 +62,24 @@ func (cmd *chown) Run(ctx context.Context, f *flag.FlagSet) error {
|
|||
return flag.ErrHelp
|
||||
}
|
||||
|
||||
id, err := strconv.Atoi(ids[0])
|
||||
ownerIDStr := ids[0]
|
||||
ownerID, err := strconv.Atoi(ownerIDStr)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
attr.OwnerId = new(int32)
|
||||
*attr.OwnerId = int32(id)
|
||||
*attr.OwnerId = int32(ownerID)
|
||||
|
||||
if len(ids) == 2 {
|
||||
id, err = strconv.Atoi(ids[1])
|
||||
groupIDStr := ids[1]
|
||||
groupID, err := strconv.Atoi(groupIDStr)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
attr.GroupId = new(int32)
|
||||
*attr.GroupId = int32(id)
|
||||
*attr.GroupId = int32(groupID)
|
||||
}
|
||||
|
||||
return m.ChangeFileAttributes(ctx, cmd.Auth(), f.Arg(1), &attr)
|
||||
|
|
|
|||
18
vendor/github.com/vmware/govmomi/cli/vm/guest/df.go
generated
vendored
18
vendor/github.com/vmware/govmomi/cli/vm/guest/df.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2019 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package guest
|
||||
|
||||
|
|
|
|||
18
vendor/github.com/vmware/govmomi/cli/vm/guest/download.go
generated
vendored
18
vendor/github.com/vmware/govmomi/cli/vm/guest/download.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2014-2016 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package guest
|
||||
|
||||
|
|
|
|||
18
vendor/github.com/vmware/govmomi/cli/vm/guest/file_attr.go
generated
vendored
18
vendor/github.com/vmware/govmomi/cli/vm/guest/file_attr.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2014-2016 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package guest
|
||||
|
||||
|
|
|
|||
18
vendor/github.com/vmware/govmomi/cli/vm/guest/getenv.go
generated
vendored
18
vendor/github.com/vmware/govmomi/cli/vm/guest/getenv.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2014-2017 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package guest
|
||||
|
||||
|
|
|
|||
18
vendor/github.com/vmware/govmomi/cli/vm/guest/guest.go
generated
vendored
18
vendor/github.com/vmware/govmomi/cli/vm/guest/guest.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2014-2016 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package guest
|
||||
|
||||
|
|
|
|||
18
vendor/github.com/vmware/govmomi/cli/vm/guest/kill.go
generated
vendored
18
vendor/github.com/vmware/govmomi/cli/vm/guest/kill.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2014-2017 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package guest
|
||||
|
||||
|
|
|
|||
18
vendor/github.com/vmware/govmomi/cli/vm/guest/ls.go
generated
vendored
18
vendor/github.com/vmware/govmomi/cli/vm/guest/ls.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2014-2017 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package guest
|
||||
|
||||
|
|
|
|||
18
vendor/github.com/vmware/govmomi/cli/vm/guest/mkdir.go
generated
vendored
18
vendor/github.com/vmware/govmomi/cli/vm/guest/mkdir.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2014-2024 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package guest
|
||||
|
||||
|
|
|
|||
18
vendor/github.com/vmware/govmomi/cli/vm/guest/mktemp.go
generated
vendored
18
vendor/github.com/vmware/govmomi/cli/vm/guest/mktemp.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2014-2017 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package guest
|
||||
|
||||
|
|
|
|||
18
vendor/github.com/vmware/govmomi/cli/vm/guest/mv.go
generated
vendored
18
vendor/github.com/vmware/govmomi/cli/vm/guest/mv.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2017-2024 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package guest
|
||||
|
||||
|
|
|
|||
18
vendor/github.com/vmware/govmomi/cli/vm/guest/ps.go
generated
vendored
18
vendor/github.com/vmware/govmomi/cli/vm/guest/ps.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2014-2023 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package guest
|
||||
|
||||
|
|
|
|||
18
vendor/github.com/vmware/govmomi/cli/vm/guest/rm.go
generated
vendored
18
vendor/github.com/vmware/govmomi/cli/vm/guest/rm.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2014-2017 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package guest
|
||||
|
||||
|
|
|
|||
18
vendor/github.com/vmware/govmomi/cli/vm/guest/rmdir.go
generated
vendored
18
vendor/github.com/vmware/govmomi/cli/vm/guest/rmdir.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2014-2017 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package guest
|
||||
|
||||
|
|
|
|||
18
vendor/github.com/vmware/govmomi/cli/vm/guest/run.go
generated
vendored
18
vendor/github.com/vmware/govmomi/cli/vm/guest/run.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2017 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package guest
|
||||
|
||||
|
|
|
|||
18
vendor/github.com/vmware/govmomi/cli/vm/guest/start.go
generated
vendored
18
vendor/github.com/vmware/govmomi/cli/vm/guest/start.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2014-2017 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package guest
|
||||
|
||||
|
|
|
|||
18
vendor/github.com/vmware/govmomi/cli/vm/guest/tools.go
generated
vendored
18
vendor/github.com/vmware/govmomi/cli/vm/guest/tools.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2017 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package guest
|
||||
|
||||
|
|
|
|||
18
vendor/github.com/vmware/govmomi/cli/vm/guest/touch.go
generated
vendored
18
vendor/github.com/vmware/govmomi/cli/vm/guest/touch.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2017-2024 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package guest
|
||||
|
||||
|
|
|
|||
18
vendor/github.com/vmware/govmomi/cli/vm/guest/upload.go
generated
vendored
18
vendor/github.com/vmware/govmomi/cli/vm/guest/upload.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2014-2016 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package guest
|
||||
|
||||
|
|
|
|||
20
vendor/github.com/vmware/govmomi/cli/vm/info.go
generated
vendored
20
vendor/github.com/vmware/govmomi/cli/vm/info.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2014-2023 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package vm
|
||||
|
||||
|
|
@ -197,7 +185,7 @@ func (r *infoResult) collectReferences(pc *property.Collector, ctx context.Conte
|
|||
// Note that we cannot use a []mo.ManagedEntity here, since mo.Network has its own 'Name' field,
|
||||
// the mo.Network.ManagedEntity.Name field will not be set.
|
||||
vrefs := map[string]*struct {
|
||||
dest interface{}
|
||||
dest any
|
||||
refs []types.ManagedObjectReference
|
||||
save func()
|
||||
}{
|
||||
|
|
|
|||
18
vendor/github.com/vmware/govmomi/cli/vm/instantclone.go
generated
vendored
18
vendor/github.com/vmware/govmomi/cli/vm/instantclone.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2014-2016 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package vm
|
||||
|
||||
|
|
|
|||
18
vendor/github.com/vmware/govmomi/cli/vm/ip.go
generated
vendored
18
vendor/github.com/vmware/govmomi/cli/vm/ip.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2014-2023 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package vm
|
||||
|
||||
|
|
|
|||
18
vendor/github.com/vmware/govmomi/cli/vm/keystrokes.go
generated
vendored
18
vendor/github.com/vmware/govmomi/cli/vm/keystrokes.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2014-2016 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package vm
|
||||
|
||||
|
|
|
|||
18
vendor/github.com/vmware/govmomi/cli/vm/markastemplate.go
generated
vendored
18
vendor/github.com/vmware/govmomi/cli/vm/markastemplate.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2014-2015 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package vm
|
||||
|
||||
|
|
|
|||
18
vendor/github.com/vmware/govmomi/cli/vm/markasvm.go
generated
vendored
18
vendor/github.com/vmware/govmomi/cli/vm/markasvm.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2014-2015 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package vm
|
||||
|
||||
|
|
|
|||
18
vendor/github.com/vmware/govmomi/cli/vm/migrate.go
generated
vendored
18
vendor/github.com/vmware/govmomi/cli/vm/migrate.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2016-2024 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package vm
|
||||
|
||||
|
|
|
|||
18
vendor/github.com/vmware/govmomi/cli/vm/power.go
generated
vendored
18
vendor/github.com/vmware/govmomi/cli/vm/power.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2014-2024 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package vm
|
||||
|
||||
|
|
|
|||
18
vendor/github.com/vmware/govmomi/cli/vm/question.go
generated
vendored
18
vendor/github.com/vmware/govmomi/cli/vm/question.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2014-2015 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package vm
|
||||
|
||||
|
|
|
|||
18
vendor/github.com/vmware/govmomi/cli/vm/register.go
generated
vendored
18
vendor/github.com/vmware/govmomi/cli/vm/register.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2016 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package vm
|
||||
|
||||
|
|
|
|||
18
vendor/github.com/vmware/govmomi/cli/vm/unregister.go
generated
vendored
18
vendor/github.com/vmware/govmomi/cli/vm/unregister.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2016 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package vm
|
||||
|
||||
|
|
|
|||
18
vendor/github.com/vmware/govmomi/cli/vm/upgrade.go
generated
vendored
18
vendor/github.com/vmware/govmomi/cli/vm/upgrade.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2017-2024 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package vm
|
||||
|
||||
|
|
|
|||
18
vendor/github.com/vmware/govmomi/cli/vm/vnc.go
generated
vendored
18
vendor/github.com/vmware/govmomi/cli/vm/vnc.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2014-2015 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package vm
|
||||
|
||||
|
|
|
|||
4
vendor/github.com/vmware/govmomi/client.go
generated
vendored
4
vendor/github.com/vmware/govmomi/client.go
generated
vendored
|
|
@ -104,12 +104,12 @@ func (c *Client) PropertyCollector() *property.Collector {
|
|||
}
|
||||
|
||||
// RetrieveOne dispatches to the Retrieve function on the default property collector.
|
||||
func (c *Client) RetrieveOne(ctx context.Context, obj types.ManagedObjectReference, p []string, dst interface{}) error {
|
||||
func (c *Client) RetrieveOne(ctx context.Context, obj types.ManagedObjectReference, p []string, dst any) error {
|
||||
return c.PropertyCollector().RetrieveOne(ctx, obj, p, dst)
|
||||
}
|
||||
|
||||
// Retrieve dispatches to the Retrieve function on the default property collector.
|
||||
func (c *Client) Retrieve(ctx context.Context, objs []types.ManagedObjectReference, p []string, dst interface{}) error {
|
||||
func (c *Client) Retrieve(ctx context.Context, objs []types.ManagedObjectReference, p []string, dst any) error {
|
||||
return c.PropertyCollector().Retrieve(ctx, objs, p, dst)
|
||||
}
|
||||
|
||||
|
|
|
|||
18
vendor/github.com/vmware/govmomi/cns/client.go
generated
vendored
18
vendor/github.com/vmware/govmomi/cns/client.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2019 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package cns
|
||||
|
||||
|
|
|
|||
33
vendor/github.com/vmware/govmomi/cns/cns_util.go
generated
vendored
33
vendor/github.com/vmware/govmomi/cns/cns_util.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2019 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package cns
|
||||
|
||||
|
|
@ -49,9 +37,6 @@ func GetQuerySnapshotsTaskResult(ctx context.Context, taskInfo *vim25types.TaskI
|
|||
}
|
||||
if taskInfo.Result != nil {
|
||||
snapshotQueryResult := taskInfo.Result.(cnstypes.CnsSnapshotQueryResult)
|
||||
if &snapshotQueryResult == nil {
|
||||
return nil, errors.New("Cannot get SnapshotQueryResult")
|
||||
}
|
||||
return &snapshotQueryResult, nil
|
||||
}
|
||||
return nil, errors.New("TaskInfo result is empty")
|
||||
|
|
@ -64,9 +49,7 @@ func GetTaskResult(ctx context.Context, taskInfo *vim25types.TaskInfo) (cnstypes
|
|||
}
|
||||
if taskInfo.Result != nil {
|
||||
volumeOperationBatchResult := taskInfo.Result.(cnstypes.CnsVolumeOperationBatchResult)
|
||||
if &volumeOperationBatchResult == nil ||
|
||||
volumeOperationBatchResult.VolumeResults == nil ||
|
||||
len(volumeOperationBatchResult.VolumeResults) == 0 {
|
||||
if len(volumeOperationBatchResult.VolumeResults) == 0 {
|
||||
return nil, errors.New("Cannot get VolumeOperationResult")
|
||||
}
|
||||
return volumeOperationBatchResult.VolumeResults[0], nil
|
||||
|
|
@ -81,9 +64,7 @@ func GetTaskResultArray(ctx context.Context, taskInfo *vim25types.TaskInfo) ([]c
|
|||
}
|
||||
if taskInfo.Result != nil {
|
||||
volumeOperationBatchResult := taskInfo.Result.(cnstypes.CnsVolumeOperationBatchResult)
|
||||
if &volumeOperationBatchResult == nil ||
|
||||
volumeOperationBatchResult.VolumeResults == nil ||
|
||||
len(volumeOperationBatchResult.VolumeResults) == 0 {
|
||||
if len(volumeOperationBatchResult.VolumeResults) == 0 {
|
||||
return nil, errors.New("Cannot get VolumeOperationResult")
|
||||
}
|
||||
return volumeOperationBatchResult.VolumeResults, nil
|
||||
|
|
@ -103,7 +84,7 @@ func dropUnknownCreateSpecElements(c *Client, createSpecList []cnstypes.CnsVolum
|
|||
createSpec.Metadata.ContainerClusterArray = nil
|
||||
var updatedEntityMetadata []cnstypes.BaseCnsEntityMetadata
|
||||
for _, entityMetadata := range createSpec.Metadata.EntityMetadata {
|
||||
k8sEntityMetadata := interface{}(entityMetadata).(*cnstypes.CnsKubernetesEntityMetadata)
|
||||
k8sEntityMetadata := any(entityMetadata).(*cnstypes.CnsKubernetesEntityMetadata)
|
||||
k8sEntityMetadata.ClusterID = ""
|
||||
k8sEntityMetadata.ReferredEntity = nil
|
||||
updatedEntityMetadata = append(updatedEntityMetadata, cnstypes.BaseCnsEntityMetadata(k8sEntityMetadata))
|
||||
|
|
@ -160,7 +141,7 @@ func dropUnknownVolumeMetadataUpdateSpecElements(c *Client, updateSpecList []cns
|
|||
updateSpec.Metadata.ContainerCluster.ClusterDistribution = ""
|
||||
var updatedEntityMetadata []cnstypes.BaseCnsEntityMetadata
|
||||
for _, entityMetadata := range updateSpec.Metadata.EntityMetadata {
|
||||
k8sEntityMetadata := interface{}(entityMetadata).(*cnstypes.CnsKubernetesEntityMetadata)
|
||||
k8sEntityMetadata := any(entityMetadata).(*cnstypes.CnsKubernetesEntityMetadata)
|
||||
k8sEntityMetadata.ClusterID = ""
|
||||
k8sEntityMetadata.ReferredEntity = nil
|
||||
updatedEntityMetadata = append(updatedEntityMetadata, cnstypes.BaseCnsEntityMetadata(k8sEntityMetadata))
|
||||
|
|
|
|||
18
vendor/github.com/vmware/govmomi/cns/methods/methods.go
generated
vendored
18
vendor/github.com/vmware/govmomi/cns/methods/methods.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2019 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package methods
|
||||
|
||||
|
|
|
|||
18
vendor/github.com/vmware/govmomi/cns/methods/unreleased.go
generated
vendored
18
vendor/github.com/vmware/govmomi/cns/methods/unreleased.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2024-2024 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package methods
|
||||
|
||||
|
|
|
|||
18
vendor/github.com/vmware/govmomi/cns/types/enum.go
generated
vendored
18
vendor/github.com/vmware/govmomi/cns/types/enum.go
generated
vendored
|
|
@ -1,18 +1,6 @@
|
|||
/*
|
||||
Copyright (c) 2019 VMware, Inc. All Rights Reserved.
|
||||
|
||||
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.
|
||||
*/
|
||||
// © Broadcom. All Rights Reserved.
|
||||
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package types
|
||||
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue