types

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 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 Role

type Role struct {
	Name        string `json:"name"`
	ID          int32  `json:"id"`
	Description struct {
		Label   string `json:"label"`
		Summary string `json:"summary"`
	} `json:"description"`
}

Role stores response from RoleList method

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
	Datacenter  string
	Name        string
	Description string
	Memory      bool
	Quiesce     bool
}

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 TaskInfoParams

type TaskInfoParams struct {
	TaskID string
}

TaskInfoParams stores user request parameters

type VMAddRoleParams

type VMAddRoleParams struct {
	UUID       string
	Datacenter string
	Principal  string
	RoleID     int32
}

VMAddRoleParams stores user request parameters

func (*VMAddRoleParams) FillEmptyFields

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

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

type VMDeleteParams added in v0.3.0

type VMDeleteParams struct {
	UUID       string
	Datacenter string
}

VMDeleteParams stores user request parameters

func (*VMDeleteParams) FillEmptyFields added in v0.3.0

func (p *VMDeleteParams) 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
	Datacenter        string
	Folder            string
	Annotation        string
	Networks          map[string]string
	ComputerResources struct {
		Path string
		Type string
	}
	Datastores struct {
		Type  string
		Names []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 VMFound

type VMFound struct {
	UUID string `json:"uuid,omitempty"`
	Name string `json:"name,omitempty"`
}

VMFound stores response from VMFind method

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
	Datacenter string
	SnapshotID int32
	PowerOn    bool
}

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 VMRolesListParams

type VMRolesListParams struct {
	UUID       string
	Datacenter string
}

VMRolesListParams stores user request parameters

func (*VMRolesListParams) FillEmptyFields

func (p *VMRolesListParams) 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