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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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