Plumb root/worker auth kms testing options to public side

pull/366/head
Jeff Mitchell 6 years ago
parent ab1f31e9af
commit c2b49dbc7d

@ -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

Loading…
Cancel
Save