rvtools

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

networks.go

Index

Constants

View Source
const (
	NetStandard    = "standard"
	NetDvSwitch    = "dvswitch"
	NetDvPortGroup = "distributed"
)

Variables

This section is empty.

Functions

func ExtractHostPowerStates

func ExtractHostPowerStates(rows [][]string) map[string]int

func ExtractHostsInfo

func ExtractHostsInfo(vHostRows [][]string) ([]api.Host, error)

func ExtractNetworks

func ExtractNetworks(dvswitchRows, dvportRows [][]string) []api.Network

func ExtractVCenterUUID

func ExtractVCenterUUID(rows [][]string) (string, error)

func ExtractVmsPerCluster

func ExtractVmsPerCluster(rows [][]string) []int

func IsExcelFile

func IsExcelFile(content []byte) bool

func ParseRVTools

func ParseRVTools(ctx context.Context, rvtoolsContent []byte, opaValidator *opa.Validator) (*api.Inventory, error)

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

Jump to

Keyboard shortcuts

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