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: ? 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 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