resourceset

package
v0.14.1 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PopulateResourceTypes = map[string]bool{
	"MICROSOFT.COMPUTE/VIRTUALMACHINES": true,
}

PopulateResourceTypes is a map to record resources that might to be populate other resources. This is used in single resource mode to decide whether to call API to get its body.

Functions

This section is empty.

Types

type AzureResource

type AzureResource struct {
	Id         armid.ResourceId
	Properties map[string]interface{}
}

type AzureResourceSet

type AzureResourceSet struct {
	Resources []AzureResource
}

func (*AzureResourceSet) PopulateResource

func (rset *AzureResourceSet) PopulateResource() error

PopulateResource populate single resource for certain Azure resouce type that is known might maps to more than one TF resources, which are missing from azlist. In most cases, this step is used to populate the Azure managed resource.

func (*AzureResourceSet) ReduceResource

func (rset *AzureResourceSet) ReduceResource() error

ReduceResource reduce the resource set for certain multiple Azure resources that are known to be mapped to only one TF resource.

func (AzureResourceSet) ToTFAzAPIResources added in v0.14.0

func (rset AzureResourceSet) ToTFAzAPIResources() (result []TFResource)

func (AzureResourceSet) ToTFAzureRMResources added in v0.14.0

func (rset AzureResourceSet) ToTFAzureRMResources(parallelism int, cred azcore.TokenCredential, clientOpt arm.ClientOptions) []TFResource

type PesudoResourceInfo

type PesudoResourceInfo struct {
	TFType string
	TFId   string
}

type TFResource

type TFResource struct {
	AzureId armid.ResourceId
	TFId    string
	TFType  string
}

Jump to

Keyboard shortcuts

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