Documentation
¶
Index ¶
- type DBAliaser
- type DBAnalyzer
- type DBCanDisableJob
- type DBDatabaseDropper
- type DBDatabaseLister
- type DBDumper
- type DBExecer
- type DBFiler
- type DBFilterer
- type DBHasDatabase
- type DBHasPassword
- type DBHasPort
- type DBHasUser
- type DBOrderer
- type DBRestorer
- type DBTableLister
- type Database
- type Dump
- type Exec
- type Global
- type Kubernetes
- type Log
- type PortForward
- type Restore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBAnalyzer ¶
type DBAnalyzer interface {
AnalyzeQuery() string
}
type DBCanDisableJob ¶
type DBCanDisableJob interface {
DisableJob() bool
}
type DBDatabaseDropper ¶
type DBDatabaseLister ¶
type DBDatabaseLister interface {
DatabaseListQuery() string
}
type DBFilterer ¶
type DBFilterer interface {
FilterPods(ctx context.Context, client kubernetes.KubeClient, pods []corev1.Pod) ([]corev1.Pod, error)
}
type DBHasDatabase ¶
type DBHasDatabase interface {
DatabaseEnvs(conf *Global) kubernetes.ConfigLookups
}
type DBHasPassword ¶
type DBHasPassword interface {
PasswordEnvs(conf *Global) kubernetes.ConfigLookups
}
type DBHasPort ¶
type DBHasPort interface {
PortEnvs(conf *Global) kubernetes.ConfigLookups
PortDefault() uint16
}
type DBHasUser ¶
type DBHasUser interface {
UserEnvs(conf *Global) kubernetes.ConfigLookups
UserDefault() string
}
type DBRestorer ¶
type DBTableLister ¶
type DBTableLister interface {
TableListQuery() string
}
type Dump ¶
type Dump struct {
*Global `koanf:"-"`
Output string `koanf:"output"`
Format sqlformat.Format `koanf:"format"`
IfExists bool `koanf:"if-exists"`
Clean bool `koanf:"clean"`
NoOwner bool `koanf:"no-owner"`
Table []string `koanf:"table"`
ExcludeTable []string `koanf:"exclude-table"`
ExcludeTableData []string `koanf:"exclude-table-data"`
}
type Global ¶
type Global struct {
Log Log `koanf:",squash"`
SkipSurvey bool `koanf:"-"`
Kubernetes `koanf:",squash"`
DialectName string `koanf:"dialect"`
Dialect Database `koanf:"-"`
CreateJob bool `koanf:"create-job"`
CreateNetworkPolicy bool `koanf:"create-network-policy"`
PodName string `koanf:"pod"`
Job *batchv1.Job `koanf:"-"`
JobPod corev1.Pod `koanf:"-"`
JobPodLabels map[string]string `koanf:"job-pod-labels"`
DBPod corev1.Pod `koanf:"-"`
Host string `koanf:"-"`
Port uint16 `koanf:"port"`
Database string `koanf:"dbname"`
Username string `koanf:"username"`
Password string `koanf:"password"`
Quiet bool `koanf:"quiet"`
RemoteGzip bool `koanf:"remote-gzip"`
Opts string `koanf:"opts"`
Spinner string `koanf:"spinner"`
Progress bool `koanf:"progress"`
HealthchecksPingURL string `koanf:"healthchecks-ping-url"`
NamespaceColors map[string]string `koanf:"namespace-colors"`
}
type Kubernetes ¶
type Kubernetes struct {
Kubeconfig string `koanf:"kubeconfig"`
Context string `koanf:"context"`
Namespace string `koanf:"namespace"`
Client kubernetes.KubeClient `koanf:"-"`
}
type PortForward ¶
type Restore ¶
type Restore struct {
*Global `koanf:"-"`
Input string `koanf:"input"`
Format sqlformat.Format `koanf:"format"`
SingleTransaction bool `koanf:"single-transaction"`
Clean bool `koanf:"clean"`
NoOwner bool `koanf:"no-owner"`
Force bool `koanf:"force"`
Spinner string `koanf:"spinner"`
HaltOnError bool `koanf:"halt-on-error"`
}
Click to show internal directories.
Click to hide internal directories.