Documentation ¶
Index ¶
- Variables
- func FileExists(filename string) (bool, error)
- func MarshalJSON(filename string, pb proto.Message) error
- func UnmarshalFile(filename string, pb proto.Message) error
- func UnmarshalJSON(filename string, pb proto.Message) error
- func UnmarshalJsonnet(filename string, pb proto.Message) error
- func UnmarshalYAML(filename string, pb proto.Message) error
- func VersionLower(i string, j string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ExceptionRegexpsRaw = map[string]versionComparator{ `([0-9]+)\.v?([a-z0-9]+)`: func(i, j []string) (bool, error) { xi, err := strconv.Atoi(i[1]) if err != nil { return false, errors.Errorf("malformed version: %s in %v is not an integer", i[1], i) } xj, err := strconv.Atoi(j[1]) if err != nil { return false, errors.Errorf("malformed version: %s in %v is not an integer", i[1], i) } return xi < xj, nil }, }
ExceptionRegexpsRaw are the raw regular expressions that we know are exceptions to standard version formats.
Functions ¶
func FileExists ¶
FileExists will test if a file exists
func MarshalJSON ¶
MarshalJSON marshals a protocol buffer into a JSON file.
func UnmarshalFile ¶
UnmarshalFile unmarshals a file into a protocol buffer
func UnmarshalJSON ¶
UnmarshalJSON unmarshals a JSON file into a protocol buffer
func UnmarshalJsonnet ¶
UnmarshalJsonnet unmarshals a JSON file into a protocol buffer
func UnmarshalYAML ¶
UnmarshalYAML unmarshals a YAML file into a protocol buffer
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.