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.
Click to show internal directories.
Click to hide internal directories.