util

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CdkTFApplyAll

func CdkTFApplyAll(t testing.TestingT, options *terraform.Options, exampleFile string) (string, error)

func CdkTFApplyAllAndIdempotent

func CdkTFApplyAllAndIdempotent(t testing.TestingT, options *terraform.Options, exampleFile string) (string, error)

func CdkTFDestroyAll

func CdkTFDestroyAll(t testing.TestingT, options *terraform.Options, exampleFile string) (string, error)

func CdkTFOutput

func CdkTFOutput(t testing.TestingT, options *terraform.Options, variableName string) string

func CdkTFSynth

func CdkTFSynth(t testing.TestingT, options *terraform.Options, exampleFile string) (string, error)

func CheckStacksIdempotency

func CheckStacksIdempotency(t testing.TestingT, options *terraform.Options, tempstackfolder string) ([]string, error)

func FormatTerraformVarsAsArgs

func FormatTerraformVarsAsArgs(vars map[string]interface{}) []string

func GetSkuOfVirtualMachineScaleSet

func GetSkuOfVirtualMachineScaleSet(t testing.TestingT, vmssName string, resGroupName string, subscriptionID string) *compute.Sku

GetSkuOfVirtualMachineScaleSet gets the SKU of the specified Azure Virtual Machine Scale Set. This function would fail the test if there is an error.

func GetSkuOfVirtualMachineScaleSetE

func GetSkuOfVirtualMachineScaleSetE(vmssName string, resGroupName string, subscriptionID string) (*compute.Sku, error)

GetSkuOfVirtualMachineScaleSetE gets the SKU of the specified Azure Virtual Machine Scale Set.

func GetSubscriptionID

func GetSubscriptionID() string

func GetVirtualMachineScaleSet

func GetVirtualMachineScaleSet(t testing.TestingT, vmssName string, resGroupName string, subscriptionID string) *compute.VirtualMachineScaleSet

GetVirtualMachineScaleSet gets a Virtual Machine Scale Set in the specified Azure Resource Group. This function would fail the test if there is an error.

func GetVirtualMachineScaleSetClient

func GetVirtualMachineScaleSetClient(t testing.TestingT, subscriptionID string) *compute.VirtualMachineScaleSetsClient

GetVirtualMachineScaleSetClient is a helper function that will setup an Azure Virtual Machine Scale Set client on your behalf.

func GetVirtualMachineScaleSetClientE

func GetVirtualMachineScaleSetClientE(subscriptionID string) (*compute.VirtualMachineScaleSetsClient, error)

GetVirtualMachineScaleSetClientE is a helper function that will setup an Azure Virtual Machine Scale Set client on your behalf.

func GetVirtualMachineScaleSetE

func GetVirtualMachineScaleSetE(vmssName string, resGroupName string, subscriptionID string) (*compute.VirtualMachineScaleSet, error)

GetVirtualMachineScaleSetE gets a Virtual Machine Scale Set in the specified Azure Resource Group.

func MarshalJSON

func MarshalJSON(jsonData map[string]interface{}) ([]byte, error)

func RandomizeResourceNames

func RandomizeResourceNames(resourceData map[string]interface{}, resourceName string)

func RandomizeUniqueResources

func RandomizeUniqueResources(filePath string) error

func ReadFile

func ReadFile(filePath string) ([]byte, error)

func UnmarshalJSON

func UnmarshalJSON(data []byte) (map[string]interface{}, error)

func VirtualMachineScaleSetExists

func VirtualMachineScaleSetExists(t testing.TestingT, vmssName string, resGroupName string, subscriptionID string) bool

VirtualMachineScaleSetExists indicates whether the specified Azure Virtual Machine Scale Set exists. This function would fail the test if there is an error.

func VirtualMachineScaleSetExistsE

func VirtualMachineScaleSetExistsE(vmssName string, resGroupName string, subscriptionID string) (bool, error)

VirtualMachineScaleSetExistsE indicates whether the specified Azure Virtual Machine Scale Set exists.

func WriteFile

func WriteFile(filePath string, jsonDataBytes []byte) error

Types

type CdkTFInvalidBinary

type CdkTFInvalidBinary string

CdkTFInvalidBinary occurs when a cdktf function is called and the TerraformBinary is set to a value other than cdktf

func (CdkTFInvalidBinary) Error

func (err CdkTFInvalidBinary) Error() string

Jump to

Keyboard shortcuts

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