Documentation
¶
Overview ¶
networks.go
Index ¶
- Constants
- func ExtractHostPowerStates(rows [][]string) map[string]int
- func ExtractHostsInfo(vHostRows [][]string) ([]api.Host, error)
- func ExtractNetworks(dvswitchRows, dvportRows [][]string) []api.Network
- func ExtractVCenterUUID(rows [][]string) (string, error)
- func ExtractVmsPerCluster(rows [][]string) []int
- func IsExcelFile(content []byte) bool
- func ParseRVTools(ctx context.Context, rvtoolsContent []byte, opaValidator *opa.Validator) (*api.Inventory, error)
- type ClusterInfo
- type ControllerTracker
Constants ¶
View Source
const ( NetStandard = "standard" NetDvSwitch = "dvswitch" NetDvPortGroup = "distributed" )
Variables ¶
This section is empty.
Functions ¶
func ExtractHostPowerStates ¶
func ExtractNetworks ¶
func ExtractVCenterUUID ¶
func ExtractVmsPerCluster ¶
func IsExcelFile ¶
Types ¶
type ClusterInfo ¶
type ClusterInfo struct {
HostsPerCluster []int
ClustersPerDatacenter []int
TotalHosts int
TotalClusters int
TotalDatacenters int
}
func ExtractClusterAndDatacenterInfo ¶
func ExtractClusterAndDatacenterInfo(vHostRows [][]string) ClusterInfo
type ControllerTracker ¶
type ControllerTracker struct {
// contains filtered or unexported fields
}
func NewControllerTracker ¶
func NewControllerTracker() *ControllerTracker
func (*ControllerTracker) GetControllerKey ¶
func (ct *ControllerTracker) GetControllerKey(controllerName string) int32
Click to show internal directories.
Click to hide internal directories.