types

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 28, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Snapshot

type Snapshot struct {
	Name        string    `json:"name"`
	Description string    `json:"description"`
	ID          int32     `json:"id"`
	CreatedAt   time.Time `json:"created_at"`
}

Snapshot stores info about VM snapshot

type SnapshotCreateParams

type SnapshotCreateParams struct {
	UUID        string `json:"vm_uuid"`
	Datacenter  string `json:"datacenter"`
	Name        string `json:"name"`
	Description string `json:"description"`
	Memory      bool   `json:"memory"`
	Quiesce     bool   `json:"quiesce"`
}

SnapshotCreateParams stores user request params

func (*SnapshotCreateParams) FillEmptyFields

func (p *SnapshotCreateParams) FillEmptyFields(cfg *config.Config)

FillEmptyFields stores default parameters to the struct if some fields was empty

type VMDeployParams

type VMDeployParams struct {
	Name       string
	OVAURL     string
	Datastores []string
	Networks   map[string]string
	Datacenter string
	Cluster    string
	Folder     string
}

VMDeployParams stores user request params

func (*VMDeployParams) FillEmptyFields

func (p *VMDeployParams) FillEmptyFields(cfg *config.Config)

FillEmptyFields stores default parameters to the struct if some fields was empty

type VMFindParams

type VMFindParams struct {
	Path       string
	Datacenter string
}

VMFindParams stores user request parameters

func (*VMFindParams) FillEmptyFields

func (p *VMFindParams) FillEmptyFields(cfg *config.Config)

FillEmptyFields stores default parameters to the struct if some fields was empty

type VMInfoParams

type VMInfoParams struct {
	UUID       string
	Datacenter string
}

VMInfoParams stores user request parameters

func (*VMInfoParams) FillEmptyFields

func (p *VMInfoParams) FillEmptyFields(cfg *config.Config)

FillEmptyFields stores default parameters to the struct if some fields was empty

type VMListParams

type VMListParams struct {
	Datacenter   string
	Folder       string
	ResourcePool string
}

VMListParams stores user request params

func (*VMListParams) FillEmptyFields

func (p *VMListParams) FillEmptyFields(cfg *config.Config)

FillEmptyFields stores default parameters to the struct if some fields was empty

type VMRestoreFromSnapshotParams

type VMRestoreFromSnapshotParams struct {
	UUID       string `json:"vm_uuid"`
	SnapshotID int32  `json:"snapshot_id"`
	Datacenter string `json:"datacenter"`
	PowerOn    bool   `json:"power_on"`
}

VMRestoreFromSnapshotParams stores user request params

func (*VMRestoreFromSnapshotParams) FillEmptyFields

func (p *VMRestoreFromSnapshotParams) FillEmptyFields(cfg *config.Config)

FillEmptyFields stores default parameters to the struct if some fields was empty

type VMSnapshotDeleteParams

type VMSnapshotDeleteParams struct {
	UUID       string
	SnapshotID int32
	Datacenter string
}

VMSnapshotDeleteParams stores user request parameters

func (*VMSnapshotDeleteParams) FillEmptyFields

func (p *VMSnapshotDeleteParams) FillEmptyFields(cfg *config.Config)

FillEmptyFields stores default parameters to the struct if some fields was empty

type VMSnapshotsListParams

type VMSnapshotsListParams struct {
	UUID       string
	Datacenter string
}

VMSnapshotsListParams stores user request parameters

func (*VMSnapshotsListParams) FillEmptyFields

func (p *VMSnapshotsListParams) FillEmptyFields(cfg *config.Config)

FillEmptyFields stores default parameters to the struct if some fields was empty

type VMSummary

type VMSummary struct {
	Guest     *vmwaretypes.GuestInfo                  `json:"Guest,omitempty"`
	Heartbeat vmwaretypes.ManagedEntityStatus         `json:"HeartBeat,omitempty"`
	Runtime   vmwaretypes.VirtualMachineRuntimeInfo   `json:"Runtime,omitempty"`
	Config    vmwaretypes.VirtualMachineConfigSummary `json:"Config,omitempty"`
}

VMSummary stores some information about Virtual Machines

Jump to

Keyboard shortcuts

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