Documentation ¶
Index ¶
- Constants
- func AWSRegion(reader *bufio.Reader, out io.Writer) (string, error)
- func AWSRegionIfNeeded(reader *bufio.Reader, out io.Writer, biomeDir string) (string, error)
- func AzureLocationIfNeeded(reader *bufio.Reader, out io.Writer, biomeDir string) (string, error)
- func GCPProjectID(reader *bufio.Reader, out io.Writer) (string, error)
- func GCPProjectIDIfNeeded(reader *bufio.Reader, out io.Writer, biomeDir string) (string, error)
- func GCPRegion(reader *bufio.Reader, out io.Writer) (string, error)
- func GCPStorageLocationIfNeeded(reader *bufio.Reader, out io.Writer, biomeDir string) (string, error)
- func String(reader *bufio.Reader, out io.Writer, msg, dflt string) (string, error)
Constants ¶
const ( // GCPProjectIDTfLocalName is the name used to store the GCP project ID in main.tf. GCPProjectIDTfLocalName = "gcp_project" // GCPProjectIDTfLocalName is the name used to store the GCP project ID in main.tf. GCPRegionTfLocalName = "gcp_region" )
const AWSRegionTfLocalName = "aws_region"
AWSRegionTfLocalName is the name used to store the AWS region in main.tf.
Variables ¶
This section is empty.
Functions ¶
func AWSRegion ¶
AWSRegion prompts the user for an AWS region.
func AWSRegionIfNeeded ¶
AWSRegionIfNeeded prompts the user for an AWS region if needed.
func AzureLocationIfNeeded ¶
AzureLocationIfNeeded prompts the user for an Azure location if needed.
func GCPProjectID ¶
GCPProjectID prompts the user for a GCP project ID.
func GCPProjectIDIfNeeded ¶
GCPProjectIDIfNeeded prompts the user for a GCP project ID if needed.
func GCPRegion ¶
GCPRegion prompts the user for a GCP region.
func GCPStorageLocationIfNeeded ¶
func GCPStorageLocationIfNeeded(reader *bufio.Reader, out io.Writer, biomeDir string) (string, error)
GCPStorageLocationIfNeeded prompts the user for a GCP storage location if needed.
func String ¶
String prompts the user to input a string. It outputs msg to out, then prompts the user to enter a value. If the user just hits return, the value defaults to dflt. The function only returns an error if the user enters "cancel" and on I/O errors. TODO(rvangent): Add support for validation? TODO(rvangent): Ctrl-C doesn't work; maybe replace cancel; need to take a ctx. TODO(rvangent): Revisit how prompts looks (multi-line, etc.).
Types ¶
This section is empty.