converters

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ImageToSDK added in v0.4.0

func ImageToSDK(image *infrav1.Image) (*compute.ImageReference, error)

ImageToSDK converts a CAPZ Image (as RawExtension) to a Azure SDK Image Reference.

func MapToTags

func MapToTags(src map[string]*string) infrav1.Tags

MapToTags converts a map[string]*string into a infrav1.Tags.

func SDKToVM

func SDKToVM(v compute.VirtualMachine) (*infrav1.VM, error)

SDKToVM converts an Azure SDK VirtualMachine to the CAPZ VM type.

func TagsToMap

func TagsToMap(src infrav1.Tags) map[string]*string

TagsToMap converts infrav1.Tags into a map[string]*string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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