From 8784bfc5ba9a4077569753c977e9a5d8f269b98c Mon Sep 17 00:00:00 2001 From: Sebastian Gomez Date: Thu, 13 Jan 2022 12:13:33 -0500 Subject: [PATCH] Fixed lint issues --- pkg/provider/azure/keyvault/fake/fake.go | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/pkg/provider/azure/keyvault/fake/fake.go b/pkg/provider/azure/keyvault/fake/fake.go index 8862bfc5e..1e7e09c6d 100644 --- a/pkg/provider/azure/keyvault/fake/fake.go +++ b/pkg/provider/azure/keyvault/fake/fake.go @@ -26,15 +26,15 @@ type AzureMockClient struct { getCertificate func(ctx context.Context, vaultBaseURL string, certificateName string, certificateVersion string) (result keyvault.CertificateBundle, err error) } -func (mc *AzureMockClient) GetSecret(ctx context.Context, vaultBaseURL string, secretName string, secretVersion string) (result keyvault.SecretBundle, err error) { +func (mc *AzureMockClient) GetSecret(ctx context.Context, vaultBaseURL, secretName, secretVersion string) (result keyvault.SecretBundle, err error) { return mc.getSecret(ctx, vaultBaseURL, secretName, secretVersion) } -func (mc *AzureMockClient) GetCertificate(ctx context.Context, vaultBaseURL string, certificateName string, certificateVersion string) (result keyvault.CertificateBundle, err error) { +func (mc *AzureMockClient) GetCertificate(ctx context.Context, vaultBaseURL, certificateName, certificateVersion string) (result keyvault.CertificateBundle, err error) { return mc.getCertificate(ctx, vaultBaseURL, certificateName, certificateVersion) } -func (mc *AzureMockClient) GetKey(ctx context.Context, vaultBaseURL string, keyName string, keyVersion string) (result keyvault.KeyBundle, err error) { +func (mc *AzureMockClient) GetKey(ctx context.Context, vaultBaseURL, keyName, keyVersion string) (result keyvault.KeyBundle, err error) { return mc.getKey(ctx, vaultBaseURL, keyName, keyVersion) } @@ -42,25 +42,25 @@ func (mc *AzureMockClient) GetSecretsComplete(ctx context.Context, vaultBaseURL return mc.getSecretsComplete(ctx, vaultBaseURL, maxresults) } -func (mc *AzureMockClient) WithValue(serviceUrl string, secretName string, secretVersion string, apiOutput keyvault.SecretBundle, err error) { +func (mc *AzureMockClient) WithValue(serviceURL, secretName, secretVersion string, apiOutput keyvault.SecretBundle, err error) { if mc != nil { - mc.getSecret = func(ctx context.Context, serviceUrl string, secretName string, secretVersion string) (result keyvault.SecretBundle, retErr error) { + mc.getSecret = func(ctx context.Context, serviceURL, secretName, secretVersion string) (result keyvault.SecretBundle, retErr error) { return apiOutput, err } } } -func (mc *AzureMockClient) WithKey(serviceUrl string, secretName string, secretVersion string, apiOutput keyvault.KeyBundle, err error) { +func (mc *AzureMockClient) WithKey(serviceURL, secretName, secretVersion string, apiOutput keyvault.KeyBundle, err error) { if mc != nil { - mc.getKey = func(ctx context.Context, vaultBaseURL string, keyName string, keyVersion string) (result keyvault.KeyBundle, retErr error) { + mc.getKey = func(ctx context.Context, vaultBaseURL, keyName, keyVersion string) (result keyvault.KeyBundle, retErr error) { return apiOutput, err } } } -func (mc *AzureMockClient) WithCertificate(serviceUrl string, secretName string, secretVersion string, apiOutput keyvault.CertificateBundle, err error) { +func (mc *AzureMockClient) WithCertificate(serviceURL, secretName, secretVersion string, apiOutput keyvault.CertificateBundle, err error) { if mc != nil { - mc.getCertificate = func(ctx context.Context, vaultBaseURL string, keyName string, keyVersion string) (result keyvault.CertificateBundle, retErr error) { + mc.getCertificate = func(ctx context.Context, vaultBaseURL, keyName, keyVersion string) (result keyvault.CertificateBundle, retErr error) { return apiOutput, err } }