From 0e959a9215c62bdb55fb9f22b47015910aa5f522 Mon Sep 17 00:00:00 2001 From: Vivek Singh Date: Mon, 8 Feb 2021 10:22:32 +0530 Subject: [PATCH] comments updated Signed-off-by: Vivek Singh --- components/infra-proxy-service/server/clients.go | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/components/infra-proxy-service/server/clients.go b/components/infra-proxy-service/server/clients.go index 448dece6766d..154ac9fa2089 100644 --- a/components/infra-proxy-service/server/clients.go +++ b/components/infra-proxy-service/server/clients.go @@ -1,15 +1,15 @@ package server import ( - "context" - "fmt" - "sort" + "context" + "fmt" + "sort" - chef "github.com/go-chef/chef" + chef "github.com/go-chef/chef" - "github.com/chef/automate/api/interservice/infra_proxy/request" - "github.com/chef/automate/api/interservice/infra_proxy/response" - "github.com/chef/automate/components/infra-proxy-service/validation" + "github.com/chef/automate/api/interservice/infra_proxy/request" + "github.com/chef/automate/api/interservice/infra_proxy/response" + "github.com/chef/automate/components/infra-proxy-service/validation" ) // AccessKeyReq struct to add key. @@ -144,6 +144,7 @@ func (s *Server) DeleteClient(ctx context.Context, req *request.Client) (*respon } // ResetClientKey resets the client key +// Deletes the associated key pair and generates new key pair again, and then attached it to the client. func (s *Server) ResetClientKey(ctx context.Context, req *request.ClientKey) (*response.ClientKey, error) { err := validation.New(validation.Options{ Target: "client",