package
1.8.6
Repository: https://github.com/vmware-tanzu/vm-operator.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

AppendNewExtraConfigValues add the new extra config values if not already present in the extra config.
Base64Decode returns a byte slice decoded from a base64 byte slice.
CNSAttachmentNameForVolume returns the name of the CnsNodeVmAttachment based on the VM and Volume name.
DevicesFromConfigSpec returns a slice of devices from the ConfigSpec's DeviceChange property.
EncodeGzipBase64 compresses the input string using gzip and then encodes it using base64.
EnsureMinHardwareVersionInConfigSpec ensures that the hardware version in the ConfigSpec is at least equal to the passed minimum hardware version value.
ExtraConfigToMap converts the ExtraConfig to a map with string values.
GetBootstrapConditionValues returns the bootstrap condition values from a VM if the data is present.
No description provided by the author
No description provided by the author
HasDeviceChangeDeviceByType returns true of one of the device change's dev is that of type T.
HasVirtualPCIPassthroughDeviceChange returns true if any of the device changes are for a passthrough device.
IsDeviceDynamicDirectPathIO returns true if the provided device is a dynamic direct path I/O device.
IsDeviceNvidiaVgpu returns true if the provided device is an Nvidia vGPU.
No description provided by the author
No description provided by the author
MarshalConfigSpecToJSON returns a byte slice of the provided ConfigSpec marshaled to a JSON string.
MarshalConfigSpecToXML returns a byte slice of the provided ConfigSpec marshalled to an XML string.
MergeExtraConfig adds the key/value to the ExtraConfig if the key is not present or the new value is different than the existing value.
NewCache initializes a new cache with the provided expiration options.
RemoveDevicesFromConfigSpec removes devices from config spec device changes based on the matcher function.
SanitizeVMClassConfigSpec clears fields in the class ConfigSpec that are not allowed or supported.
SelectDevices returns a slice of the devices that match at least one of the provided selector functions.
SelectDevicesByBackingType returns a slice of the devices that have a backing of type B.
SelectDevicesByDeviceAndBackingType returns a slice of the devices that are of type T with a backing of type B.
SelectDevicesByType returns a slice of the devices that are of type T.
SelectDevicesByTypes returns a slice of the devices that match at least one the provided device types.
SelectDynamicDirectPathIO returns a slice of dynamic direct path I/O devices.
SelectNvidiaVgpu return a slice of Nvidia vGPU devices.
SelectVirtualPCIPassthrough returns a slice of *VirtualPCIPassthrough devices.
TryToDecodeBase64Gzip base64-decodes the provided data until the DecodeString function fails.
UnmarshalConfigSpecFromBase64XML returns a ConfigSpec object from a byte-slice of the ConfigSpec marshaled as a base64-encoded, XML string.
UnmarshalConfigSpecFromJSON returns a ConfigSpec object from a byte-slice of the ConfigSpec marshaled as a JSON string.
UnmarshalConfigSpecFromXML returns a ConfigSpec object from a byte-slice of the ConfigSpec marshaled as an XML string.

# Constants

CachePutResultCreate indicates the item was created in the cache.
CachePutResultMaxItemsExceeded indicates the item was not stored because the cache's maximum number of items would have been exceeded.
CachePutResultUpdate indicates an existing, cached item was updated.
GuestInfoBootstrapCondition is the ExtraConfig key at which possible info about the bootstrap status may be stored.
XsiNamespace indicates the XML schema instance namespace.

# Structs

Cache is a generic implementation of a cache that can be configured with a maximum number of items and can evict items after a certain amount of time.
CacheItem wraps T so it has a LastUpdated field and can be used with Cache.
LockPool is a synchronized set of maps that can be obtained with a provided ID.

# Type aliases

CachePutResult describes the result of putting an item into the cache.
SelectDeviceFn returns true if the provided virtual device is a match.