Skip to content

Commit

Permalink
Add Secure Compute Client (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
rosasck committed Nov 2, 2022
1 parent 7b34da8 commit 84f9fcd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ import (
"github.com/tozny/e3db-clients-go/identityClient"
"github.com/tozny/e3db-clients-go/pdsClient"
"github.com/tozny/e3db-clients-go/searchExecutorClient"
"github.com/tozny/e3db-clients-go/secureComputeClient"
"github.com/tozny/e3db-clients-go/storageClient"

"github.com/google/uuid"
Expand Down Expand Up @@ -683,6 +684,7 @@ type ToznySDKV3 struct {
*storageClient.StorageClient
*pdsClient.E3dbPDSClient
*accountClient.E3dbAccountClientV2
*secureComputeClient.E3dbSecureComputeClient
// Account public authentication material for creating and deriving account credentials
AccountUsername string
// Account private authentication material for creating and deriving account credentials
Expand Down Expand Up @@ -726,13 +728,15 @@ func NewToznySDKV3(config ToznySDKConfig) (*ToznySDKV3, error) {
identityClient := identityClient.New(config.ClientConfig)
storageClient := storageClient.New(config.ClientConfig)
pdsClient := pdsClient.New(config.ClientConfig)
secureComputeClient := secureComputeClient.New(config.ClientConfig)

return &ToznySDKV3{
E3dbAccountClient: &accountServiceClient,
E3dbAccountClientV2: &accountServiceV2Client,
E3dbIdentityClient: &identityClient,
StorageClient: &storageClient,
E3dbPDSClient: &pdsClient,
E3dbSecureComputeClient: &secureComputeClient,
AccountUsername: config.AccountUsername,
AccountPassword: config.AccountPassword,
APIEndpoint: config.APIEndpoint,
Expand Down

0 comments on commit 84f9fcd

Please sign in to comment.