Documentation ¶
Index ¶
- Constants
- func New(lgr log.Logger, registry metrics.Registry, cp coordinator.Coordinator, ...) providers.Provider
- func NewSink(cfg *OpenSearchDestination, logger log.Logger, registry metrics.Registry) (abstract.Sinker, error)
- func NewSinkImpl(cfg *OpenSearchDestination, logger log.Logger, registry metrics.Registry, ...) (abstract.Sinker, error)
- type OpenSearchDestination
- func (d *OpenSearchDestination) CleanupMode() model.CleanupType
- func (d *OpenSearchDestination) Compatible(src model.Source, transferType abstract.TransferType) error
- func (d *OpenSearchDestination) GetProviderType() abstract.ProviderType
- func (d *OpenSearchDestination) Hosts() []string
- func (d *OpenSearchDestination) IsDestination()
- func (d *OpenSearchDestination) MDBClusterID() string
- func (d *OpenSearchDestination) ToElasticSearchDestination() (*elastic.ElasticSearchDestination, elastic.ServerType)
- func (d *OpenSearchDestination) Transformer() map[string]string
- func (d *OpenSearchDestination) Validate() error
- func (d *OpenSearchDestination) WithDefaults()
- type OpenSearchHostPort
- type OpenSearchSource
- func (s *OpenSearchSource) GetProviderType() abstract.ProviderType
- func (s *OpenSearchSource) Hosts() []string
- func (s *OpenSearchSource) IsSource()
- func (s *OpenSearchSource) MDBClusterID() string
- func (s *OpenSearchSource) ToElasticSearchSource() (*elastic.ElasticSearchSource, elastic.ServerType)
- func (s *OpenSearchSource) Validate() error
- func (s *OpenSearchSource) WithDefaults()
- type Provider
- type Sink
- type Storage
- func (s *Storage) Close()
- func (s *Storage) EstimateTableRowsCount(table abstract.TableID) (uint64, error)
- func (s *Storage) ExactTableRowsCount(table abstract.TableID) (uint64, error)
- func (s *Storage) LoadTable(ctx context.Context, table abstract.TableDescription, pusher abstract.Pusher) error
- func (s *Storage) Ping() error
- func (s *Storage) ShardTable(ctx context.Context, table abstract.TableDescription) ([]abstract.TableDescription, error)
- func (s *Storage) TableExists(table abstract.TableID) (bool, error)
- func (s *Storage) TableList(includeTableFilter abstract.IncludeTableList) (abstract.TableMap, error)
- func (s *Storage) TableSchema(ctx context.Context, table abstract.TableID) (*abstract.TableSchema, error)
Constants ¶
View Source
const ProviderType = abstract.ProviderType("opensearch")
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(lgr log.Logger, registry metrics.Registry, cp coordinator.Coordinator, transfer *model.Transfer) providers.Provider
func NewSinkImpl ¶
Types ¶
type OpenSearchDestination ¶
type OpenSearchDestination struct { ClusterID string DataNodes []OpenSearchHostPort User string Password model.SecretString SSLEnabled bool TLSFile string SubNetworkID string SecurityGroupIDs []string Cleanup model.CleanupType SanitizeDocKeys bool }
func (*OpenSearchDestination) CleanupMode ¶
func (d *OpenSearchDestination) CleanupMode() model.CleanupType
func (*OpenSearchDestination) Compatible ¶
func (d *OpenSearchDestination) Compatible(src model.Source, transferType abstract.TransferType) error
func (*OpenSearchDestination) GetProviderType ¶
func (d *OpenSearchDestination) GetProviderType() abstract.ProviderType
func (*OpenSearchDestination) Hosts ¶
func (d *OpenSearchDestination) Hosts() []string
func (*OpenSearchDestination) IsDestination ¶
func (d *OpenSearchDestination) IsDestination()
func (*OpenSearchDestination) MDBClusterID ¶
func (d *OpenSearchDestination) MDBClusterID() string
func (*OpenSearchDestination) ToElasticSearchDestination ¶
func (d *OpenSearchDestination) ToElasticSearchDestination() (*elastic.ElasticSearchDestination, elastic.ServerType)
func (*OpenSearchDestination) Transformer ¶
func (d *OpenSearchDestination) Transformer() map[string]string
func (*OpenSearchDestination) Validate ¶
func (d *OpenSearchDestination) Validate() error
func (*OpenSearchDestination) WithDefaults ¶
func (d *OpenSearchDestination) WithDefaults()
type OpenSearchHostPort ¶
type OpenSearchSource ¶
type OpenSearchSource struct { ClusterID string DataNodes []OpenSearchHostPort User string Password model.SecretString SSLEnabled bool TLSFile string SubNetworkID string SecurityGroupIDs []string DumpIndexWithMapping bool }
func (*OpenSearchSource) GetProviderType ¶
func (s *OpenSearchSource) GetProviderType() abstract.ProviderType
func (*OpenSearchSource) Hosts ¶
func (s *OpenSearchSource) Hosts() []string
func (*OpenSearchSource) IsSource ¶
func (s *OpenSearchSource) IsSource()
func (*OpenSearchSource) MDBClusterID ¶
func (s *OpenSearchSource) MDBClusterID() string
func (*OpenSearchSource) ToElasticSearchSource ¶
func (s *OpenSearchSource) ToElasticSearchSource() (*elastic.ElasticSearchSource, elastic.ServerType)
func (*OpenSearchSource) Validate ¶
func (s *OpenSearchSource) Validate() error
func (*OpenSearchSource) WithDefaults ¶
func (s *OpenSearchSource) WithDefaults()
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func (*Provider) Activate ¶
func (p *Provider) Activate(ctx context.Context, task *model.TransferOperation, tables abstract.TableMap, callbacks providers.ActivateCallbacks) error
func (*Provider) Type ¶
func (p *Provider) Type() abstract.ProviderType
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func NewStorage ¶
func NewStorage(src *OpenSearchSource, logger log.Logger, mRegistry metrics.Registry, opts ...elastic.StorageOpt) (*Storage, error)
func (*Storage) EstimateTableRowsCount ¶
func (*Storage) ExactTableRowsCount ¶
func (*Storage) ShardTable ¶
func (s *Storage) ShardTable(ctx context.Context, table abstract.TableDescription) ([]abstract.TableDescription, error)
func (*Storage) TableSchema ¶
Click to show internal directories.
Click to hide internal directories.