Skip to content

Commit 97fd0de

Browse files
committed
Fix comments for Go 1.19 go fmt
1 parent f4dbb99 commit 97fd0de

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

api_helper.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ func (h *ibmCloudHelper) getProvider() *oidc.Provider {
176176
return provider
177177
}
178178

179-
/**
179+
/*
180180
Obtain an IAM token by way of an API Key
181181
*/
182182
func (h *ibmCloudHelper) ObtainToken(apiKey string) (string, error) {
@@ -209,7 +209,7 @@ func (h *ibmCloudHelper) ObtainToken(apiKey string) (string, error) {
209209
return result["access_token"].(string), nil
210210
}
211211

212-
/**
212+
/*
213213
Verifies an IBM Cloud IAM token. If successful, it will return a tokenInfo
214214
with relevant items contained in the token.
215215
*/

constants.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const (
66
openIDIssuer = "https://iam.cloud.ibm.com/identity"
77
)
88

9-
//Number of minutes to renew the admin token before expiration
9+
// Number of minutes to renew the admin token before expiration
1010
const (
1111
adminTokenRenewBeforeExpirationMinutes = 5
1212
maxGroupsPerRole = 10

path_creds_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,9 @@ func TestStaticServiceIDDeleted(t *testing.T) {
180180
}
181181

182182
/*
183-
Tests a successful Get (read) of a credential and validates the returned Secret.
184-
The internalData parameter is used to pass in key-values that differ between static and dynamic service ID credentials.
185-
If the ttl and maxTTL values are greater than 0 they will be used to check the Secret's lease.
183+
Tests a successful Get (read) of a credential and validates the returned Secret.
184+
The internalData parameter is used to pass in key-values that differ between static and dynamic service ID credentials.
185+
If the ttl and maxTTL values are greater than 0 they will be used to check the Secret's lease.
186186
*/
187187
func testSuccessfulGet(t *testing.T, b *ibmCloudSecretBackend, s logical.Storage, data map[string]string, internalData map[string]string, ttl, maxTTL int) *logical.Secret {
188188
t.Helper()

path_roles_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ func TestNoConfig(t *testing.T) {
332332
[]string{"no API key was set in the configuration"})
333333
}
334334

335-
//-- Utils --
335+
// -- Utils --
336336
func testRoleCreate(tb testing.TB, b logical.Backend, s logical.Storage, d map[string]interface{}) {
337337
tb.Helper()
338338

@@ -504,12 +504,12 @@ func testRole(tb testing.TB) string {
504504
}
505505

506506
/*
507-
This function configures the mock iamHelper expectations for the test. It then creates a test Backend with
508-
with the mock, and configures it.
507+
This function configures the mock iamHelper expectations for the test. It then creates a test Backend with
508+
with the mock, and configures it.
509509
510-
The minCalls map is used to control the minimum number of times the functions of the iamHelper interface are
511-
expected to be called. The keys are the function names (e.g. "ObtainToken", "VerifyAccessGroupExists", etc).
512-
If unspecified 0 is used.
510+
The minCalls map is used to control the minimum number of times the functions of the iamHelper interface are
511+
expected to be called. The keys are the function names (e.g. "ObtainToken", "VerifyAccessGroupExists", etc).
512+
If unspecified 0 is used.
513513
*/
514514
func getMockedBackend(t *testing.T, ctrl *gomock.Controller, minCalls map[string]int) (*ibmCloudSecretBackend, logical.Storage) {
515515
t.Helper()

0 commit comments

Comments
 (0)