Documentation ¶
Overview ¶
Package ocpaths contains utilities and types for validating a set of OCPaths specified by ocpaths.proto.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClonePublicRepo ¶
ClonePublicRepo clones the openconfig/public repo at the given path.
- branch is the branch to be downloaded (passed to git clone -b). If it is empty then the argument will be omitted.
Note ¶
- If the "public" folder already exists, then no additional downloads will be made.
- A manual deletion of the downloadPath folder is required if no longer used.
func ValidatePaths ¶
func ValidatePaths(ocpathsProto []*ppb.OCPath, publicPath string) (map[OCPathKey]*OCPath, map[OCPathKey]*OCPath, error)
ValidatePaths parses and validates ocpaths, and puts them into a more user-friendly Go structure.
The first set of paths contain only valid path, while the second contain only invalid paths.
Types ¶
Click to show internal directories.
Click to hide internal directories.