Skip to content

Commit

Permalink
Update client interface
Browse files Browse the repository at this point in the history
  • Loading branch information
edif2008 committed May 11, 2022
1 parent 050b9c4 commit b3c4cb2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion connect/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ var (
type Client interface {
GetVaults() ([]onepassword.Vault, error)
GetVault(uuid string) (*onepassword.Vault, error)
GetVaultByUUID(uuid string) (*onepassword.Vault, error)
GetVaultsByTitle(uuid string) ([]onepassword.Vault, error)
GetItem(uuid string, vaultUUID string) (*onepassword.Item, error)
GetItems(vaultUUID string) ([]onepassword.Item, error)
Expand Down Expand Up @@ -155,7 +156,7 @@ func (rs *restClient) GetVaultByUUID(uuid string) (*onepassword.Vault, error) {
return nil, vaultUUIDError
}

span := rs.tracer.StartSpan("GetVault")
span := rs.tracer.StartSpan("GetVaultByUUID")
defer span.Finish()

vaultURL := fmt.Sprintf("/v1/vaults/%s", uuid)
Expand Down

0 comments on commit b3c4cb2

Please sign in to comment.