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

mysql

package
v1.8.4 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2021 License: MPL-2.0 Imports: 19 Imported by: 108

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 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 (c MySQL) Connection(ctx context.Context) (interface{}, error)

func (*MySQL) DeleteUser added in v1.6.0

func (MySQL) Init added in v1.5.0

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

func (*MySQL) Initialize added in v1.5.0

func (*MySQL) NewUser added in v1.6.0

func (MySQL) SecretValues added in v1.5.0

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

func (*MySQL) Type

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

func (*MySQL) UpdateUser added in v1.6.0

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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