mssql

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 14, 2017 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() (interface{}, error)

func Run

func Run(apiTLSConfig *api.TLSConfig) error

Run instantiates a MSSQL object, and runs the RPC server for the plugin

Types

type MSSQL

MSSQL is an implementation of Database interface

func (*MSSQL) CreateUser

func (m *MSSQL) CreateUser(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(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(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) Type

func (m *MSSQL) Type() (string, error)

Type returns the TypeName for this backend

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL