Documentation ¶
Index ¶
- Variables
- func New(displayNameLen, roleNameLen, usernameLen int) func() (interface{}, error)
- func Run(apiTLSConfig *api.TLSConfig) error
- func RunLegacy(apiTLSConfig *api.TLSConfig) error
- type MySQL
- func (c MySQL) Close() error
- func (c MySQL) Connection(ctx context.Context) (interface{}, error)
- func (m *MySQL) CreateUser(ctx context.Context, statements dbplugin.Statements, ...) (username string, password string, err error)
- func (c MySQL) Init(ctx context.Context, conf map[string]interface{}, verifyConnection bool) (map[string]interface{}, error)
- func (c MySQL) Initialize(ctx context.Context, conf map[string]interface{}, verifyConnection bool) error
- func (m *MySQL) RenewUser(ctx context.Context, statements dbplugin.Statements, username string, ...) error
- func (m *MySQL) RevokeUser(ctx context.Context, statements dbplugin.Statements, username string) error
- func (m *MySQL) RotateRootCredentials(ctx context.Context, statements []string) (map[string]interface{}, error)
- func (c MySQL) SecretValues() map[string]interface{}
- func (m *MySQL) SetCredentials(ctx context.Context, statements dbplugin.Statements, ...) (username, password string, err 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 { credsutil.CredentialsProducer // 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) CreateUser ¶
func (MySQL) Initialize ¶ added in v1.5.0
func (*MySQL) RenewUser ¶
func (m *MySQL) RenewUser(ctx context.Context, statements dbplugin.Statements, username string, expiration time.Time) error
NOOP
func (*MySQL) RevokeUser ¶
func (*MySQL) RotateRootCredentials ¶ added in v0.10.0
func (MySQL) SecretValues ¶ added in v1.5.0
func (c MySQL) SecretValues() map[string]interface{}
func (*MySQL) SetCredentials ¶ added in v1.2.0
func (m *MySQL) SetCredentials(ctx context.Context, statements dbplugin.Statements, staticUser dbplugin.StaticUserConfig) (username, password string, err error)
SetCredentials uses provided information to set the password to a user in the database. Unlike CreateUser, this method requires a username be provided and uses the name given, instead of generating a name. This is used for setting the password of static accounts, as well as rolling back passwords in the database in the event an updated database fails to save in Vault's storage.
Click to show internal directories.
Click to hide internal directories.