vcd

package
v0.0.0-...-7489d9d Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const SSHPort = 22

Variables

This section is empty.

Functions

This section is empty.

Types

type VcdDriver

type VcdDriver struct {
	VAppHREF string
	VMHREF   string
	// contains filtered or unexported fields
}

func NewVcdDriver

func NewVcdDriver(cfg VcdDriverConfig, machineName string) (*VcdDriver, error)

func (*VcdDriver) Create

func (d *VcdDriver) Create() error

func (*VcdDriver) Destroy

func (d *VcdDriver) Destroy() error

func (*VcdDriver) GetIP

func (d *VcdDriver) GetIP() (string, error)

func (*VcdDriver) GetMachineName

func (d *VcdDriver) GetMachineName() string

func (*VcdDriver) GetOS

func (d *VcdDriver) GetOS() (drivers.OStype, error)

func (*VcdDriver) GetSSHClientFromDriver

func (d *VcdDriver) GetSSHClientFromDriver() (ssh.Client, error)

type VcdDriverConfig

type VcdDriverConfig struct {
	VcdURL           string
	VcdOrg           string
	VcdVdc           string // virtual datacenter
	VcdInsecure      bool
	VcdUser          string
	VcdPassword      string
	VcdOrgVDCNetwork string
	Catalog          string
	Template         string

	NumCpus        int
	CoresPerSocket int
	MemorySizeMb   int
	VAppHREF       string
	VMHREF         string
	Description    string
	StorageProfile string

	DefaultPassword string
}

Jump to

Keyboard shortcuts

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