util

package
v0.0.0-...-57daf80 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EntityTypePrefix        = "urn:vcloud:type"
	CAPVCDEntityTypeVendor  = "vmware"
	CAPVCDEntityTypeNss     = "capvcdCluster"
	CAPVCDEntityTypeVersion = "1.0.0"

	NativeClusterEntityTypeVendor  = "cse"
	NativeClusterEntityTypeNss     = "nativeCluster"
	NativeClusterEntityTypeVersion = "2.0.0"
)

Variables

Functions

func DecodeXMLBody

func DecodeXMLBody(bodyType types.BodyType, resp *http.Response, out interface{}) error

DecodeXMLBody is used to decode a response body of types.BodyType

func GetVirtualIPsFromRDE

func GetVirtualIPsFromRDE(rde *swaggerClient.DefinedEntity) ([]string, error)

func ReplaceVirtualIPsInRDE

func ReplaceVirtualIPsInRDE(rde *swaggerClient.DefinedEntity, updatedIps []string) (*swaggerClient.DefinedEntity, error)

ReplaceVirtualIPsInRDE replaces the virtual IPs array in the inputted rde. It does not make an API call to update the RDE.

Types

This section is empty.

Jump to

Keyboard shortcuts

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