diff options
author | Manjunath Ranganathaiah <manjunath.ranganathaiah@intel.com> | 2020-06-02 21:05:42 +0000 |
---|---|---|
committer | Manjunath Ranganathaiah <manjunath.ranganathaiah@intel.com> | 2020-06-02 21:52:26 +0000 |
commit | 398cee00458dc8f9ddf0b9dd0387bfc01094f017 (patch) | |
tree | 05f9baae5af7088107122e10da80a71bcafc291f /src/rsync/pkg/grpc | |
parent | c257a136355a794f5bf778f670c041e8958c3608 (diff) |
Add UninstallApp call to grpc
Issue-ID: MULTICLOUD-1005
Signed-off-by: Manjunath Ranganathaiah <manjunath.ranganathaiah@intel.com>
Change-Id: I90c8ff0d548690ea19d325612d1bcd3e5049dc36
Diffstat (limited to 'src/rsync/pkg/grpc')
-rw-r--r-- | src/rsync/pkg/grpc/installappserver/installappserver.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/rsync/pkg/grpc/installappserver/installappserver.go b/src/rsync/pkg/grpc/installappserver/installappserver.go index 8a293cd6..28b4a585 100644 --- a/src/rsync/pkg/grpc/installappserver/installappserver.go +++ b/src/rsync/pkg/grpc/installappserver/installappserver.go @@ -38,6 +38,17 @@ func (cs *installappServer) InstallApp(ctx context.Context, req *installapp.Inst return &installapp.InstallAppResponse{AppContextInstalled: true}, nil } +func (cs *installappServer) UninstallApp(ctx context.Context, req *installapp.UninstallAppRequest) (*installapp.UninstallAppResponse, error) { + uninstallAppReq, _ := json.Marshal(req) + log.Println("GRPC Server received uninstallAppRequest: ", string(uninstallAppReq)) + + // Try terminating the comp app here + // + // + + return &installapp.UninstallAppResponse{AppContextUninstalled: true}, nil +} + // NewInstallAppServer exported func NewInstallAppServer() *installappServer { s := &installappServer{} |