This package contains Golang bindings for the in-toto Attestation Framework spec. Its contents are autogenerated using protobuf definitions.
For more information, see the in-toto Attestation Framework.
Install via go get github.com/in-toto/attestation
.
The Go bindings for the attestations layers and predicates are provided in
the github.com/in-toto/attestation/go/v1
and
github.com/in-toto/attestation/go/predicates
packages, respectively.
See the testing docs for info and instructions for testing this implementation.
examples/go/main.go provides an example of how these protos can be used.
To try it:
$ make go_run
...
Read statement with predicateType https://example.com/unknownPred2
Predicate fields:{key:"foo" value:{struct_value:{fields:{key:"bar" value:{string_value:"baz"}}}}}