proxy: Add some missing doc strings

This commit is contained in:
Ralf Haferkamp
2023-03-16 12:56:52 +01:00
committed by Ralf Haferkamp
parent a448c75c75
commit 96ed144745
+5
View File
@@ -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