Skip to content

Commit

Permalink
Add AdminClient using adminv1grpc to client
Browse files Browse the repository at this point in the history
  • Loading branch information
lammel committed Aug 14, 2024
1 parent 2cc907e commit 7bc82aa
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions pkg/gpcore/client/client.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
package client

import (
"crypto/tls"
"fmt"

"buf.build/gen/go/gportal/gpcore/grpc/go/gpcore/api/admin/v1/adminv1grpc"
"buf.build/gen/go/gportal/gpcore/grpc/go/gpcore/api/auth/v1/authv1grpc"
"buf.build/gen/go/gportal/gpcore/grpc/go/gpcore/api/cloud/v1/cloudv1grpc"
"buf.build/gen/go/gportal/gpcore/grpc/go/gpcore/api/metadata/v1/metadatav1grpc"
"buf.build/gen/go/gportal/gpcore/grpc/go/gpcore/api/network/v1/networkv1grpc"
"buf.build/gen/go/gportal/gpcore/grpc/go/gpcore/api/payment/v1/paymentv1grpc"
"crypto/tls"
"fmt"
"google.golang.org/grpc/credentials"

"google.golang.org/grpc"
Expand All @@ -21,6 +23,11 @@ type Client struct {

type EndpointOverrideOption string

// AdminClient Returns the AdminServiceClient
func (c *Client) AdminClient() adminv1grpc.AdminServiceClient {
return adminv1grpc.NewAdminServiceClient(c.grpcClient)
}

// CloudClient Returns the CloudServiceClient
func (c *Client) CloudClient() cloudv1grpc.CloudServiceClient {
return cloudv1grpc.NewCloudServiceClient(c.grpcClient)
Expand Down

0 comments on commit 7bc82aa

Please sign in to comment.