recipe_cfg

package
v0.0.0-...-03d6fc4 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2019 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RECIPE_CFG_PATH       = "infra/config/recipes.cfg"
	SUPPORTED_API_VERSION = 2
)

Variables

This section is empty.

Functions

This section is empty.

Types

type RecipeDep

type RecipeDep struct {
	Branch   string `json:"branch"`
	Revision string `json:"revision"`
	Url      string `json:"url"`
}

RecipeDep represents a single recipe dependency.

type RecipesCfg

type RecipesCfg struct {
	ApiVersion  int                   `json:"api_version"`
	Deps        map[string]*RecipeDep `json:"deps"`
	ProjectId   string                `json:"project_id"`
	RecipesPath string                `json:"recipes_path"`
}

RecipesCfg represents the structure of the recipes.cfg file.

func ParseCfg

func ParseCfg(cfg string) (*RecipesCfg, error)

Parse the given recipes.cfg file and return it.

Jump to

Keyboard shortcuts

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