Documentation ¶
Index ¶
- Variables
- type AzureResource
- type AzureResourceSet
- func (rset *AzureResourceSet) PopulateResource() error
- func (rset *AzureResourceSet) ReduceResource() error
- func (rset AzureResourceSet) ToTFAzAPIResources() (result []TFResource)
- func (rset AzureResourceSet) ToTFAzureRMResources(parallelism int, cred azcore.TokenCredential, clientOpt arm.ClientOptions) []TFResource
- type PesudoResourceInfo
- type TFResource
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 TFResource ¶
type TFResource struct { AzureId armid.ResourceId TFId string TFType string }
Click to show internal directories.
Click to hide internal directories.