client

package
v0.0.0-...-fdaabfb Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ImporterClient

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

func NewImporter

func NewImporter(db fdb.Database,
	targetURL string,
	grpcPort int,
	caFile string,
	opts ...ImporterOption,
) (exp *ImporterClient, err error)

func (*ImporterClient) AssignTargets

func (exp *ImporterClient) AssignTargets() (importPlan map[string]importGroup, err error)

func (*ImporterClient) ScheduleImport

func (exp *ImporterClient) ScheduleImport(importPlan map[string]importGroup) (err error)

func (*ImporterClient) ScheduleImportByNode

func (exp *ImporterClient) ScheduleImportByNode(eg importGroup, dryRun bool) (err error)

type ImporterOption

type ImporterOption func(exp *ImporterClient)

func Dryrun

func Dryrun(dryRun bool) ImporterOption

func Logger

func Logger(logger *zap.Logger) ImporterOption

func Sample

func Sample(sample bool) ImporterOption

func WriterThreads

func WriterThreads(writerThreads int) ImporterOption

Jump to

Keyboard shortcuts

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