vcsim

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

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) vcenter.Account

NewTestVsphereAccount creates a new vsphere account for testing

Types

type VCSimulator

type VCSimulator struct {
	Account vcenter.Account
	Options govcOptions
	// 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) Shutdown

func (v *VCSimulator) Shutdown()

Shutdown shuts down the vcim mock server

func (*VCSimulator) Start

func (v *VCSimulator) Start()

Start starts the mock vcsim server

Jump to

Keyboard shortcuts

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