mirror of
https://github.com/passbolt/go-passbolt.git
synced 2025-09-13 14:29:09 +00:00
Migrate new things to DoCustomRequestV5, fix Comments
This commit is contained in:
parent
7bc894763c
commit
057d2e5f59
3 changed files with 8 additions and 8 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue