replication

package
v1.2.17-prerelease01 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster

type Cluster struct {
	GRPCEndpoint string `yaml:"grpcEndpoint"`

	AdminClient    admin.Client    `yaml:"-"`
	FrontendClient frontend.Client `yaml:"-"`
}

type Operation

type Operation struct {
	Type    ReplicationSimulationOperation `yaml:"op"`
	At      time.Duration                  `yaml:"at"`
	Cluster string                         `yaml:"cluster"`

	WorkflowID       string        `yaml:"workflowID"`
	WorkflowDuration time.Duration `yaml:"workflowDuration"`

	NewActiveCluster   string `yaml:"newActiveCluster"`
	FailovertimeoutSec *int32 `yaml:"failoverTimeoutSec"`

	Want Validation `yaml:"want"`
}

type ReplicationSimulationConfig

type ReplicationSimulationConfig struct {
	Clusters map[string]*Cluster `yaml:"clusters"`

	PrimaryCluster string `yaml:"primaryCluster"`

	Operations []*Operation `yaml:"operations"`
}

type ReplicationSimulationOperation

type ReplicationSimulationOperation string
const (
	ReplicationSimulationOperationStartWorkflow ReplicationSimulationOperation = "start_workflow"
	ReplicationSimulationOperationFailover      ReplicationSimulationOperation = "failover"
	ReplicationSimulationOperationValidate      ReplicationSimulationOperation = "validate"
)

type Validation

type Validation struct {
	Status                      string `yaml:"status"`
	StartedByWorkersInCluster   string `yaml:"startedByWorkersInCluster"`
	CompletedByWorkersInCluster string `yaml:"completedByWorkersInCluster"`
}

type WorkflowInput

type WorkflowInput struct {
	Duration time.Duration
}

type WorkflowOutput

type WorkflowOutput struct {
	Count int
}

Jump to

Keyboard shortcuts

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