Documentation ¶
Overview ¶
Package sync manages step that synchronize datasets between datasources
Index ¶
- func Load(ctx context.Context, log *logrus.Entry, recipePath string, name string, ...) (priority uint, steps []common.Steper, err error)
- type DestinationConfig
- type FilterConfig
- type SourceConfig
- type Step
- func (st *Step) Cancel(log *logrus.Entry)
- func (st *Step) Do(ctx context.Context, log *logrus.Entry) error
- func (st *Step) Finish(log *logrus.Entry)
- func (st *Step) Init(ctx context.Context, log *logrus.Entry) error
- func (st *Step) PostLoad(log *logrus.Entry, superseed map[string]string) (err error)
- func (st *Step) ToSkip(ctx context.Context, log *logrus.Entry) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Load ¶
func Load(ctx context.Context, log *logrus.Entry, recipePath string, name string, nameIndex int, v *viper.Viper, dss datasource.Datasourcers, provider provider.Provider, force bool, dryRun bool, limitedTags []string) (priority uint, steps []common.Steper, err error)
Load data from step file using its viper representation a return priority and list of steps.
Types ¶
type DestinationConfig ¶
type DestinationConfig struct { Tags []string Engines []string Types []string Table string Key string Mode string Queries []string }
DestinationConfig type for destination contain all possible fields without verification.
type FilterConfig ¶
FilterConfig type for filter contain all possible fields without verification.
type SourceConfig ¶
type SourceConfig struct { Tags []string Engines []string Types []string Table string Where string }
SourceConfig type for source contain all possible fields without verification.
type Step ¶
type Step struct { Name string // contains filtered or unexported fields }
Step informations.
func (*Step) Finish ¶
Finish manage the finish of the step (called after all other step of the same priority has ended their Do).
Click to show internal directories.
Click to hide internal directories.