Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
zzh8829 authored Sep 22, 2021
1 parent 9ae4308 commit cdecb48
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,21 @@
# go-artifacthub
# go-artifacthub

Auto generated using https://github.com/deepmap/oapi-codegen from https://artifacthub.io/docs/api/

## Usage

```
client, err := artifacthub.NewClientWithResponses("https://artifacthub.io/api/v1", artifacthub.WithRequestEditorFn(func(ctx context.Context, req *http.Request) error {
req.Header.Set("X-API-KEY-ID", "KEY_ID")
req.Header.Set("X-API-KEY-SECRET", "KEY_SECRET")
return nil
}))
if err != nil {
return nil, err
}
resp, err := client.GetHelmPackageDetailsWithResponse(ctx, "repo", "package")
if err != nil {
return nil, err
}
```

0 comments on commit cdecb48

Please sign in to comment.