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: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExporterClient

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

func NewExporter

func NewExporter(db fdb.Database,
	targetURL string,
	grpcPort int,
	caFile string,
	opts ...ExporterOption,
) (exp *ExporterClient, err error)

func (*ExporterClient) AssignSources

func (exp *ExporterClient) AssignSources(pmap *finder.PartitionMap) (exportPlan map[string]exportGroup, err error)

func (*ExporterClient) ScheduleFetch

func (exp *ExporterClient) ScheduleFetch(exportPlan map[string]exportGroup) (err error)

func (*ExporterClient) ScheduleFetchByNode

func (exp *ExporterClient) ScheduleFetchByNode(eg exportGroup, dryRun bool) (err error)

type ExporterOption

type ExporterOption func(exp *ExporterClient)

func Collect

func Collect(collectDir string) ExporterOption

func Compress

func Compress(compress bool) ExporterOption

func Dryrun

func Dryrun(dryRun bool) ExporterOption

func ExportFormat

func ExportFormat(format string) ExporterOption

func Logger

func Logger(logger *zap.Logger) ExporterOption

func ReaderThreads

func ReaderThreads(readerThreads int) ExporterOption

func Sample

func Sample(sample int) ExporterOption

Jump to

Keyboard shortcuts

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