diag

package
v1.5.2-rc1 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// VCStatusOK vSphere API is available.
	VCStatusOK = 0
	// VCStatusInvalidURL Provided vSphere API URL is wrong.
	VCStatusInvalidURL = 64
	// VCStatusErrorQuery Error happened trying to query vSphere API
	VCStatusErrorQuery = 65
	// VCStatusErrorResponse Received response doesn't contain expected data.
	VCStatusErrorResponse = 66
	// VCStatusIncorrectResponse Received in case if returned data from server is different from expected.
	VCStatusIncorrectResponse = 67
	// VCStatusNotXML Received response is not XML
	VCStatusNotXML = 68
	// VCStatusUnknownHost is returned in case if DNS failed to resolve name.
	VCStatusUnknownHost = 69
	// VCStatusHostIsNotReachable
	VCStatusHostIsNotReachable = 70
)
View Source
const StatusCodeFatalThreshold = 64

StatusCodeFatalThreshold defines a threshold after which all codes can be treated as fatal.

Variables

This section is empty.

Functions

func CheckAPIAvailability

func CheckAPIAvailability(targetURL string) int

CheckAPIAvailability accesses vSphere API to ensure it is a correct end point that is up and running.

func UserReadableVCAPITestDescription

func UserReadableVCAPITestDescription(code int) string

UserReadableVCAPITestDescription convert API test code into user readable text

Types

This section is empty.

Source Files

  • diag.go

Jump to

Keyboard shortcuts

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