mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-05-01 00:10:17 -05:00
proxy: Add some missing doc strings
This commit is contained in:
committed by
Ralf Haferkamp
parent
a448c75c75
commit
96ed144745
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user