Documentation ¶
Overview ¶
Package internal gathers helpers used by code in ./core/... but not visible outside core.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MetadataAsAny ¶
func MetadataAsAny(meta *pb.MapperMetadata) (*any.Any, error)
MetadataAsAny marshals the supplied MapperMetadata proto into an 'any', which can be supplied as metadata to the Trillian map when setting leaves.
func MetadataFromMapRoot ¶
func MetadataFromMapRoot(r *trillian.SignedMapRoot) (*pb.MapperMetadata, error)
MetadataFromMapRoot converts the google.protobuf.Any metadata field from the Trillian SignedMapRoot into a pb.MapperMetadata, or returns an error if the field is absent or of the wrong type.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.