provider

package
v0.16.7 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2018 License: Apache-2.0 Imports: 12 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, urn resource.URN, msg string,
) error

Log logs a global message, including errors and warnings.

func (*HostClient) LogStatus added in v0.15.1

func (host *HostClient) LogStatus(
	context context.Context, sev diag.Severity, urn resource.URN, msg string,
) error

LogStatus logs a global status message, including errors and warnings. Status messages will appear in the `Info` column of the progress display, but not in the final output.

Jump to

Keyboard shortcuts

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