Skip to content

Commit

Permalink
add example about utility method for making a client
Browse files Browse the repository at this point in the history
Signed-off-by: Ramon Petgrave <ramon.petgrave64@gmail.com>
  • Loading branch information
ramonpetgrave64 committed May 21, 2024
1 parent 56b68af commit 97ea5f8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/API-Library.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ func doVerify() (*apiUtils.TrustedBuilderID, error) {
// opts := sigstoreTUF.DefaultOptions().WithForceCache()
// example: supply your own root
// opts := sigstoreTUF.DefaultOptions().WithRoot([]byte(`{"signed":{"_type":"root","spec_version":"1.0","version":9,"expires":"2024-09-12T06:53:10Z","keys":{"1e1d65ce98b10 ...`)).WithForceCache()
// example: use our uility method for making a client
// client, err := apiUtils.NewSigstoreTUFClient()
opts := sigstoreTUF.DefaultOptions()
client, err := sigstoreTUF.New(opts)
if err != nil {
Expand Down

0 comments on commit 97ea5f8

Please sign in to comment.