os

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OSFinder

type OSFinder interface {
	// FindOperatingSystem tries to find operating system name of the given Vmware VM
	FindOperatingSystem(vm *mo.VirtualMachine) (string, error)
}

OSFinder defines operation of discovering OS name of a VM

type VmwareOSFinder

type VmwareOSFinder struct {
	OsMapProvider os.OSMapProvider
}

VmwareOSFinder provides Vmware VM OS information

func (VmwareOSFinder) FindOperatingSystem

func (r VmwareOSFinder) FindOperatingSystem(vm *mo.VirtualMachine) (string, error)

FindOperatingSystem tries to find the guest operating system name of the given Vmware VM

Jump to

Keyboard shortcuts

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