task

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UpdateDMMeta

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

UpdateDMMeta is used to maintain the DM meta information

func NewUpdateDMMeta

func NewUpdateDMMeta(cluster string, metadata *dmspec.Metadata, deletedNodesID []string) *UpdateDMMeta

NewUpdateDMMeta create i update dm meta task.

func (*UpdateDMMeta) Execute

func (u *UpdateDMMeta) Execute(ctx context.Context) error

Execute implements the Task interface the metadata especially the topology is in wide use, the other callers point to this field by a pointer, so we should update the original topology directly, and don't make a copy

func (*UpdateDMMeta) Rollback

func (u *UpdateDMMeta) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*UpdateDMMeta) String

func (u *UpdateDMMeta) String() string

String implements the fmt.Stringer interface

Jump to

Keyboard shortcuts

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