cmd

package
v0.40.2 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2024 License: MPL-2.0 Imports: 80 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version = "development"
)

Functions

func CLIDestinationSpecToPbSpec

func CLIDestinationSpecToPbSpec(spec specs.Destination) pbSpecs.Destination

func CLIMigrateModeToPbMigrateMode

func CLIMigrateModeToPbMigrateMode(migrateMode specs.MigrateMode) pbSpecs.MigrateMode

func CLIPkModeToPbPKMode

func CLIPkModeToPbPKMode(pkMode specs.PKMode) pbSpecs.PKMode

func CLIRegistryToPbRegistry

func CLIRegistryToPbRegistry(registry specs.Registry) pbSpecs.Registry

func CLISourceSpecToPbSpec

func CLISourceSpecToPbSpec(spec specs.Source) pbSpecs.Source

This converts CLI configuration to a source spec prior to V3 version when our spec wasn't decoupled from the over the wire protocol

func CLIWriteModeToPbWriteMode

func CLIWriteModeToPbWriteMode(writeMode specs.WriteMode) pbSpecs.WriteMode

func CloseLogFile

func CloseLogFile()

func NewCmdMigrate

func NewCmdMigrate() *cobra.Command

func NewCmdRoot

func NewCmdRoot() *cobra.Command

func NewCmdSync

func NewCmdSync() *cobra.Command

func NewCmdTables

func NewCmdTables() *cobra.Command

func SpecRegistryToPlugin

func SpecRegistryToPlugin(registry specs.Registry) managedplugin.Registry

Types

type AnalyticsClient

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

func (*AnalyticsClient) Close

func (c *AnalyticsClient) Close() error

func (*AnalyticsClient) Host

func (c *AnalyticsClient) Host() string

func (*AnalyticsClient) SendSyncMetrics

func (c *AnalyticsClient) SendSyncMetrics(ctx context.Context, sourceSpec specs.Source, destinationsSpecs []specs.Destination, invocationUUID string, m *metrics.Metrics, exitReason ExitReason) error

type ExitReason

type ExitReason string
const (
	ExitReasonUnset     ExitReason = ""
	ExitReasonStopped   ExitReason = "stopped"
	ExitReasonCompleted ExitReason = "completed"
)

Jump to

Keyboard shortcuts

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