yaml

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2018 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) HasConfigFile

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

func (*ParserValidator) ReadConfig

func (p *ParserValidator) ReadConfig(repoDir string) (valid.Config, error)

ReadConfig 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 HasConfigFile.

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