util

package
v0.0.0-...-e49cbdc Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2025 License: GPL-3.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrJobPodFailed    = errors.New("job pod failed")
	ErrJobPodEarlyExit = errors.New("job pod exited early")
	ErrJobPodInvalid   = errors.New("unexpected job pod object type")
)
View Source
var (
	ErrNoDump        = errors.New("database does not support dump")
	ErrNoExec        = errors.New("database does not support exec")
	ErrNoPortForward = errors.New("database does not support port forwarding")
	ErrNoRestore     = errors.New("database does not support restore")
)

Functions

func CreateJob

func CreateJob(ctx context.Context, cmd *cobra.Command, conf *conftypes.Global) error

func DefaultSetup

func DefaultSetup(cmd *cobra.Command, conf *conftypes.Global) error

func FilterExts

func FilterExts(exts []string, path string) bool

func GetCommit

func GetCommit() string

func GetVersion

func GetVersion() string

func NewUserAgentTransport

func NewUserAgentTransport() *httpx.UserAgentTransport

func Teardown

func Teardown(conf *conftypes.Global)

Types

This section is empty.

Jump to

Keyboard shortcuts

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