config

package
v0.0.0-...-3fc36a1 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: Apache-2.0 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 {
	CDKRoot     string            `yaml:"cdkRoot"`
	Targets     map[string]Target `yaml:"targets"`
	PreCommands []string          `yaml:"preCommands"`
	DeployUsers []string          `yaml:"deployUsers"`
}

Config is cdkbot config. Targets keys are branch name.

func (*Config) IsUserAllowedDeploy

func (c *Config) IsUserAllowedDeploy(userName string) bool

IsUserAllowedDeploy returns whether user is allowed to deploy

type Reader

type Reader struct{}

Reader is config reader

func (*Reader) Read

func (*Reader) Read(path string) (*Config, error)

Read config

type Readerer

type Readerer interface {
	Read(path string) (*Config, error)
}

Readerer is interface of config reader

type Target

type Target struct {
	Contexts map[string]string `yaml:"contexts"`
}

Target is cdkbot target

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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