Migrate new things to DoCustomRequestV5, fix Comments

This commit is contained in:
Samuel Lorch 2025-03-14 13:29:07 +01:00
parent 7bc894763c
commit 057d2e5f59
3 changed files with 8 additions and 8 deletions

View file

@ -9,7 +9,7 @@ type MetadataKeyType string
const (
MetadataKeyTypeUserKey MetadataKeyType = "user_key"
MetadataKeyTypeSharedKey = "shared_key"
MetadataKeyTypeSharedKey MetadataKeyType = "shared_key"
)
func (s MetadataKeyType) IsValid() bool {
@ -72,7 +72,7 @@ type GetMetadataKeysOptions struct {
// GetMetadataKeys gets all Passbolt GetMetadataKeys
func (c *Client) GetMetadataKeys(ctx context.Context, opts *GetMetadataKeysOptions) ([]MetadataKey, error) {
msg, err := c.DoCustomRequest(ctx, "GET", "/metadata/keys.json", "v2", nil, opts)
msg, err := c.DoCustomRequestV5(ctx, "GET", "/metadata/keys.json", nil, opts)
if err != nil {
return nil, err
}