From 82384c7b4cbd9db40b082151d08faf0729c82f21 Mon Sep 17 00:00:00 2001 From: Eddy Filip Date: Tue, 31 May 2022 12:47:09 +0200 Subject: [PATCH] Fix function parameter names The naming of the parameters was wrong and confusing for folks that wanted to implement the interface. --- connect/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connect/client.go b/connect/client.go index b01dc23..832520d 100644 --- a/connect/client.go +++ b/connect/client.go @@ -48,7 +48,7 @@ type Client interface { DeleteItem(item *onepassword.Item, vaultQuery string) error DeleteItemByID(itemUUID string, vaultQuery string) error GetFiles(itemQuery string, vaultQuery string) ([]onepassword.File, error) - GetFile(itemQuery string, itemUUID string, vaultQuery string) (*onepassword.File, error) + GetFile(uuid string, itemQuery string, vaultQuery string) (*onepassword.File, error) GetFileContent(file *onepassword.File) ([]byte, error) DownloadFile(file *onepassword.File, targetDirectory string, overwrite bool) (string, error) LoadStructFromItemByUUID(config interface{}, itemUUID string, vaultQuery string) error