Skip to content

Commit

Permalink
Fix hound issues
Browse files Browse the repository at this point in the history
  • Loading branch information
aduffeck committed Jul 1, 2022
1 parent 1a4769d commit a37ef2e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions internal/http/services/owncloud/ocdav/ocdav.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -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
}
Expand All @@ -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
}
Expand Down
6 changes: 3 additions & 3 deletions pkg/micro/ocdav/option.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

Expand Down

0 comments on commit a37ef2e

Please sign in to comment.