Documentation ¶
Overview ¶
Package pb contains various utils and helps to work with our protobuf messages. It contains various mappers that map our convention to other public standards.
Index ¶
- func FromJson[T proto.Message](reader io.Reader, obj T) error
- func FromYaml[T proto.Message](reader io.Reader, obj T) error
- func NewPurlPackageVersion(purl string) (*purlPackageVersionHelper, error)
- func ToJson[T proto.Message](obj T, indent string) ([]byte, error)
- func ToYaml[T proto.Message](writer io.Writer, obj T) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromYaml ¶
Deserialize a protocol buffers message from YAML. Internally it converts the YAML to JSON and then unmarshals the JSON.
func NewPurlPackageVersion ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.