Documentation
¶
Overview ¶
Package importer defines resource-specific implementations for interface Importer.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BillingBudget ¶
type BillingBudget struct{}
BillingBudget defines a struct with the necessary information for a google_billint_budget to be imported.
func (*BillingBudget) ImportID ¶
func (i *BillingBudget) ImportID(rc terraform.ResourceChange, pcv ConfigMap, interactive bool) (string, error)
ImportID returns the ID of the resource to use in importing.
type ComputeNetworkPeering ¶
type ComputeNetworkPeering struct{}
ComputeNetworkPeering defines a struct with the necessary information for a google_compute_network_peering to be imported.
func (*ComputeNetworkPeering) ImportID ¶
func (b *ComputeNetworkPeering) ImportID(rc terraform.ResourceChange, pcv ConfigMap, interactive bool) (string, error)
ImportID returns the ID of the resource to use in importing.
type ConfigMap ¶
type ConfigMap map[string]interface{}
ConfigMap is a type alias for a map of resource config values. It's supposed to hold values for keys used in determining a resource's ImportID. May come from the provider block, the planned change values, manually provided defaults, or elsewhere.
type DoesNotExistErr ¶ added in v0.6.0
type DoesNotExistErr struct {
Resource string
}
DoesNotExistErr indicates that a resources specifically determined that it doesn't exist. Example: google_resource_manager_lien requires a name to import, but if it finds no liens, it should return this error.
func (*DoesNotExistErr) Error ¶ added in v0.6.0
func (e *DoesNotExistErr) Error() string
type InsufficientInfoErr ¶
InsufficientInfoErr indicates that we do not have enough information to import a resource.
func (*InsufficientInfoErr) Error ¶
func (e *InsufficientInfoErr) Error() string
type RandomID ¶
type RandomID struct{}
RandomID defines a struct with the necessary information for a random_id to be imported.
type RandomInteger ¶
type RandomInteger struct{}
RandomInteger defines a struct with the necessary information for a random_integer to be imported.
func (*RandomInteger) ImportID ¶
func (c *RandomInteger) ImportID(rc terraform.ResourceChange, pcv ConfigMap, interactive bool) (string, error)
ImportID returns the ID of the resource to use in importing.
type ResourceManagerLien ¶
type ResourceManagerLien struct{}
ResourceManagerLien defines a struct with the necessary information for a google_resource_manager_lien to be imported.
func (*ResourceManagerLien) ImportID ¶
func (i *ResourceManagerLien) ImportID(rc terraform.ResourceChange, pcv ConfigMap, interactive bool) (string, error)
ImportID returns the ID of the resource to use in importing.
type SQLUser ¶
type SQLUser struct{}
SQLUser defines a struct with the necessary information for a google_sql_user to be imported.
type ServiceNetworkingConnection ¶
type ServiceNetworkingConnection struct{}
ServiceNetworkingConnection defines a struct with the necessary information for a google_service_networking_connection to be imported.
func (*ServiceNetworkingConnection) ImportID ¶
func (b *ServiceNetworkingConnection) ImportID(rc terraform.ResourceChange, pcv ConfigMap, interactive bool) (string, error)
ImportID returns the ID of the resource to use in importing.
type SimpleImporter ¶
SimpleImporter defines a struct with the necessary information to import a resource that only depends on fields from the plan. Should be used by any resource that doesn't use interactivity, API calls, or complicated processing of fields.
func (*SimpleImporter) ImportID ¶
func (i *SimpleImporter) ImportID(rc terraform.ResourceChange, pcv ConfigMap, interactive bool) (string, error)
ImportID returns the ID of the resource to use in importing.