util

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2024 License: GPL-3.0 Imports: 26 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 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
}

type SizeWriter added in v1.13.0

type SizeWriter struct {
	// contains filtered or unexported fields
}

func (*SizeWriter) Size added in v1.13.0

func (s *SizeWriter) Size() uint64

func (*SizeWriter) String added in v1.13.0

func (s *SizeWriter) String() string

func (*SizeWriter) Write added in v1.13.0

func (s *SizeWriter) Write(p []byte) (int, error)

Jump to

Keyboard shortcuts

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