util

package
v1.15.2 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: GPL-3.0 Imports: 30 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 BoolCompletion added in v1.12.0

func BoolCompletion(_ *cobra.Command, _ []string, _ string) ([]string, cobra.ShellCompDirective)

func CreateJob added in v1.7.0

func CreateJob(ctx context.Context, conf *config.Global, opts SetupOptions) error

func DefaultSetup

func DefaultSetup(cmd *cobra.Command, conf *config.Global, opts SetupOptions) 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 OnFinalize added in v1.12.0

func OnFinalize(y ...func(err error))

func PostRun added in v1.12.0

func PostRun(err error)

func Teardown added in v1.6.0

func Teardown(conf *config.Global)

Types

type SetupOptions added in v1.6.0

type SetupOptions struct {
	Name             string
	DisableAuthFlags bool
	NoSurvey         bool
}

Jump to

Keyboard shortcuts

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