types

package
v1.0.1-0...-23bcde9 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AutoGen

type AutoGen struct {
	Name           string
	GenerationType string
}

type ColMaxLength

type ColMaxLength struct {
	SpDataType     string `json:"spDataType"`
	SpColMaxLength string `json:"spColMaxLength"`
}

type ConvertFromDumpRequest

type ConvertFromDumpRequest struct {
	Config         DumpConfig     `json:"Config"`
	SpannerDetails SpannerDetails `json:"SpannerDetails"`
}

type DriverConfig

type DriverConfig struct {
	Driver      string `json:"Driver"`
	IsSharded   bool   `json:"IsSharded"`
	Host        string `json:"Host"`
	Port        string `json:"Port"`
	Database    string `json:"Database"`
	User        string `json:"User"`
	Password    string `json:"Password"`
	DataCenter  string `json:"DataCenter"`
	Dialect     string `json:"Dialect"`
	DataShardId string `json:"DataShardId"`
}

driverConfig contains the parameters needed to make a direct database connection. It is used to communicate via HTTP with the frontend.

type DriverConfigs

type DriverConfigs struct {
	DbConfigs         []DriverConfig `json:"DbConfigs"`
	IsRestoredSession string         `json:"IsRestoredSession"`
}

type DropDetail

type DropDetail struct {
	Name string `json:"Name"`
}

type DumpConfig

type DumpConfig struct {
	Driver   string `json:"Driver"`
	FilePath string `json:"Path"`
}

dumpConfig contains the parameters needed to run the tool using dump approach. It is used to communicate via HTTP with the frontend.

type GcsMetadataPath

type GcsMetadataPath struct {
	GcsBucketName     string `json:"GcsBucketName"`
	GcsBucketRootPath string `json:"GcsBucketRootPath"`
}

type GeneratedResources

type GeneratedResources struct {
	MigrationJobId string `json:"MigrationJobId"`
	DatabaseName   string `json:"DatabaseName"`
	DatabaseUrl    string `json:"DatabaseUrl"`
	BucketName     string `json:"BucketName"`
	BucketUrl      string `json:"BucketUrl"`
	//Used for single instance migration flow
	DataStreamJobName          string `json:"DataStreamJobName"`
	DataStreamJobUrl           string `json:"DataStreamJobUrl"`
	DataflowJobName            string `json:"DataflowJobName"`
	DataflowJobUrl             string `json:"DataflowJobUrl"`
	DataflowGcloudCmd          string `json:"DataflowGcloudCmd"`
	PubsubTopicName            string `json:"PubsubTopicName"`
	PubsubTopicUrl             string `json:"PubsubTopicUrl"`
	PubsubSubscriptionName     string `json:"PubsubSubscriptionName"`
	PubsubSubscriptionUrl      string `json:"PubsubSubscriptionUrl"`
	DlqPubsubTopicName         string `json:"DlqPubsubTopicName"`
	DlqPubsubTopicUrl          string `json:"DlqPubsubTopicUrl"`
	DlqPubsubSubscriptionName  string `json:"DlqPubsubSubscriptionName"`
	DlqPubsubSubscriptionUrl   string `json:"DlqPubsubSubscriptionUrl"`
	MonitoringDashboardName    string `json:"MonitoringDashboardName"`
	MonitoringDashboardUrl     string `json:"MonitoringDashboardUrl"`
	AggMonitoringDashboardName string `json:"AggMonitoringDashboardName"`
	AggMonitoringDashboardUrl  string `json:"AggMonitoringDashboardUrl"`
	//Used for sharded migration flow
	ShardToShardResourcesMap map[string][]ResourceDetails `json:"ShardToShardResourcesMap"`
}

type MigrationDetails

type MigrationDetails struct {
	TargetDetails    TargetDetails             `json:"TargetDetails"`
	DatastreamConfig profiles.DatastreamConfig `json:"DatastreamConfig"`
	GcsConfig        profiles.GcsConfig        `json:"GcsConfig"`
	DataflowConfig   profiles.DataflowConfig   `json:"DataflowConfig"`
	MigrationMode    string                    `json:"MigrationMode"`
	MigrationType    string                    `json:"MigrationType"`
	IsSharded        bool                      `json:"IsSharded"`
	SkipForeignKeys  bool                      `json:"skipForeignKeys"`
}

type ProgressDetails

type ProgressDetails struct {
	Progress       int
	ErrorMessage   string
	ProgressStatus int
}

type ResourceDetails

type ResourceDetails struct {
	ResourceType string `json:"ResourceType"`
	ResourceName string `json:"ResourceName"`
	ResourceUrl  string `json:"ResourceUrl"`
	GcloudCmd    string `json:"GcloudCmd"`
}

type SessionState

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

SessionState stores information for the current migration session.

type SessionSummary

type SessionSummary struct {
	DatabaseType       string
	ConnectionDetail   string
	SourceTableCount   int
	SpannerTableCount  int
	SourceIndexCount   int
	SpannerIndexCount  int
	ConnectionType     string
	SourceDatabaseName string
	Region             string
	NodeCount          int
	ProcessingUnits    int
	Instance           string
	Dialect            string
	IsSharded          bool
}

type ShardIdPrimaryKey

type ShardIdPrimaryKey struct {
	AddedAtTheStart bool `json:"AddedAtTheStart"`
}

type ShardedDataflowConfig

type ShardedDataflowConfig struct {
	MigrationProfile profiles.SourceProfileConfig
}

type SpannerDetails

type SpannerDetails struct {
	Dialect string `json:"Dialect"`
}

type TableIdAndName

type TableIdAndName struct {
	Id   string `json:"Id"`
	Name string `json:"Name"`
}

type TableInterleaveStatus

type TableInterleaveStatus struct {
	Possible       bool
	Parent         string
	OnDelete       string
	Comment        string
	InterleaveType string
}

TableInterleaveStatus stores data regarding interleave status.

type TargetDetails

type TargetDetails struct {
	TargetDB                    string          `json:"TargetDB"`
	SourceConnectionProfileName string          `json:"SourceConnProfile"`
	TargetConnectionProfileName string          `json:"TargetConnProfile"`
	ReplicationSlot             string          `json:"ReplicationSlot"`
	Publication                 string          `json:"Publication"`
	GcsMetadataPath             GcsMetadataPath `json:"GcsMetadataPath"`
}

type TypeIssue

type TypeIssue struct {
	T        string
	Brief    string
	DisplayT string
}

Type and issue.

Jump to

Keyboard shortcuts

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