Skip to content

Latest commit

 

History

History

go

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

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"}}}}}