util

package
v1.18.1 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 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 added in v1.7.0

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 added in v1.15.0

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

func GetCommit added in v1.6.6

func GetCommit() string

func GetVersion added in v1.6.6

func GetVersion() string

func NewUserAgentTransport added in v1.15.1

func NewUserAgentTransport() *httpx.UserAgentTransport

func Teardown added in v1.6.0

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