check

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: May 20, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package check provides various configuration and health checks that can be run for move operations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunChecks

func RunChecks(ctx context.Context, r Resources, logger *slog.Logger, scope ScopeFlag) error

RunChecks runs all checks that are registered for the given scope

Types

type Resources

type Resources struct {
	Sources        []SourceResource
	Targets        []applier.Target
	SourceTables   []*table.TableInfo
	CreateSentinel bool
}

Resources contains the resources needed for move checks

type ScopeFlag

type ScopeFlag uint8

ScopeFlag scopes a check

const (
	ScopeNone ScopeFlag = iota
	ScopePreRun
	ScopePreflight
	ScopePostSetup
	ScopeResume
)

type SourceResource added in v0.13.0

type SourceResource struct {
	DB     *sql.DB
	Config *mysql.Config
	DSN    string
}

SourceResource holds per-source connection state for checks.

Jump to

Keyboard shortcuts

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