utils

package
v0.4.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateInternalVpcObject added in v0.3.0

func GenerateInternalVpcObject(name string, namespace string, labels map[string]string, cloudName string,
	cloudId string, tags map[string]string, cloudProvider cloudv1alpha1.CloudProvider,
	region string, cidrs []string, managed bool) *runtimev1alpha1.Vpc

GenerateInternalVpcObject generates runtimev1alpha1 vpc object using the input parameters.

func GenerateShortResourceIdentifier

func GenerateShortResourceIdentifier(id string, prefixToAdd string) string

func GenerateVirtualMachineCRD

func GenerateVirtualMachineCRD(crdName, cloudName, cloudID, region, namespace, cloudNetwork, shortNetworkID string,
	state cloudv1alpha1.VMState, tags map[string]string, networkInterfaces []cloudv1alpha1.NetworkInterface,
	provider cloudcommon.ProviderType, accountId string) *cloudv1alpha1.VirtualMachine

GenerateVirtualMachineCRD constructs a VirtualMachine CR based on parameters.

func GetCloudResourceCRName added in v0.4.0

func GetCloudResourceCRName(providerType, name string) string

GetCloudResourceCRName gets corresponding cr name from cloud resource id based on cloud type.

Types

This section is empty.

Jump to

Keyboard shortcuts

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