Help us shape the future of Go! Take the 2026 Go Developer Survey

mysql

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2017 License: MPL-2.0 Imports: 11 Imported by: 108

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MetadataLen       int = 10
	LegacyMetadataLen int = 4
	UsernameLen       int = 32
	LegacyUsernameLen int = 16
)

Functions

func New

func New(displayNameLen, roleNameLen, usernameLen int) func() (interface{}, error)

New implements builtinplugins.BuiltinFactory

func Run

func Run(apiTLSConfig *api.TLSConfig) error

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

func RunLegacy added in v0.8.1

func RunLegacy(apiTLSConfig *api.TLSConfig) error

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

Types

type MySQL

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

func (*MySQL) Type

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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