Skip to content

Commit cbf8b99

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

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

README.md

Lines changed: 2 additions & 4 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-red)](https://github.com/docker/secrets-engine/blob/main/LICENSE)
76

87
## Quickstart
98

@@ -39,7 +38,7 @@ 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 {
4443
log.Fatalf("failed fetching secret: %v", err)
4544
}
@@ -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)