mirror of https://github.com/pulumi/pulumi.git
091d953bb4
This command adds a new plugin type, Boilerplate, which takes a name and config (of unspecified format) and is expected to generate a new Pulumi package, i.e.: a provider. A working implementation of the Boilerplate provider is implemented in pulumi/ci-mgmt#457. Using this command with the following configuration, a user can generate a working Pulumi provider binary in a single command. As the boilerplate is implemented as a plugin, it can be updated independently of the Pulumi CLI, versioned, and programmatically shim bridged providers. ```yaml module: github.com/pulumi/pulumi-porkbun providerTitle: "Porkbun" publisher: "Pulumi" homepage: "https://www.pulumi.com/" logoURL: "" major-version: 0 upstreamOrg: cullenmcdermott upstreamRepo: terraform-provider-porkbun sdks: nodejs: "@pulumi/porkbun" python: pulumi_porkbun dotnet: Pulumi.Porkbun # Include the major version here, i.e.: sdk/v4 or just sdk for v0 and v1 go: github.com/pulumi/pulumi-porkbun/sdk ``` |
||
---|---|---|
.. | ||
auto | ||
common | ||
internal | ||
pulumi | ||
pulumi-language-go | ||
pulumix | ||
Makefile | ||
README.md |
README.md
Pulumi Golang SDK
This directory contains support for writing Pulumi programs in the Go language. There are two aspects to this:
pulumi/
contains the client language bindings Pulumi program's code directly against;pulumi-language-go/
contains the language host plugin that the Pulumi engine uses to orchestrate updates.
To author a Pulumi program in Go, simply say so in your Pulumi.yaml
name: <my-project>
runtime: go
and ensure you have pulumi-language-go
on your path (it is distributed in the Pulumi download automatically).
By default, the language plugin will use your project's name, <my-project>
, as the executable that it loads. This too
must be on your path for the language provider to load it when you run pulumi preview
or pulumi up
.