importer

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

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

type InsufficientInfoErr struct {
	MissingFields []string
	Msg           string
}

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.

func (*RandomID) ImportID

func (c *RandomID) ImportID(rc terraform.ResourceChange, pcv ConfigMap, interactive bool) (string, error)

ImportID returns the ID of the resource to use in importing.

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.

func (*SQLUser) ImportID

func (b *SQLUser) ImportID(rc terraform.ResourceChange, pcv ConfigMap, interactive bool) (string, error)

ImportID returns the ID of the resource to use in importing.

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

type SimpleImporter struct {
	Fields   []string
	Tmpl     string
	Defaults map[string]interface{}
}

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.

type SkipErr added in v0.2.0

type SkipErr struct{}

SkipErr indicates that the user manually skipped the import.

func (*SkipErr) Error added in v0.2.0

func (e *SkipErr) Error() string

Jump to

Keyboard shortcuts

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