crud

package
v0.15.1-0...-051e281 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2019 License: BSD-2-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(provider terraform.ResourceProvider, resourceType string, configuration map[string]interface{}) (*terraform.InstanceState, error)

func DataSourceRead

func DataSourceRead(provider terraform.ResourceProvider, configuration map[string]interface{}, dataType string) (*terraform.InstanceState, error)

func Delete

func Delete(provider terraform.ResourceProvider, resourceID, resourceType string, oldConfig map[string]interface{}, currentConfig map[string]interface{}) (*terraform.InstanceState, error)

func GetConfigurationMap

func GetConfigurationMap(resourceProvider terraform.ResourceProvider) map[string]interface{}

func GetProvider

func GetProvider(resourceType string) (terraform.ResourceProvider, error)

func Import

func Import(provider terraform.ResourceProvider, resourceID string, resourceType string) (*terraform.InstanceState, error)

func Update

func Update(provider terraform.ResourceProvider, resourceID string, resourceType string, oldConfig map[string]interface{}, currentConfig map[string]interface{}) (*terraform.InstanceState, error)

Types

type ProviderCrud

type ProviderCrud struct {
	Init           func() (terraform.ResourceProvider, error)
	Import         func(provider terraform.ResourceProvider, resourceID string, resourceType string) (*terraform.InstanceState, error)
	Create         func(terraform.ResourceProvider, string, map[string]interface{}) (*terraform.InstanceState, error)
	Update         func(terraform.ResourceProvider, string, string, map[string]interface{}, map[string]interface{}) (*terraform.InstanceState, error)
	Delete         func(terraform.ResourceProvider, string, string, map[string]interface{}, map[string]interface{}) (*terraform.InstanceState, error)
	DataSourceRead func(terraform.ResourceProvider, map[string]interface{}, string) (*terraform.InstanceState, error)
}

Jump to

Keyboard shortcuts

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