config

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2019 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CIConfig

type CIConfig struct {
	Buildkite *ci.Buildkite `yaml:"buildkite"`
	Gitlab    *ci.Gitlab    `yaml:"gitlab"`
}

type Config

type Config struct {
	VCS          *VCSConfig `yaml:"vcs"`
	CI           *CIConfig  `yaml:"ci"`
	RegistryUrl  string     `yaml:"registry" env:"REGISTRY"`
	Organisation string     `yaml:"organisation"`
	CurrentCI    ci.CI
	CurrentVCS   vcs.VCS
}

func InitEmptyConfig

func InitEmptyConfig() *Config

func Load

func Load(dir string, out io.Writer) (*Config, error)

func (*Config) Configure

func (c *Config) Configure() error

func (*Config) Scaffold

func (c *Config) Scaffold(dir, name string, stack stack.Stack, out io.Writer) int

func (*Config) Validate

func (c *Config) Validate(name string) error

func (*Config) ValidateConfig

func (c *Config) ValidateConfig() error

type VCSConfig

type VCSConfig struct {
	Github *vcs.Github `yaml:"github"`
	Gitlab *vcs.Gitlab `yaml:"gitlab"`
}

Directories

Path Synopsis
vcs
mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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