From 05469301103da7c20de353b26b7fed34849ff818 Mon Sep 17 00:00:00 2001 From: Mahesh N Date: Fri, 8 Nov 2024 14:36:36 +0530 Subject: [PATCH] Add cmp token to api client --- pkg/client/client.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pkg/client/client.go b/pkg/client/client.go index 5239c06..30e15f4 100644 --- a/pkg/client/client.go +++ b/pkg/client/client.go @@ -52,10 +52,12 @@ type APIClientHandler interface { // APIClient manages communication with the GreenLake Private Cloud VMaaS CMP API API v1.0.0 // In most cases there should be only one, shared, APIClient. type APIClient struct { - cfg *Configuration - cmpVersion int - meta interface{} - tokenFunc SetScmClientToken + cfg *Configuration + cmpVersion int + meta interface{} + tokenFunc SetScmClientToken + CMPToken string + TokenExpiry int64 } // defaultTokenFunc will use while defining httpClient. defaultTokenFunc