Documentation ¶
Index ¶
- Constants
- type ClientOps
- func (cli *ClientOps) ExecWithOptions(options ExecOptions) (string, string, error)
- func (cli *ClientOps) KillProcess(ns string, pod string, container string, pname string) error
- func (cli *ClientOps) Poll(cond wait.ConditionFunc) error
- func (cli *ClientOps) PollImmediate(cond wait.ConditionFunc) error
- func (cli *ClientOps) PollPod(ns string, name string, cond func(po *corev1.Pod, err error) (bool, error)) error
- func (cli *ClientOps) PollStatefulSet(ns string, name string, ...) error
- func (cli *ClientOps) PollTiDBCluster(ns string, name string, ...) error
- func (cli *ClientOps) SetPoll(interval time.Duration, timeout time.Duration)
- type ExecOptions
- type PollFn
- type TiKVOps
- type TruncateOptions
Constants ¶
View Source
const ( DefaultPollInterval = 10 * time.Second DefaultPollTimeout = 10 * time.Minute )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientOps ¶
func (*ClientOps) ExecWithOptions ¶
func (cli *ClientOps) ExecWithOptions(options ExecOptions) (string, string, error)
ExecWithOptions executes a command in the specified container, returning stdout, stderr and error. `options` allowed for additional parameters to be passed.
func (*ClientOps) KillProcess ¶
func (*ClientOps) PollImmediate ¶
func (cli *ClientOps) PollImmediate(cond wait.ConditionFunc) error
func (*ClientOps) PollStatefulSet ¶
func (*ClientOps) PollTiDBCluster ¶
type ExecOptions ¶
type ExecOptions struct { Command []string Namespace string PodName string ContainerName string Stdin io.Reader CaptureStdout bool CaptureStderr bool // If false, whitespace in std{err,out} will be removed. PreserveWhitespace bool }
ExecOptions passed to ExecWithOptions
type TiKVOps ¶
type TiKVOps struct {
ClientOps
}
func (*TiKVOps) RecoverSSTFile ¶
func (*TiKVOps) RemovePanicMark ¶ added in v1.1.1
func (*TiKVOps) TruncateSSTFile ¶
func (ops *TiKVOps) TruncateSSTFile(opts TruncateOptions) error
type TruncateOptions ¶
Click to show internal directories.
Click to hide internal directories.