Documentation
¶
Index ¶
- Variables
- func Apply(c *Context, force bool, dockercfgFlag string) error
- func Backup(c *Context) error
- func CopyDir(source, dest string) error
- func CopyFile(src, dest string) error
- func Destroy(c *Context, force bool) error
- func Endpoint(c *Context, syntax string, insecure, dev, quiet bool) error
- func FileExists(path string) bool
- func GetExecutionDir() (string, error)
- func Plan(c *Context, dockercfgFlag string, force bool, args []string) error
- func ReadFileLines(path string) ([]string, error)
- func ReadTFVars(varsFile string) (map[string]string, error)
- func Restore(c *Context) error
- func Terraform(c *Context, args []string) error
- func Vpc(c *Context, vpcId string) error
- type Auth
- type ByIPDesc
- type ByString
- type Context
- type DockerConfigFile
- type TFModule
- type TFState
- type VariableSchema
Constants ¶
This section is empty.
Variables ¶
View Source
var TerraformVariables = []VariableSchema{ { Name: "access_key", Description: "The aws_access_key_id for your Layer0", DisplayName: "AWS Access Key ID", }, { Name: "secret_key", Description: "The aws_secret_access_key for your Layer0", DisplayName: "AWS Secret Access Key", }, { Name: "region", Default: "us-west-2", DisplayName: "AWS Region", Description: "The aws_region for your Layer0", Validate: validateRegion, }, { Name: "l0_prefix", IsCalculated: true, Calculate: func(c *Context) (string, error) { return c.Instance, nil }, }, { Name: "account_id", IsCalculated: true, Calculate: getAccountID, }, { Name: "key_pair", Description: "The name of an EC2 key pair", DisplayName: "Key Pair Name", }, { Name: "s3_bucket", IsCalculated: true, Calculate: getS3Bucket, }, { Name: "api_auth_token", IsCalculated: true, Calculate: getAuthToken, }, { Name: "api_docker_image", Description: "Layer0 API image name (like quintilesims/l0-api)", Default: "quintilesims/l0-api", }, { Name: "api_docker_image_tag", Description: "Layer0 API image tag (like v0.6.0)", IsCalculated: true, Calculate: getImageTag, }, { Name: "runner_docker_image_tag", Description: "Layer0 Runner image tag (like v0.6.0)", IsCalculated: true, Calculate: getImageTag, }, }
Functions ¶
func FileExists ¶
func GetExecutionDir ¶
func ReadFileLines ¶
Types ¶
type Context ¶
type Context struct {
Instance string
StateFile string
VarsFile string
DockerConfigFile string
InstanceDir string
ExecutionDir string
Flags map[string]*string
TerraformVars map[string]string
// contains filtered or unexported fields
}
func NewContext ¶
type DockerConfigFile ¶
func (*DockerConfigFile) Write ¶
func (d *DockerConfigFile) Write(path string) error
type VariableSchema ¶
type VariableSchema struct {
Name string
DisplayName string
Default string
Description string
IsCalculated bool
AlwaysCalculate bool
Calculate func(*Context) (string, error)
Validate func(*Context, string) error
}
func GetTerraformVariable ¶
func GetTerraformVariable(name string) (VariableSchema, bool)
Click to show internal directories.
Click to hide internal directories.