Combined Database backend: Add GenerateCredentials to the CredentialsProducer Interface (#7010)

* Add GenerateCredentials to the CredentialsProducer Interface, add default implementation

* Remove GenerateCredentials implementation from database plugins
This commit is contained in:
Clint
2019-07-05 13:34:47 -05:00
committed by Chris Hoffman
parent a640411471
commit 7b0f7a4964
9 changed files with 13 additions and 65 deletions

View File

@@ -315,12 +315,3 @@ func (m *MySQL) RotateRootCredentials(ctx context.Context, statements []string)
m.RawConfig["password"] = password
return m.RawConfig, nil
}
// GenerateCredentials returns a generated password
func (m *MySQL) GenerateCredentials(ctx context.Context) (string, error) {
password, err := m.GeneratePassword()
if err != nil {
return "", err
}
return password, nil
}