Documentation ¶
Overview ¶
Package raw contains the golang representations of the YAML elements supported in atlantis.yaml. The structs here represent the exact data that comes from the file before it is parsed/validated further.
Index ¶
Constants ¶
View Source
const ( DefaultWorkspace = "default" ApprovedApplyRequirement = "approved" )
View Source
const ( ExtraArgsKey = "extra_args" RunStepName = "run" PlanStepName = "plan" ApplyStepName = "apply" InitStepName = "init" )
View Source
const DefaultAutoPlanEnabled = true
View Source
const DefaultAutoPlanWhenModified = "**/*.tf"
Variables ¶
This section is empty.
Functions ¶
func DefaultAutoPlan ¶
Types ¶
type Autoplan ¶
type Config ¶
type Config struct { Version *int `yaml:"version,omitempty"` Projects []Project `yaml:"projects,omitempty"` Workflows map[string]Workflow `yaml:"workflows,omitempty"` }
Config is the representation for the whole config file at the top level.
type Project ¶
type Project struct { Name *string `yaml:"name,omitempty"` Dir *string `yaml:"dir,omitempty"` Workspace *string `yaml:"workspace,omitempty"` Workflow *string `yaml:"workflow,omitempty"` TerraformVersion *string `yaml:"terraform_version,omitempty"` Autoplan *Autoplan `yaml:"autoplan,omitempty"` ApplyRequirements []string `yaml:"apply_requirements,omitempty"` }
type Step ¶
type Step struct { // Key will be set in case #1 and #3 above to the key. In case #2, there // could be multiple keys (since the element is a map) so we don't set Key. Key *string // Map will be set in case #2 above. Map map[string]map[string][]string // StringVal will be set in case #3 above. StringVal map[string]string }
Step represents a single action/command to perform. In YAML, it can be set as 1. A single string for a built-in command:
- init
- plan
2. A map for a built-in command and extra_args:
- plan: extra_args: [-var-file=staging.tfvars]
3. A map for a custom run command:
- run: my custom command
Here we parse step in the most generic fashion possible. See fields for more details.
func (*Step) UnmarshalYAML ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.