config

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 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 App added in v1.1.0

type App struct {
	FeatureOverwrite     bool              `yaml:"featureOverwrite"`
	FeatureLabelSelector map[string]string `yaml:"featureLabelSelector"`
}

type Config

type Config struct {
	PRFlow        PRFlowType       `yaml:"prflow"`
	StatusTimeout time.Duration    `yaml:"status_timeout_minutes"`
	Environments  []Environment    `yaml:"environments"`
	Groups        map[string]Group `yaml:"groups"`
}

func LoadConfig

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

func (Config) GetFeatureLabelSelector added in v1.1.0

func (c Config) GetFeatureLabelSelector(group, app string) (map[string]string, error)

func (Config) HasFeatureOverwrite added in v1.2.0

func (c Config) HasFeatureOverwrite(group, app string) (bool, error)

func (Config) HasNextEnvironment

func (c Config) HasNextEnvironment(name 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(name string) (Environment, error)

func (Config) PrevEnvironment

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

type Environment

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

type Group added in v1.1.0

type Group struct {
	Applications map[string]App `yaml:"applications"`
}

type PRFlowType added in v1.1.0

type PRFlowType string
const (
	PRFlowTypePerApp PRFlowType = "per-app"
	PRFlowTypePerEnv PRFlowType = "per-env"
)

Jump to

Keyboard shortcuts

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