yaml

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2016 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Axis added in v0.4.2

type Axis map[string]string

Axis represents a single permutation of entries from the build matrix.

func ParseMatrix added in v0.4.2

func ParseMatrix(data []byte) ([]Axis, error)

ParseMatrix parses the Yaml matrix definition.

func ParseMatrixString added in v0.4.2

func ParseMatrixString(data string) ([]Axis, error)

ParseMatrixString parses the Yaml string matrix definition.

func (Axis) String added in v0.4.2

func (a Axis) String() string

String returns a string representation of an Axis as a comma-separated list of environment variables.

type Branch added in v0.4.2

type Branch struct {
	Include []string `yaml:"include"`
	Exclude []string `yaml:"exclude"`
}

func ParseBranch added in v0.4.2

func ParseBranch(in []byte) *Branch

ParseBranch parses the branch section of the Yaml document.

func ParseBranchString added in v0.4.2

func ParseBranchString(in string) *Branch

ParseBranchString parses the branch section of the Yaml document.

func (*Branch) Matches added in v0.4.2

func (b *Branch) Matches(branch string) bool

Matches returns true if the branch matches the include patterns and does not match any of the exclude patterns.

type Matrix added in v0.4.2

type Matrix map[string][]string

Matrix represents the build matrix.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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