resources

package
v0.55.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2023 License: GPL-3.0 Imports: 2 Imported by: 2 modules, 4 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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