Skip to content

Commit 9239f46

Browse files
committed
chore: update readme
Signed-off-by: Alano Terblanche <18033717+Benehiko@users.noreply.github.com>
1 parent 1b233c7 commit 9239f46

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
# Secrets Engine SDK
22

3-
[![build](https://github.com/docker/secrets-engine/actions/workflows/build.yml/badge.svg?branch=main)](https://github.com/docker/secrets-engine/actions/workflows/build.yml)
43
[![unit tests](https://github.com/docker/secrets-engine/actions/workflows/unittests.yml/badge.svg?branch=main)](https://github.com/docker/secrets-engine/actions/workflows/unittests.yml)
54
[![lint](https://github.com/docker/secrets-engine/actions/workflows/lint.yml/badge.svg?branch=main)](https://github.com/docker/secrets-engine/actions/workflows/lint.yml)
6-
[![License](https://img.shields.io/badge/license-MIT-blue)](https://github.com/docker/secrets-engine/blob/main/LICENSE)
5+
[![License](https://img.shields.io/badge/license-Apache%202.0-purple)](https://github.com/docker/secrets-engine/blob/main/LICENSE)
76

87
## Quickstart
98

@@ -39,9 +38,9 @@ if err != nil {
3938
}
4039

4140
// Fetch a secret from the engine
42-
resp, err := c.GetSecret(t.Context(), secrets.Request{ID: "my-secret"})
41+
resp, err := c.GetSecrets(t.Context(), client.MustParsePattern("my-secret"))
4342
if err != nil {
44-
log.Fatalf("failed fetching secret: %v", err)
43+
log.Fatalf("failed fetching secrets: %v", err)
4544
}
4645
fmt.Println(resp.Value)
4746
```
@@ -129,4 +128,3 @@ $ curl --unix-socket ~/Library/Caches/docker-secrets-engine/engine.sock \
129128
-H "Content-Type: application/json" -d '{"pattern": "foo"}'
130129
{"id":"foo","value":"bar","provider":"docker-pass","version":"","error":"","createdAt":"0001-01-01T00:00:00Z","resolvedAt":"2025-08-12T08:25:06.166714Z","expiresAt":"0001-01-01T00:00:00Z"}
131130
```
132-

0 commit comments

Comments
 (0)