vsphere

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2023 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Version                 = "0.0.0"
	VIM25LaunchTemplateName = "kata"
)

Variables

This section is empty.

Functions

func CheckSessionWithRestore

func CheckSessionWithRestore(ctx context.Context, vmcfg *Config, gclient *govmomi.Client) error

func CreateInstance

func CreateInstance(ctx context.Context, vim25Client *vim25.Client, vmcfg *Config, vmname string, userData string) (*createInstanceOutput, error)

func DeleteGovmomiClient

func DeleteGovmomiClient(gclient *govmomi.Client)

func DeleteInstance

func DeleteInstance(ctx context.Context, vim25Client *vim25.Client, vmcfg *Config, vmname string) (err error)

func NewGovmomiClient

func NewGovmomiClient(vmcfg Config) (*govmomi.Client, error)

func NewServer

func NewServer(cfg hypervisor.Config, vmcfg Config, workerNode podnetwork.WorkerNode, daemonPort string) hypervisor.Server

Types

type Config

type Config struct {
	VcenterURL   string
	UserName     string
	Password     string
	Insecure     bool
	Datacenter   string
	Vcluster     string
	Datastore    string
	Resourcepool string
	Deployfolder string
	Template     string // template will be hardcoded podvm-template for now
}

func (Config) Redact

func (c Config) Redact() Config

type VmConfig

type VmConfig []types.BaseOptionValue

Jump to

Keyboard shortcuts

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