Documentation ¶
Overview ¶
Package vcsim is used to mock interactions with a vCenter server
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTestVsphereAccount ¶
func NewTestVsphereAccount(username string, port int) *vsphere.CloudAccount
NewTestVsphereAccount creates a new vsphere account for testing
Types ¶
type VCSimulator ¶
type VCSimulator struct { Driver *vsphere.CloudDriver // contains filtered or unexported fields }
VCSimulator is used to mock interactions with a vCenter server
func NewVCSim ¶
func NewVCSim(username string, port int, log logr.Logger) *VCSimulator
NewVCSim creates a new VCSimulator
func (*VCSimulator) GetTestVsphereAccount ¶
func (v *VCSimulator) GetTestVsphereAccount() *vsphere.CloudAccount
GetTestVsphereAccount returns the test vsphere account
func (*VCSimulator) Shutdown ¶
func (v *VCSimulator) Shutdown()
Shutdown shuts down the vcim mock server
Click to show internal directories.
Click to hide internal directories.