Documentation ¶
Index ¶
- Constants
- func New(defaultUsernameTemplate string) func() (interface{}, error)
- type MySQL
- func (c MySQL) Close() error
- func (c MySQL) Connection(ctx context.Context) (interface{}, error)
- func (m *MySQL) DeleteUser(ctx context.Context, req dbplugin.DeleteUserRequest) (dbplugin.DeleteUserResponse, error)
- func (c MySQL) Init(ctx context.Context, conf map[string]interface{}, verifyConnection bool) (map[string]interface{}, error)
- func (m *MySQL) Initialize(ctx context.Context, req dbplugin.InitializeRequest) (dbplugin.InitializeResponse, error)
- func (m *MySQL) NewUser(ctx context.Context, req dbplugin.NewUserRequest) (dbplugin.NewUserResponse, error)
- func (c MySQL) SecretValues() map[string]string
- func (m *MySQL) Type() (string, error)
- func (m *MySQL) UpdateUser(ctx context.Context, req dbplugin.UpdateUserRequest) (dbplugin.UpdateUserResponse, error)
Constants ¶
View Source
const ( DefaultUserNameTemplate = `{{ printf "v-%s-%s-%s-%s" (.DisplayName | truncate 10) (.RoleName | truncate 10) (random 20) (unix_time) | truncate 32 }}` DefaultLegacyUserNameTemplate = `{{ printf "v-%s-%s-%s" (.RoleName | truncate 4) (random 20) | truncate 16 }}` )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MySQL ¶
type MySQL struct {
// contains filtered or unexported fields
}
func (MySQL) Close ¶ added in v1.5.0
func (c MySQL) Close() error
Close attempts to close the connection
func (MySQL) Connection ¶ added in v1.5.0
func (*MySQL) DeleteUser ¶ added in v1.6.0
func (m *MySQL) DeleteUser(ctx context.Context, req dbplugin.DeleteUserRequest) (dbplugin.DeleteUserResponse, error)
func (*MySQL) Initialize ¶ added in v1.5.0
func (m *MySQL) Initialize(ctx context.Context, req dbplugin.InitializeRequest) (dbplugin.InitializeResponse, error)
func (*MySQL) NewUser ¶ added in v1.6.0
func (m *MySQL) NewUser(ctx context.Context, req dbplugin.NewUserRequest) (dbplugin.NewUserResponse, error)
func (MySQL) SecretValues ¶ added in v1.5.0
func (*MySQL) UpdateUser ¶ added in v1.6.0
func (m *MySQL) UpdateUser(ctx context.Context, req dbplugin.UpdateUserRequest) (dbplugin.UpdateUserResponse, error)
Click to show internal directories.
Click to hide internal directories.