internal

package
v0.37.1 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ModulesPath is rest endpoint for the Cluster Modules API
	ModulesPath = "/vcenter/cluster/modules"
	// ModulesVMPath is rest endpoint for the Cluster Modules Members API
	ModulesVMPath = "/vcenter/cluster/modules/vm"
)

Variables

This section is empty.

Functions

func ClusterVM

func ClusterVM(c *vim25.Client, cluster mo.Reference) ([]mo.Reference, error)

ClusterVM returns all VM references in the given cluster

Types

type CreateModule

type CreateModule struct {
	Spec struct {
		ID string `json:"cluster"`
	} `json:"spec"`
}

CreateModule is used for JSON encode/decode

type ModuleMembers

type ModuleMembers struct {
	VMs []string `json:"vms"`
}

ModuleMembers is used for JSON encode/decode

func (*ModuleMembers) AsReferences

func (m *ModuleMembers) AsReferences() []types.ManagedObjectReference

AsReferences converts the ModuleMembers.VM field to morefs

type Status

type Status struct {
	Success bool `json:"success"`
}

Status is used for JSON encode/decode

Jump to

Keyboard shortcuts

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