Documentation ¶
Index ¶
- func LoadViper() error
- func SetViperDefaults()
- 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 Files
- type Global
- type Kubernetes
- type PortForward
- type Restore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetViperDefaults ¶ added in v1.14.0
func SetViperDefaults()
Types ¶
type DBAnalyzer ¶ added in v1.15.0
type DBAnalyzer interface {
AnalyzeQuery() string
}
type DBCanDisableJob ¶ added in v1.15.0
type DBCanDisableJob interface {
DisableJob() bool
}
type DBDatabaseDropper ¶ added in v1.15.0
type DBDatabaseLister ¶ added in v1.15.0
type DBDatabaseLister interface {
DatabaseListQuery() string
}
type DBFilterer ¶ added in v1.15.0
type DBFilterer interface {
FilterPods(ctx context.Context, client kubernetes.KubeClient, pods []v1.Pod) ([]v1.Pod, error)
}
type DBHasDatabase ¶ added in v1.15.0
type DBHasDatabase interface {
DatabaseEnvs(conf Global) kubernetes.ConfigLookups
}
type DBHasPassword ¶ added in v1.15.0
type DBHasPassword interface {
PasswordEnvs(conf Global) kubernetes.ConfigLookups
}
type DBHasPort ¶ added in v1.15.0
type DBHasPort interface { PortEnvs(conf Global) kubernetes.ConfigLookups PortDefault() uint16 }
type DBHasUser ¶ added in v1.15.0
type DBHasUser interface { UserEnvs(conf Global) kubernetes.ConfigLookups UserDefault() string }
type DBRestorer ¶ added in v1.15.0
type DBTableLister ¶ added in v1.15.0
type DBTableLister interface {
TableListQuery() string
}
type Global ¶
type Global struct { Kubernetes Client kubernetes.KubeClient Dialect Database `mapstructure:"-"` Job *batchv1.Job JobPod v1.Pod `mapstructure:"-"` DBPod v1.Pod `mapstructure:"-"` Host string Port uint16 Database string Username string Password string Quiet bool RemoteGzip bool `mapstructure:"remote-gzip"` Progress bool }
type Kubernetes ¶ added in v1.4.3
type Kubernetes struct { Kubeconfig string Context string Namespace string Client kubernetes.KubeClient }
type PortForward ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.