package examples
import "github.com/vmware/govmomi/examples"
Index ¶
- func NewClient(ctx context.Context) (*vim25.Client, error)
- func Run(f func(context.Context, *vim25.Client) error)
Functions ¶
func NewClient ¶
NewClient creates a vim25.Client for use in the examples
func Run ¶
Run calls f with Client create from the -url flag if provided, otherwise runs the example against vcsim.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
examples/alarms | |
examples/datastores | |
examples/events | |
examples/hosts | |
examples/networks | |
examples/perfmanager | |
examples/tasks | |
examples/virtualmachines |
- Version
- v0.48.1 (latest)
- Published
- Feb 11, 2025
- Platform
- linux/amd64
- Imports
- 11 packages
- Last checked
- 2 months ago –
Tools for package owners.