provider

package
v0.14.1-dev Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Main

func Main(name string, provMaker func(*HostClient) (pulumirpc.ResourceProviderServer, error)) error

Main is the typical entrypoint for a resource provider plugin. Using it isn't required but can cut down significantly on the amount of boilerplate necessary to fire up a new resource provider.

Types

type HostClient

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

HostClient is a client interface into the host's engine RPC interface.

func NewHostClient

func NewHostClient(addr string) (*HostClient, error)

NewHostClient dials the target address, connects over gRPC, and returns a client interface.

func (*HostClient) Close

func (host *HostClient) Close() error

Close closes and renders the connection and client unusable.

func (*HostClient) Log

func (host *HostClient) Log(context context.Context, sev diag.Severity, msg string) error

Log logs a global message, including errors and warnings.

Jump to

Keyboard shortcuts

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