config

package
v1.0.0-pre1 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2022 License: MIT Imports: 4 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 {
	PRFlow       string        `yaml:"prflow"`
	Environments []Environment `yaml:"environments"`
}

func LoadConfig

func LoadConfig(file io.Reader) (Config, error)

func (Config) HasNextEnvironment

func (c Config) HasNextEnvironment(envName string) bool

func (Config) IsAnyEnvironmentManual added in v1.0.0

func (c Config) IsAnyEnvironmentManual() bool

func (Config) IsEnvironmentAutomated

func (c Config) IsEnvironmentAutomated(name string) (bool, error)

func (Config) NextEnvironment

func (c Config) NextEnvironment(envName string) (Environment, error)

func (Config) PrevEnvironment

func (c Config) PrevEnvironment(envName string) (Environment, error)

type Environment

type Environment struct {
	Name      string `yaml:"name"`
	Automated bool   `yaml:"auto"`
}

Jump to

Keyboard shortcuts

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