mysql

package
v0.0.0-...-a0f6db5 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2022 License: MPL-2.0 Imports: 19 Imported by: 0

Documentation

Index

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

func New

func New(defaultUsernameTemplate string) func() (interface{}, error)

New implements builtinplugins.BuiltinFactory

Types

type MySQL

type MySQL struct {
	// contains filtered or unexported fields
}

func (MySQL) Close

func (c MySQL) Close() error

Close attempts to close the connection

func (MySQL) Connection

func (c MySQL) Connection(ctx context.Context) (interface{}, error)

func (*MySQL) DeleteUser

func (MySQL) Init

func (c MySQL) Init(ctx context.Context, conf map[string]interface{}, verifyConnection bool) (map[string]interface{}, error)

func (*MySQL) Initialize

func (*MySQL) NewUser

func (MySQL) SecretValues

func (c MySQL) SecretValues() map[string]string

func (*MySQL) Type

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

func (*MySQL) UpdateUser

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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