Files
inecs f8d3cbdd59 Initial commit: VMware vSphere API simulator scaffold.
Add the FastAPI app, PostgreSQL migrations, Docker/Helm packaging, API
contracts, docs, client examples, and the unit/integration/compatibility
test suite for local client and tooling labs without a real vCenter.
2026-07-18 04:42:11 +03:00

22 lines
698 B
Markdown

**Language / Язык:** [English](go.md) | [Русский](../ru/examples/go.md)
# Go
Uses the Go standard library (`net/http`) against
`https://localhost` with a Basic-auth session
(`vmware-api-session-id`).
```bash
cd examples/go
go run .
```
Override defaults with `VSPHERE_BASE`, `VSPHERE_USER`, `VSPHERE_PASSWORD`,
`VSPHERE_VM_NAME`. See [`main.go`](../../examples/go/main.go) for the
session → list → create → power → wait-task → delete flow and the
`waitTask` helper that polls `GET /api/cis/tasks/{task}`.
TLS verification is disabled in the HTTP client for the local self-signed
development gateway certificate only — do not reuse that transport against a
real vCenter.