yaml

package
v0.7.0-alpha1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 25, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const AtlantisYAMLFilename = "atlantis.yaml"

AtlantisYAMLFilename is the name of the config file for each repo.

Variables

This section is empty.

Functions

This section is empty.

Types

type ParserValidator

type ParserValidator struct{}

func (*ParserValidator) HasRepoCfg added in v0.7.0

func (p *ParserValidator) HasRepoCfg(repoDir string) (bool, error)

func (*ParserValidator) ParseGlobalCfg added in v0.7.0

func (p *ParserValidator) ParseGlobalCfg(configFile string, defaultCfg valid.GlobalCfg) (valid.GlobalCfg, error)

func (*ParserValidator) ParseRepoCfg added in v0.7.0

func (p *ParserValidator) ParseRepoCfg(repoDir string, globalCfg valid.GlobalCfg, repoID string) (valid.RepoCfg, error)

ParseRepoCfg returns the parsed and validated atlantis.yaml config for repoDir. If there was no config file, then this can be detected by checking the type of error: os.IsNotExist(error) but it's instead preferred to check with HasRepoCfg.

Directories

Path Synopsis
Package raw contains the golang representations of the YAML elements supported in atlantis.yaml.
Package raw contains the golang representations of the YAML elements supported in atlantis.yaml.
Package valid contains the structs representing the atlantis.yaml config after it's been parsed and validated.
Package valid contains the structs representing the atlantis.yaml config after it's been parsed and validated.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL