plugin

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 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 NewGRPCProviderServer

func NewGRPCProviderServer(p *schema.Provider) *GRPCProviderServer

func (*GRPCProviderServer) ApplyResourceChange

func (*GRPCProviderServer) Configure

func (*GRPCProviderServer) ImportResourceState

func (*GRPCProviderServer) PlanResourceChange

func (*GRPCProviderServer) ReadDataSource

func (*GRPCProviderServer) ReadResource

func (*GRPCProviderServer) Stop

func (*GRPCProviderServer) StopContext

func (s *GRPCProviderServer) StopContext(ctx context.Context) context.Context

StopContext derives a new context from the passed in grpc context. It creates a goroutine to wait for the server stop and propagates cancellation to the derived grpc context.

func (*GRPCProviderServer) UpgradeResourceState

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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