Plumb root/worker auth kms testing options to public side
This commit is contained in:
1 parent
ab1f31e9af
commit
c2b49dbc7d
1 file changed
+18
@@ -47,6 +47,8 @@ type option struct {
|
||||
setDefaultAuthMethodId bool
|
||||
setDefaultLoginName bool
|
||||
setDefaultPassword bool
|
||||
setRootKms bool
|
||||
setWorkerAuthKms bool
|
||||
setRecoveryKms bool
|
||||
setDatabaseUrl bool
|
||||
}
|
||||
@@ -130,6 +132,22 @@ func WithDefaultPassword(pw string) Option {
|
||||
}
|
||||
}
|
||||
|
||||
func WithRootKms(wrapper wrapping.Wrapper) Option {
|
||||
return func(c *option) error {
|
||||
c.setRootKms = true
|
||||
c.tcOptions.RootKms = wrapper
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
func WithWorkerAuthKms(wrapper wrapping.Wrapper) Option {
|
||||
return func(c *option) error {
|
||||
c.setWorkerAuthKms = true
|
||||
c.tcOptions.WorkerAuthKms = wrapper
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
func WithRecoveryKms(wrapper wrapping.Wrapper) Option {
|
||||
return func(c *option) error {
|
||||
c.setRecoveryKms = true
|
||||
|
||||
Reference in new issue
Block a user