Documentation
¶
Index ¶
- type AutoGen
- type ColMaxLength
- type ConvertFromDumpRequest
- type DriverConfig
- type DriverConfigs
- type DropDetail
- type DumpConfig
- type GcsMetadataPath
- type GeneratedResources
- type MigrationDetails
- type ProgressDetails
- type ResourceDetails
- type SessionState
- type SessionSummary
- type ShardIdPrimaryKey
- type ShardedDataflowConfig
- type SpannerDetails
- type TableIdAndName
- type TableInterleaveStatus
- type TargetDetails
- type TypeIssue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ColMaxLength ¶
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 ¶
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 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 ResourceDetails ¶
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 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"`
}
Click to show internal directories.
Click to hide internal directories.