go/

directory
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 8, 2024 License: Apache-2.0

README

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

Directories

Path Synopsis
predicates
provenance/v1
Validator APIs for SLSA Provenance v1 protos.
Validator APIs for SLSA Provenance v1 protos.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL