Module utils

Source
Expand description

Utils for dealing with protobufs structs

Functionsยง

optional_string
os_and_arch
Returns the current running OS and architecture
proto_struct_to_hashmap
Converts a prost struct to a hash map of key -> JSON
proto_struct_to_json
Converts a prost struct to JSON value
proto_struct_to_map
Converts a prost struct to a map of key -> JSON
proto_value_to_json
Converts a prost value to JSON value
proto_value_to_string
Convert a proto struct into a String
to_proto_struct
Converts a map of key -> JSON to a prost Struct
to_proto_value
Converts a JSON value to a prost struct
versions_compatible
Check if the versions are compatible (differ in patch version only)