Documentation ¶
Index ¶
- func DoGKETask(tsk *task.Task, path etl.DataPath) etl.ProcessingError
- func GetSource(client stiface.Client, uri string) (etl.TestSource, etl.DataPath, int, error)
- func ProcessGKETask(ctx context.Context, path etl.DataPath, tf task.Factory) etl.ProcessingError
- func ProcessTask(fn string) (int, error)
- func ProcessTaskWithClient(client stiface.Client, fn string) (int, error)
- func ProcessTestSource(src etl.TestSource, path etl.DataPath) (int, error)
- type StandardTaskFactory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProcessGKETask ¶
ProcessGKETask interprets a filename to create a Task, Parser, and Inserter, and processes the file content. Used default BQ Sink, and GCS Source. Returns an http status code and an error if the task did not complete successfully.
func ProcessTask ¶
ProcessTask interprets a filename to create a Task, Parser, and Inserter, and processes the file content. Storage client is implicitly obtained from GetStorageClient. Returns an http status code and an error if the task did not complete successfully. DEPRECATED - should migrate to ProcessGKETask.
func ProcessTaskWithClient ¶
ProcessTaskWithClient handles processing with an injected client.
func ProcessTestSource ¶
ProcessTestSource handles processing of all TestSource contents.
Types ¶
type StandardTaskFactory ¶
type StandardTaskFactory struct { Sink factory.SinkFactory Source factory.SourceFactory Annotator factory.AnnotatorFactory }
StandardTaskFactory implements task.Factory