resources

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2021 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
}

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 DataCenters added in v0.17.0

type DataCenters map[string]*Datacenter

func (DataCenters) Get added in v0.17.0

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

func (DataCenters) Put added in v0.17.0

func (dcs DataCenters) Put(dc *Datacenter)

type Datacenter

type Datacenter struct {
	Name string
	ID   string
}

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
}

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 {
	DataCenters DataCenters
	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