Documentation ¶
Index ¶
- Variables
- func New(metadataLen, usernameLen int) func() (interface{}, error)
- func Run(apiTLSConfig *api.TLSConfig) error
- type MySQL
- func (m *MySQL) CreateUser(statements dbplugin.Statements, usernameConfig dbplugin.UsernameConfig, ...) (username string, password string, err error)
- func (m *MySQL) RenewUser(statements dbplugin.Statements, username string, expiration time.Time) error
- func (m *MySQL) RevokeUser(statements dbplugin.Statements, username string) error
- func (m *MySQL) Type() (string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( MetadataLen int = 10 LegacyMetadataLen int = 4 UsernameLen int = 32 LegacyUsernameLen int = 16 )
Functions ¶
Types ¶
type MySQL ¶
type MySQL struct { connutil.ConnectionProducer credsutil.CredentialsProducer }
func (*MySQL) CreateUser ¶
func (m *MySQL) CreateUser(statements dbplugin.Statements, usernameConfig dbplugin.UsernameConfig, expiration time.Time) (username string, password string, err error)
func (*MySQL) RenewUser ¶
func (m *MySQL) RenewUser(statements dbplugin.Statements, username string, expiration time.Time) error
NOOP
func (*MySQL) RevokeUser ¶
func (m *MySQL) RevokeUser(statements dbplugin.Statements, username string) error
Click to show internal directories.
Click to hide internal directories.