config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Build

type Build struct {
	Name    string   `yaml:",omitempty"`
	Env     []string `yaml:",omitempty"`
	Dir     string   `yaml:",omitempty"`
	Command string   `yaml:",omitempty"`
	Skip    bool     `yaml:",omitempty"`
}

Build contains all build configuration section

type Config

type Config struct {
	ProjectName string   `yaml:"project_name,omitempty"`
	Version     string   `yaml:",omitempty"`
	Env         []string `yaml:",omitempty"`
	Builds      []Build  `yaml:",omitempty"`
	Dockers     []Docker `yaml:",omitempty"`
	Pushes      []Push   `yaml:",omitempty"`
	Dist        string   `yaml:",omitempty"`
}

Config contains the project configuration

func Load

func Load(file string) (config Config, err error)

Load config file.

func LoadReader

func LoadReader(fd io.Reader) (config Config, err error)

LoadReader config via io.Reader.

type Docker

type Docker struct {
	Dockerfile         string   `yaml:",omitempty"`
	ImageTemplates     []string `yaml:"image_templates,omitempty"`
	BuildFlagTemplates []string `yaml:"build_flag_templates,omitempty"`
	Files              []File   `yaml:",omitempty"`
	SkipPush           bool     `yaml:"skip_push,omitempty"`
}

Docker contains all informarmation for build docker images

type File

type File struct {
	Glob string `yaml:",omitempty"`
}

File struct

type Push

type Push struct {
	Env      []string `yaml:",omitempty"`
	Provider string   `yaml:",omitempty"`
	Name     string   `yaml:",omitempty"`
}

Push constais all configuration for push images

Jump to

Keyboard shortcuts

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