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.
Click to show internal directories.
Click to hide internal directories.