Documentation ¶
Index ¶
- func New() (interface{}, error)
- func Run(apiTLSConfig *api.TLSConfig) error
- type MSSQL
- func (m *MSSQL) CreateUser(ctx context.Context, statements dbplugin.Statements, ...) (username string, password string, err error)
- func (m *MSSQL) RenewUser(ctx context.Context, statements dbplugin.Statements, username string, ...) error
- func (m *MSSQL) RevokeUser(ctx context.Context, statements dbplugin.Statements, username string) error
- func (m *MSSQL) RotateRootCredentials(ctx context.Context, statements []string) (map[string]interface{}, error)
- func (m *MSSQL) Type() (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MSSQL ¶
type MSSQL struct { *connutil.SQLConnectionProducer credsutil.CredentialsProducer }
MSSQL is an implementation of Database interface
func (*MSSQL) CreateUser ¶
func (m *MSSQL) CreateUser(ctx context.Context, statements dbplugin.Statements, usernameConfig dbplugin.UsernameConfig, expiration time.Time) (username string, password string, err error)
CreateUser generates the username/password on the underlying MSSQL secret backend as instructed by the CreationStatement provided.
func (*MSSQL) RenewUser ¶
func (m *MSSQL) RenewUser(ctx context.Context, statements dbplugin.Statements, username string, expiration time.Time) error
RenewUser is not supported on MSSQL, so this is a no-op.
func (*MSSQL) RevokeUser ¶
func (m *MSSQL) RevokeUser(ctx context.Context, statements dbplugin.Statements, username string) error
RevokeUser attempts to drop the specified user. It will first attempt to disable login, then kill pending connections from that user, and finally drop the user and login from the database instance.
func (*MSSQL) RotateRootCredentials ¶ added in v0.10.0
Click to show internal directories.
Click to hide internal directories.