From a37ef2ebcde2f6c9fc8586b7e9710a310f4dd7d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Duffeck?= Date: Fri, 1 Jul 2022 10:24:37 +0200 Subject: [PATCH] Fix hound issues --- internal/http/services/owncloud/ocdav/ocdav.go | 6 +++--- pkg/micro/ocdav/option.go | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/internal/http/services/owncloud/ocdav/ocdav.go b/internal/http/services/owncloud/ocdav/ocdav.go index 2edcf4f5d5f..e7412faa43f 100644 --- a/internal/http/services/owncloud/ocdav/ocdav.go +++ b/internal/http/services/owncloud/ocdav/ocdav.go @@ -115,7 +115,7 @@ type Config struct { ProductName string `mapstructure:"product_name"` ProductVersion string `mapstructure:"product_version"` - MachineAuthApiKey string `mapstructure:"machine_auth_apikey"` + MachineAuthAPIKey string `mapstructure:"machine_auth_apikey"` } func (c *Config) init() { @@ -418,7 +418,7 @@ func (s *svc) sspReferenceIsChildOf(ctx context.Context, client gatewayv1beta1.G if err != nil { return false, err } - parentAuthCtx, err := authContextForUser(client, parentStatRes.Info.Owner, s.c.MachineAuthApiKey) + parentAuthCtx, err := authContextForUser(client, parentStatRes.Info.Owner, s.c.MachineAuthAPIKey) if err != nil { return false, err } @@ -441,7 +441,7 @@ func (s *svc) sspReferenceIsChildOf(ctx context.Context, client gatewayv1beta1.G return false, err } } - childAuthCtx, err := authContextForUser(client, childStatRes.Info.Owner, s.c.MachineAuthApiKey) + childAuthCtx, err := authContextForUser(client, childStatRes.Info.Owner, s.c.MachineAuthAPIKey) if err != nil { return false, err } diff --git a/pkg/micro/ocdav/option.go b/pkg/micro/ocdav/option.go index baf834088a3..2c94830440e 100644 --- a/pkg/micro/ocdav/option.go +++ b/pkg/micro/ocdav/option.go @@ -84,10 +84,10 @@ func JWTSecret(s string) Option { } } -// MachineAuthApiKey provides a function to set the machine auth api key option. -func MachineAuthApiKey(s string) Option { +// MachineAuthAPIKey provides a function to set the machine auth api key option. +func MachineAuthAPIKey(s string) Option { return func(o *Options) { - o.config.MachineAuthApiKey = s + o.config.MachineAuthAPIKey = s } }