Documentation
¶
Overview ¶
Package statement assembles in-toto v1 statements from a predicate proto and a set of subjects. It is shared by the per-version generator packages.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Build ¶
func Build(predicateType string, subjects []*intoto.ResourceDescriptor, predicate proto.Message) (*intoto.Statement, error)
Build wraps the given predicate in an in-toto v1 statement over the supplied subjects. The predicate proto is converted to a structpb value so it can ride in the statement's Predicate field. A nil predicate yields a statement with an empty predicate object.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.