bridge

package
v0.0.0-...-4567545 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2019 License: Apache-2.0 Imports: 19 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateService

func CreateService(c px.Context, p *schema.Provider, ns string, config *terraform.ResourceConfig) serviceapi.Service

CreateService creates a serviceapi.Service from a Terraform schema.Provider

func TerraformMarshal

func TerraformMarshal(c px.Context, s px.PuppetObject, ts map[string]*schema.Schema) map[string]interface{}

TerraformMarshal converts a PuppetObject into its Terraform representation

func TerraformUnMarshal

func TerraformUnMarshal(c px.Context, extIdName, extId string, s map[string]interface{}, t px.ObjectType) px.PuppetObject

TerraformUnMarshal converts a Terraform representation into a PuppetObject

Types

type GenericTFHandler

type GenericTFHandler struct {
	// contains filtered or unexported fields
}

GenericTfHandlerHandler ...

func NewTFHandler

func NewTFHandler(provider *tfProvider, resourceType px.Type, externalIdAttributem, nativeType string) *GenericTFHandler

func (*GenericTFHandler) Create

func (h *GenericTFHandler) Create(desired px.PuppetObject) (px.PuppetObject, string, error)

Create ...

func (*GenericTFHandler) Delete

func (h *GenericTFHandler) Delete(externalID string) error

Delete ...

func (*GenericTFHandler) Read

func (h *GenericTFHandler) Read(externalID string) (px.PuppetObject, error)

Read ...

func (*GenericTFHandler) Update

func (h *GenericTFHandler) Update(externalID string, desired px.PuppetObject) (px.PuppetObject, error)

Update ...

Jump to

Keyboard shortcuts

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