diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2024-06-24 10:43:11 +0200 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2024-06-24 10:43:11 +0200 |
commit | df79d110285f1956f63206e7bc1f29e49dd6f088 (patch) | |
tree | 1bb16b3e0b61c0fbc9c959fa241852128599ce06 /garage.go | |
parent | e940996f0f8cb8c6adb22c7d8780e364d65ecea2 (diff) | |
download | guichet-df79d110285f1956f63206e7bc1f29e49dd6f088.tar.gz guichet-df79d110285f1956f63206e7bc1f29e49dd6f088.zip |
implement flush for dedicated key, allow delete & key rotation
Diffstat (limited to 'garage.go')
-rw-r--r-- | garage.go | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -55,6 +55,17 @@ func grgSearchKey(name string) (*garage.KeyInfo, error) { return resp, nil } +func grgDelKey(accessKey string) error { + client, ctx := gadmin() + + _, err := client.KeyApi.DeleteKey(ctx).Id(accessKey).Execute() + if err != nil { + fmt.Printf("%+v\n", err) + return err + } + return nil +} + func grgCreateBucket(bucket string) (*garage.BucketInfo, error) { client, ctx := gadmin() |