mirror of https://github.com/pulumi/pulumi.git
8822699be3
Add ConfigFile to ConfigOptions for GetConfig and SetConfig operations to allow for users to specify a config file to read and write to during these operations. Add a new GetAllConfigWithOptions function to allow users to specify a config file to read from and also if they want to show secrets Error handling has been added to operations that do not support specific config options such as SetAllConfigWithOptions returning a newAutoError if ShowSecrets is set to true in the ConfigOptions. GetAllConfig has been refactored to use the new GetAllConfigWithOptions function to follow the pattern the other functions are using. Test cases have been added to test the new functionality and error handling and also to verify that the GetallConfig refactor works as it previously did. |
||
---|---|---|
.. | ||
auto | ||
common | ||
internal | ||
property | ||
pulumi | ||
pulumi-internal/netutil | ||
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
.