From fc6ed3a3928fad55390f62519d7f0065de489d9e Mon Sep 17 00:00:00 2001 From: Hayden Roszell Date: Tue, 16 Jul 2024 23:02:03 -0600 Subject: [PATCH] chore(lint): Conform to Go 1.22 Signed-off-by: Hayden Roszell --- backend.go | 4 ++-- client.go | 3 --- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/backend.go b/backend.go index 7e7fbd3..71fe95a 100644 --- a/backend.go +++ b/backend.go @@ -142,7 +142,7 @@ func (sc *storageContext) getClient() (*ejbcaClient, error) { } logger.Trace("Creating new EJBCA authenticator") - authenticator, err := sc.Backend.newAuthenticator(sc.Context, config) + authenticator, err := sc.Backend.newAuthenticator(config) if err != nil { return nil, err } @@ -165,7 +165,7 @@ func (sc *storageContext) getClient() (*ejbcaClient, error) { return sc.Backend.client, nil } -func (b *ejbcaBackend) newAuthenticator(ctx context.Context, config *ejbcaConfig) (ejbca.Authenticator, error) { +func (b *ejbcaBackend) newAuthenticator(config *ejbcaConfig) (ejbca.Authenticator, error) { var err error logger := b.Logger().Named("ejbcaBackend.newAuthenticator") diff --git a/client.go b/client.go index 1c45753..ca2742c 100644 --- a/client.go +++ b/client.go @@ -17,7 +17,6 @@ limitations under the License. package ejbca import ( - "context" "encoding/json" "encoding/pem" "errors" @@ -34,8 +33,6 @@ type ejbcaClient struct { *ejbca.APIClient } -type newEjbcaAuthenticatorFunc func(context.Context) (ejbca.Authenticator, error) - // ejbcaAPIError is an intermediate interface that allows the EJBCA Vault PKI Engine to return // the EJBCA API error code as the Vault API error code. type ejbcaAPIError struct {