Skip to content

Commit

Permalink
DataProxy Service Definition (flyteorg#261)
Browse files Browse the repository at this point in the history
  • Loading branch information
EngHabu authored Mar 23, 2022
1 parent 3ea75ea commit 8575d55
Show file tree
Hide file tree
Showing 20 changed files with 5,919 additions and 9,311 deletions.
6 changes: 6 additions & 0 deletions clients/go/admin/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ type Clientset struct {
authMetadataServiceClient service.AuthMetadataServiceClient
healthServiceClient grpc_health_v1.HealthClient
identityServiceClient service.IdentityServiceClient
dataProxyServiceClient service.DataProxyClient
authOpt grpc.DialOption
}

Expand All @@ -55,6 +56,10 @@ func (c Clientset) IdentityClient() service.IdentityServiceClient {
return c.identityServiceClient
}

func (c Clientset) DataProxyClient() service.DataProxyClient {
return c.dataProxyServiceClient
}

func NewAdminClient(ctx context.Context, conn *grpc.ClientConn) service.AdminServiceClient {
logger.Infof(ctx, "Initialized Admin client")
return service.NewAdminServiceClient(conn)
Expand Down Expand Up @@ -197,6 +202,7 @@ func initializeClients(ctx context.Context, cfg *Config, tokenCache pkce.TokenCa
cs.authMetadataServiceClient = service.NewAuthMetadataServiceClient(adminConnection)
cs.identityServiceClient = service.NewIdentityServiceClient(adminConnection)
cs.healthServiceClient = grpc_health_v1.NewHealthClient(adminConnection)
cs.dataProxyServiceClient = service.NewDataProxyClient(adminConnection)
if authOpt != nil {
cs.authOpt = authOpt
}
Expand Down
85 changes: 85 additions & 0 deletions gen/pb-cpp/flyteidl/service/dataproxy.grpc.pb.cc

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 8575d55

Please sign in to comment.