Documentation ¶
Index ¶
- func InitLog(cmd *cobra.Command)
- func LoadViper() error
- func LogFormat(out io.Writer, format string) io.Writer
- func LogLevel(level string) zerolog.Level
- type Database
- type DatabaseAliases
- type DatabaseAnalyze
- type DatabaseDB
- type DatabaseDBDrop
- type DatabaseDBList
- type DatabaseDisableJob
- type DatabaseDump
- type DatabaseExec
- type DatabaseFile
- type DatabaseFilter
- type DatabasePassword
- type DatabasePort
- type DatabasePriority
- type DatabaseRestore
- type DatabaseTables
- type DatabaseUsername
- 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 ¶
Types ¶
type DatabaseAliases ¶ added in v1.12.0
type DatabaseAliases interface {
Aliases() []string
}
type DatabaseAnalyze ¶ added in v1.12.0
type DatabaseAnalyze interface {
AnalyzeQuery() string
}
type DatabaseDB ¶ added in v1.12.0
type DatabaseDB interface {
DatabaseEnvNames() kubernetes.ConfigLookups
}
type DatabaseDBDrop ¶ added in v1.12.0
type DatabaseDBList ¶ added in v1.12.0
type DatabaseDBList interface {
ListDatabasesQuery() string
}
type DatabaseDisableJob ¶ added in v1.12.0
type DatabaseDisableJob interface {
DisableJob() bool
}
type DatabaseDump ¶ added in v1.12.0
type DatabaseDump interface { Database DumpCommand(conf Dump) *command.Builder DatabaseFile }
type DatabaseExec ¶ added in v1.12.0
type DatabaseFile ¶ added in v1.12.0
type DatabaseFilter ¶ added in v1.12.0
type DatabaseFilter interface {
FilterPods(ctx context.Context, client kubernetes.KubeClient, pods []v1.Pod) ([]v1.Pod, error)
}
type DatabasePassword ¶ added in v1.12.0
type DatabasePassword interface {
PasswordEnvNames(conf Global) kubernetes.ConfigLookups
}
type DatabasePort ¶ added in v1.12.0
type DatabasePort interface { DefaultPort() uint16 PortEnvNames() kubernetes.ConfigLookups }
type DatabasePriority ¶ added in v1.13.0
type DatabasePriority interface {
Priority() uint8
}
type DatabaseRestore ¶ added in v1.12.0
type DatabaseTables ¶ added in v1.12.0
type DatabaseTables interface {
ListTablesQuery() string
}
type DatabaseUsername ¶ added in v1.12.0
type DatabaseUsername interface { UserEnvNames() kubernetes.ConfigLookups DefaultUser() 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"` }
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.