resources

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2020 License: GPL-3.0 Imports: 2 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster

type Cluster struct {
	Name     string
	ID       string
	ParentID string
	Hier     ClusterHierarchy
}

When two or more physical machines are grouped to work and be managed as a whole, the aggregate computing and memory resources form a cluster.

type ClusterHierarchy

type ClusterHierarchy struct {
	Dc HierarchyValue
}

func (ClusterHierarchy) IsSet

func (h ClusterHierarchy) IsSet() bool

type Clusters

type Clusters map[string]*Cluster

func (Clusters) Get

func (cs Clusters) Get(id string) *Cluster

func (Clusters) Put

func (cs Clusters) Put(cluster *Cluster)

type Datacenter

type Datacenter struct {
	Name string
	ID   string
}

type Dcs

type Dcs map[string]*Datacenter

func (Dcs) Get

func (dcs Dcs) Get(id string) *Datacenter

func (Dcs) Put

func (dcs Dcs) Put(datacenter *Datacenter)

type Folder

type Folder struct {
	Name     string
	ID       string
	ParentID string
}

type Folders

type Folders map[string]*Folder

func (Folders) Get

func (fs Folders) Get(id string) *Folder

func (Folders) Put

func (fs Folders) Put(folder *Folder)

type HierarchyValue

type HierarchyValue struct {
	ID, Name string
}

func (HierarchyValue) IsSet

func (v HierarchyValue) IsSet() bool

func (*HierarchyValue) Set

func (v *HierarchyValue) Set(id, name string)

type Host

type Host struct {
	Name          string
	ID            string
	ParentID      string
	Hier          HostHierarchy
	OverallStatus string
	MetricList    performance.MetricList
	Ref           types.ManagedObjectReference
}

A host is the virtual representation of the computing and memory resources of a physical machine running ESXi.

type HostHierarchy

type HostHierarchy struct {
	Dc      HierarchyValue
	Cluster HierarchyValue
}

func (HostHierarchy) IsSet

func (h HostHierarchy) IsSet() bool

type Hosts

type Hosts map[string]*Host

func (Hosts) Get

func (hs Hosts) Get(id string) *Host

func (Hosts) Put

func (hs Hosts) Put(host *Host)

func (Hosts) Remove

func (hs Hosts) Remove(id string)

type Resources

type Resources struct {
	Dcs      Dcs
	Folders  Folders
	Clusters Clusters
	Hosts    Hosts
	VMs      VMs
}

type VM

type VM struct {
	Name          string
	ID            string
	ParentID      string
	Hier          VMHierarchy
	OverallStatus string
	MetricList    performance.MetricList
	Ref           types.ManagedObjectReference
}

type VMHierarchy

type VMHierarchy struct {
	Dc      HierarchyValue
	Cluster HierarchyValue
	Host    HierarchyValue
}

func (VMHierarchy) IsSet

func (h VMHierarchy) IsSet() bool

type VMs

type VMs map[string]*VM

func (VMs) Get

func (vs VMs) Get(id string) *VM

func (VMs) Put

func (vs VMs) Put(vm *VM)

func (VMs) Remove

func (vs VMs) Remove(id string)

Jump to

Keyboard shortcuts

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