plugin

package
v0.12.29 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2020 License: MPL-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package plugin contains types and functions to help Terraform plugins implement the plugin rpc interface. The primary Provider type will be responsible for converting from the grpc wire protocol to the types and methods known to the provider implementations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetUnknowns

func SetUnknowns(val cty.Value, schema *configschema.Block) cty.Value

SetUnknowns takes a cty.Value, and compares it to the schema setting any null values which are computed to unknown.

Types

type GRPCProviderServer

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

GRPCProviderServer handles the server, or plugin side of the rpc connection.

func NewGRPCProviderServerShim

func NewGRPCProviderServerShim(p terraform.ResourceProvider) *GRPCProviderServer

NewGRPCProviderServerShim wraps a terraform.ResourceProvider in a proto.ProviderServer implementation. If the provided provider is not a *schema.Provider, this will return nil,

func (*GRPCProviderServer) Configure

func (*GRPCProviderServer) PlanResourceChange

func (*GRPCProviderServer) ReadDataSource

func (*GRPCProviderServer) ReadResource

func (*GRPCProviderServer) Stop

type GRPCProvisionerServer

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

func NewGRPCProvisionerServerShim

func NewGRPCProvisionerServerShim(p terraform.ResourceProvisioner) *GRPCProvisionerServer

NewGRPCProvisionerServerShim wraps a terraform.ResourceProvisioner in a proto.ProvisionerServer implementation. If the provided provisioner is not a *schema.Provisioner, this will return nil,

func (*GRPCProvisionerServer) ProvisionResource

func (*GRPCProvisionerServer) Stop

Jump to

Keyboard shortcuts

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