MCPcopy Create free account
hub / github.com/bitpoke/mysql-operator / SQLInterface

Interface SQLInterface

pkg/controller/node/sql.go:38–47  ·  view source on GitHub ↗

SQLInterface expose abstract operations that can be applied on a MySQL node

Source from the content-addressed store, hash-verified

36
37// SQLInterface expose abstract operations that can be applied on a MySQL node
38type SQLInterface interface {
39 Wait(ctx context.Context) error
40 DisableSuperReadOnly(ctx context.Context) (func(), error)
41 ChangeMasterTo(ctx context.Context, host string, user string, pass string) error
42 MarkConfigurationDone(ctx context.Context) error
43 IsConfigured(ctx context.Context) (bool, error)
44 SetPurgedGTID(ctx context.Context) error
45 MarkSetGTIDPurged(ctx context.Context) error
46 Host() string
47}
48
49type nodeSQLRunner struct {
50 dsn string

Callers 12

ReconcileMethod · 0.65
backupHandlerMethod · 0.65
pushBackupFromToFunction · 0.65
cloneFromBucketFunction · 0.65
cloneFromSourceFunction · 0.65
initializeMySQLMethod · 0.65
initializeMySQLMethod · 0.65
initializeMySQLMethod · 0.65
initializeMySQLMethod · 0.65
initializeMySQLMethod · 0.65
initializeMySQLMethod · 0.65
initializeMySQLMethod · 0.65

Implementers 2

nodeSQLRunnerpkg/controller/node/sql.go
fakeSQLRunnerpkg/controller/node/sql_fake_test.go

Calls

no outgoing calls

Tested by

no test coverage detected