Documentation ¶
Overview ¶
Package valid contains the structs representing the atlantis.yaml config after it's been parsed and validated.
Package valid contains definitions of valid yaml configuration after its been parsed and validated.
Index ¶
- Constants
- Variables
- type Autoplan
- type GlobalCfg
- func (g GlobalCfg) DefaultProjCfg(log logging.SimpleLogging, repoID string, repoRelDir string, workspace string) MergedProjectCfg
- func (g GlobalCfg) MergeProjectCfg(log logging.SimpleLogging, repoID string, proj Project, rCfg RepoCfg) MergedProjectCfg
- func (g GlobalCfg) ValidateRepoCfg(rCfg RepoCfg, repoID string) error
- type MergedProjectCfg
- type Project
- type Repo
- type RepoCfg
- type Stage
- type Step
- type Workflow
Constants ¶
const AllowCustomWorkflowsKey = "allow_custom_workflows"
const AllowedOverridesKey = "allowed_overrides"
const ApplyRequirementsKey = "apply_requirements"
const ApprovedApplyReq = "approved"
const DefaultAutoPlanEnabled = true
const DefaultWorkflowName = "default"
const MergeableApplyReq = "mergeable"
const WorkflowKey = "workflow"
Variables ¶
var DefaultApplyStage = Stage{ Steps: []Step{ { StepName: "apply", }, }, }
DefaultApplyStage is the Atlantis default apply stage.
var DefaultPlanStage = Stage{ Steps: []Step{ { StepName: "init", }, { StepName: "plan", }, }, }
DefaultPlanStage is the Atlantis default plan stage.
Functions ¶
This section is empty.
Types ¶
type GlobalCfg ¶ added in v0.7.0
GlobalCfg is the final parsed version of server-side repo config.
func NewGlobalCfg ¶ added in v0.7.0
NewGlobalCfg returns a global config that respects the parameters. allowRepoCfg is true if users want to allow repos full config functionality. mergeableReq is true if users want to set the mergeable apply requirement for all repos. approvedReq is true if users want to set the approved apply requirement for all repos.
func (GlobalCfg) DefaultProjCfg ¶ added in v0.7.0
func (g GlobalCfg) DefaultProjCfg(log logging.SimpleLogging, repoID string, repoRelDir string, workspace string) MergedProjectCfg
DefaultProjCfg returns the default project config for all projects under the repo with id repoID. It is used when there is no repo config.
func (GlobalCfg) MergeProjectCfg ¶ added in v0.7.0
func (g GlobalCfg) MergeProjectCfg(log logging.SimpleLogging, repoID string, proj Project, rCfg RepoCfg) MergedProjectCfg
MergeProjectCfg merges proj and rCfg with the global config to return a final config. It assumes that all configs have been validated.
type MergedProjectCfg ¶ added in v0.7.0
type Project ¶
type Repo ¶ added in v0.7.0
type Repo struct { // ID is the exact match id of this config. // If IDRegex is set then this will be empty. ID string // IDRegex is the regex match for this config. // If ID is set then this will be nil. IDRegex *regexp.Regexp ApplyRequirements []string Workflow *Workflow AllowedOverrides []string AllowCustomWorkflows *bool }
Repo is the final parsed version of server-side repo config.
type RepoCfg ¶ added in v0.7.0
type RepoCfg struct { // Version is the version of the atlantis YAML file. Version int Projects []Project Workflows map[string]Workflow Automerge bool }
RepoCfg is the atlantis.yaml config after it's been parsed and validated.
func (RepoCfg) FindProjectByName ¶ added in v0.7.0
func (RepoCfg) FindProjectsByDir ¶ added in v0.7.0
FindProjectsByDir returns all projects that are in dir.