@@ -27,7 +27,9 @@ func (s SSHGrantEndpoint) DoHTTPRequest(method string, req interface{}, resp int
2727}
2828
2929// DoHTTPRequestWithAuth performs an http request to the ssh grant endpoint
30- func (s SSHGrantEndpoint ) DoHTTPRequestWithAuth (method string , req interface {}, resp interface {}, mytoken string ) error {
30+ func (s SSHGrantEndpoint ) DoHTTPRequestWithAuth (
31+ method string , req interface {}, resp interface {}, mytoken string ,
32+ ) error {
3133 return doHTTPRequestWithAuth (method , s .endpoint , req , resp , mytoken )
3234}
3335
@@ -86,7 +88,8 @@ func (s SSHGrantEndpoint) Remove(mytoken *string, keyFP, publicKey string) error
8688// If the used mytoken changes (due to token rotation), the new mytoken is returned in the non-nil *api.MytokenResponse
8789func (s SSHGrantEndpoint ) APIAdd (
8890 mytoken , sshKey , name string , restrictions api.Restrictions , capabilities , subtokenCapabilities api.Capabilities ,
89- callbacks PollingCallbacks ) (response api.SSHKeyAddFinalResponse , tokenUpdate * api.MytokenResponse , err error ) {
91+ callbacks PollingCallbacks ,
92+ ) (response api.SSHKeyAddFinalResponse , tokenUpdate * api.MytokenResponse , err error ) {
9093 initRes , err := s .APIInitAddSSHKey (mytoken , sshKey , name , restrictions , capabilities , subtokenCapabilities )
9194 tokenUpdate = initRes .TokenUpdate
9295 if err != nil {
@@ -113,8 +116,10 @@ func (s SSHGrantEndpoint) Add(
113116 mytoken * string , sshKey , name string , restrictions api.Restrictions , capabilities ,
114117 subtokenCapabilities api.Capabilities , callbacks PollingCallbacks ,
115118) (api.SSHKeyAddFinalResponse , error ) {
116- resp , tokenUpdate , err := s .APIAdd (* mytoken , sshKey , name , restrictions , capabilities , subtokenCapabilities ,
117- callbacks )
119+ resp , tokenUpdate , err := s .APIAdd (
120+ * mytoken , sshKey , name , restrictions , capabilities , subtokenCapabilities ,
121+ callbacks ,
122+ )
118123 if tokenUpdate != nil {
119124 * mytoken = tokenUpdate .Mytoken
120125 }
0 commit comments