Documentation ¶
Index ¶
- Constants
- Variables
- func NewSdkSource(ctx context.Context, sourceConfig *base.SourceConfig, ...) (base.Driver, error)
- func TestSdkSource(sourceConfig *base.SourceConfig) error
- type Condition
- type DeleteRecords
- type Row
- type SdkSource
- func (s *SdkSource) Close() (multiErr error)
- func (s *SdkSource) Delete() error
- func (s *SdkSource) GetDriversInfo() *base.DriversInfo
- func (s *SdkSource) IsClosed() bool
- func (s *SdkSource) Load(config string, state string, taskLogger logging.TaskLogger, ...) error
- func (s *SdkSource) Ready() (bool, error)
- func (s *SdkSource) Type() string
- type SdkSourceRunner
- func (s *SdkSourceRunner) Close() error
- func (s *SdkSourceRunner) GetOrRotateChunk(taskLogger logging.TaskLogger, dataConsumer base.CLIDataConsumer, ...) (newChunk *base.CLIOutputRepresentation, newChunkNumber int, err error)
- func (s *SdkSourceRunner) Load(taskLogger logging.TaskLogger, dataConsumer base.CLIDataConsumer, state string) (err error)
- func (s *SdkSourceRunner) String() string
Constants ¶
View Source
const FullSyncChunkSize = 1000
View Source
const IdField = "$id"
View Source
const LatestVersion = "latest"
View Source
const RecordTimestampDst = "_record_timestamp"
View Source
const RecordTimestampSrc = "$recordTimestamp"
Variables ¶
View Source
var ErrSDKSourceCancelled = errors.New("Source runner was cancelled.")
Functions ¶
func NewSdkSource ¶
func NewSdkSource(ctx context.Context, sourceConfig *base.SourceConfig, collection *base.Collection) (base.Driver, error)
NewSdkSource returns SdkSource driver and 1. writes json files (config, catalog, state) if string/raw json was provided 2. runs discover and collects catalog.json
func TestSdkSource ¶
func TestSdkSource(sourceConfig *base.SourceConfig) error
TestSdkSource tests sdk source connection (runs validator) if docker has been ready otherwise returns errNotReady
Types ¶
type DeleteRecords ¶
type Row ¶
type Row struct { Type string `json:"type"` Message interface{} `json:"message,omitempty"` }
Row is a dto for sdk source output row representation
type SdkSource ¶
type SdkSource struct { base.AbstractCLIDriver // contains filtered or unexported fields }
SdkSource is an SdkSource CLI driver
func (*SdkSource) GetDriversInfo ¶
func (s *SdkSource) GetDriversInfo() *base.DriversInfo
GetDriversInfo returns telemetry information about the driver
func (*SdkSource) Load ¶
func (s *SdkSource) Load(config string, state string, taskLogger logging.TaskLogger, dataConsumer base.CLIDataConsumer, taskCloser base.CLITaskCloser) error
type SdkSourceRunner ¶
type SdkSourceRunner struct {
// contains filtered or unexported fields
}
func (*SdkSourceRunner) Close ¶
func (s *SdkSourceRunner) Close() error
func (*SdkSourceRunner) GetOrRotateChunk ¶
func (s *SdkSourceRunner) GetOrRotateChunk(taskLogger logging.TaskLogger, dataConsumer base.CLIDataConsumer, currentChunk *base.CLIOutputRepresentation, chunkNumber int, forceCreate bool, finalChunk bool) (newChunk *base.CLIOutputRepresentation, newChunkNumber int, err error)
func (*SdkSourceRunner) Load ¶
func (s *SdkSourceRunner) Load(taskLogger logging.TaskLogger, dataConsumer base.CLIDataConsumer, state string) (err error)
func (*SdkSourceRunner) String ¶
func (s *SdkSourceRunner) String() string
Click to show internal directories.
Click to hide internal directories.