config

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// environment variables provided by Atlantis
	// resources:
	// - documentation: https://www.runatlantis.io/docs/custom-workflows.html#reference
	// - code: https://github.com/runatlantis/atlantis/blob/2ac77dbe5873cce909d847886ac269c28804bb46/server/events/runtime/run_step_runner.go#L40-L56
	GitHubBaseURL string `envconfig:"GITHUB_BASE_URL"`
	GitHubToken   string `required:"true" envconfig:"GITHUB_TOKEN"`

	RepoOwner string `required:"true" envconfig:"BASE_REPO_OWNER"`
	RepoName  string `required:"true" envconfig:"BASE_REPO_NAME"`
	PRID      string `envconfig:"PULL_NUM"`

	AtlantisProjectName string `required:"true" envconfig:"PROJECT_NAME"`
	Username            string `required:"true" envconfig:"USER_NAME"`

	ConfigPath string `default:"atlantis-org-applyer.yaml" envconfig:"CONFIG_PATH"`
}

Config represents the configuration object.

func New

func New() (Config, error)

New returns configuration.

Jump to

Keyboard shortcuts

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