lib

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EsxiNodeConfPath string = "hosts.toml"

Functions

func GetVmIp

func GetVmIp(machine Machine) string

Get a Machine's IP

func GetVmIpName

func GetVmIpName(ipAddr string) string

func ResolveRecordTypeA

func ResolveRecordTypeA(hostname string) string

Resolve type 'A' record

func ResolveRecordTypePTR

func ResolveRecordTypePTR(ptrAddr string) string

Resolve type 'A' record

func SetEsxiConfigPath

func SetEsxiConfigPath(hostFilePath string)

Config for esxi hosts info

Types

type Machine

type Machine struct {
	Id       int    // VM ID on ESXi
	Name     string // VM Name on ESXi
	NodeName string // ESXi Node Name
}

type Machines

type Machines []Machine

func GetAllVmIdName

func GetAllVmIdName() Machines

Get All VM Name and VM Id

Jump to

Keyboard shortcuts

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