config

package
v0.27.3 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ParserValidator

type ParserValidator struct{}

ParserValidator parses and validates server-side repo config files and repo-level atlantis.yaml files.

func (*ParserValidator) HasRepoCfg

func (p *ParserValidator) HasRepoCfg(absRepoDir, repoConfigFile string) (bool, error)

HasRepoCfg returns true if there is a repo config (atlantis.yaml) file for the repo at absRepoDir. Returns an error if for some reason it can't read that directory.

func (*ParserValidator) ParseGlobalCfg

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

ParseGlobalCfg returns the parsed and validated global repo config file at configFile. defaultCfg will be merged into the parsed config. If there is no file at configFile it will return an error.

func (*ParserValidator) ParseGlobalCfgJSON

func (p *ParserValidator) ParseGlobalCfgJSON(cfgJSON string, defaultCfg valid.GlobalCfg) (valid.GlobalCfg, error)

ParseGlobalCfgJSON parses a json string cfgJSON into global config.

func (*ParserValidator) ParseRepoCfg

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

ParseRepoCfg returns the parsed and validated atlantis.yaml config for the repo at absRepoDir. If there was no config file, it will return an os.IsNotExist(error).

func (*ParserValidator) ParseRepoCfgData

func (p *ParserValidator) ParseRepoCfgData(repoCfgData []byte, globalCfg valid.GlobalCfg, repoID string, branch string) (valid.RepoCfg, error)

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