internal

package
v0.0.0-...-0bc0e99 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PodExecutor

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

func NewPodExecutor

func NewPodExecutor() (*PodExecutor, error)

func (*PodExecutor) Exec

func (p *PodExecutor) Exec(namespace, podName, containerName string, command ...string) ([]byte, []byte, error)

func (*PodExecutor) SetGlobalSysVar

func (p *PodExecutor) SetGlobalSysVar(namespace, podName string, query string) error

type SQLRunner

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

func NewSQLRunner

func NewSQLRunner(user, password, host string, port int) (*SQLRunner, error)

func (*SQLRunner) CheckReadOnly

func (s *SQLRunner) CheckReadOnly() (corev1.ConditionStatus, error)

func (*SQLRunner) CheckSlaveStatusWithRetry

func (s *SQLRunner) CheckSlaveStatusWithRetry(retry uint32) (isLagged, isReplicating corev1.ConditionStatus, err error)

func (*SQLRunner) Close

func (sr *SQLRunner) Close() error

func (*SQLRunner) GetGlobalVariable

func (sr *SQLRunner) GetGlobalVariable(param string, val interface{}) error

Jump to

Keyboard shortcuts

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