Documentation
¶
Overview ¶
Package credentialhelper helps create a Terraform credential helper CLI.
https://www.terraform.io/docs/internals/credentials-helpers.html
It accepts a "Helper" interface that implements the get, store, and forget command that Terraform will call. It prints output (or errors) to the correct output stream and sets an exit code based on the result of the Helper. It also supports defining flags, to be provided when the user defines their credential helper:
credentials_helper "credstore" { args = ["--host=credstore.example.com"] }
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CLI ¶
type CLI struct {
// contains filtered or unexported fields
}
CLI is a Terraform credential helper CLI
type Helper ¶
type Helper interface { // Flags supported by the helper Flags() *flag.FlagSet // Retrieve the credentials for the given hostname Get(hostname string) (credentials []byte, err error) // Store new credentials for the given hostname Store(hostname string, credentials []byte) error // Delete any stored credentials for the given hostname Forget(hostname string) error }
Helper represents a Terraform credential helper https://www.terraform.io/docs/internals/credentials-helpers.html
Click to show internal directories.
Click to hide internal directories.