From e7c3ea143ff5a64f811421f7ea7820e9c04d4848 Mon Sep 17 00:00:00 2001 From: Ralf Haferkamp Date: Thu, 16 Mar 2023 12:56:52 +0100 Subject: [PATCH] proxy: Add some missing doc strings --- services/proxy/pkg/user/backend/cs3.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/services/proxy/pkg/user/backend/cs3.go b/services/proxy/pkg/user/backend/cs3.go index 03d3cd64dcf..724d3aa26e5 100644 --- a/services/proxy/pkg/user/backend/cs3.go +++ b/services/proxy/pkg/user/backend/cs3.go @@ -37,30 +37,35 @@ type Options struct { autoProvsionCreator autoprovision.Creator } +// WithLogger sets the logger option func WithLogger(l log.Logger) Option { return func(o *Options) { o.logger = l } } +// WithRevaAuthenticator set the RevaAuthenticator option func WithRevaAuthenticator(ra RevaAuthenticator) Option { return func(o *Options) { o.authProvider = ra } } +// WithMachineAuthAPIKey configures the machine auth API key func WithMachineAuthAPIKey(ma string) Option { return func(o *Options) { o.machineAuthAPIKey = ma } } +// WithOIDCissuer set the OIDC issuer URL func WithOIDCissuer(oidcISS string) Option { return func(o *Options) { o.oidcISS = oidcISS } } +// WithAutoProvisonCreator configures the autoprovision creator to use func WithAutoProvisonCreator(c autoprovision.Creator) Option { return func(o *Options) { o.autoProvsionCreator = c