Skip to content

Commit

Permalink
comments updated
Browse files Browse the repository at this point in the history
Signed-off-by: Vivek Singh <[email protected]>
  • Loading branch information
Vivek Singh committed Feb 8, 2021
1 parent ea48e37 commit 0e959a9
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions components/infra-proxy-service/server/clients.go
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 0e959a9

Please sign in to comment.