vcsim

package
v1.9.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 19, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package vcsim contains tools for running a VCenter simulator.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

Builder helps in creating a vcsim simulator.

func NewBuilder

func NewBuilder() *Builder

NewBuilder returns a new a Builder.

func (*Builder) Build

func (b *Builder) Build() (*Simulator, error)

Build the vcsim instance.

func (*Builder) WithModel

func (b *Builder) WithModel(model *simulator.Model) *Builder

WithModel defines the model to be used by the Builder when creating the vcsim instance.

func (*Builder) WithOperations

func (b *Builder) WithOperations(ops ...string) *Builder

WithOperations defines the operation that the Builder should executed on the newly created vcsim instance.

type Simulator

type Simulator struct {
	// contains filtered or unexported fields
}

Simulator binds together a vcsim model and its server.

func (Simulator) Destroy

func (s Simulator) Destroy()

Destroy a Simulator.

func (Simulator) Password

func (s Simulator) Password() string

Password for the Simulator.

func (Simulator) Run

func (s Simulator) Run(commandStr string, buffers ...*gbytes.Buffer) error

Run a govc command on the Simulator.

func (Simulator) ServerURL

func (s Simulator) ServerURL() *url.URL

ServerURL returns Simulator's server url.

func (Simulator) Username

func (s Simulator) Username() string

Username for the Simulator.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL