Documentation ¶
Index ¶
- func CreateService(c px.Context, p *schema.Provider, ns string, config *terraform.ResourceConfig) serviceapi.Service
- func TerraformMarshal(c px.Context, s px.PuppetObject, ts map[string]*schema.Schema) map[string]interface{}
- func TerraformUnMarshal(c px.Context, extIdName, extId string, s map[string]interface{}, ...) px.PuppetObject
- type GenericTFHandler
- func (h *GenericTFHandler) Create(desired px.PuppetObject) (px.PuppetObject, string, error)
- func (h *GenericTFHandler) Delete(externalID string) error
- func (h *GenericTFHandler) Read(externalID string) (px.PuppetObject, error)
- func (h *GenericTFHandler) Update(externalID string, desired px.PuppetObject) (px.PuppetObject, error)
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 ...
Click to show internal directories.
Click to hide internal directories.