Documentation ¶
Index ¶
Constants ¶
const ( // Filename is the base name of the configuration file. Filename = "hfc.toml" // LocalFilename is the base name of the local configuration file, whose // values are deeply merged with the base configuration. LocalFilename = "hfc.local.toml" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AWSConfig ¶
type AWSConfig struct {
Region string `toml:"region"`
}
AWSConfig represents the configuration for all AWS operations in this project.
type BuildConfig ¶
type BuildConfig struct {
Path string `toml:"path"`
}
BuildConfig represents the configuration for building a deployable Go binary.
type Config ¶
type Config struct { Project ProjectConfig `toml:"project"` AWS AWSConfig `toml:"aws"` Build BuildConfig `toml:"build"` Upload UploadConfig `toml:"upload"` Template TemplateConfig `toml:"template"` Stacks []StackConfig `toml:"stacks"` }
Config represents a full configuration.
func Load ¶
Load automatically loads the full configuration by finding, loading, and merging the base and local configurations.
type ProjectConfig ¶
type ProjectConfig struct {
Name string `toml:"name"`
}
ProjectConfig represents the configuration for this project, which is expected to be common across all possible deployments.
type StackConfig ¶
type StackConfig struct { Name string `toml:"name"` Parameters map[string]string `toml:"parameters"` }
StackConfig represents the configuration of an AWS CloudFormation stack, a specific deployment of the CloudFormation template with a unique set of parameters.
type TemplateConfig ¶
type TemplateConfig struct { Path string `toml:"path"` Capabilities []string `toml:"capabilities"` }
TemplateConfig represents the configuration of the AWS CloudFormation template associated with the deployment.
type UploadConfig ¶
UploadConfig represents the configuration for uploading a Go binary in a Lambda .zip archive to an Amazon S3 bucket.