Golang implementation of in-toto attestations
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.
Usage
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.
Testing
See the testing docs for info and instructions for testing this implementation.
Run the Go example
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"}}}}}