tasks

package
v0.0.0-...-5f8b2a8 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2021 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ExtCompressedNDJSON = ".ndjson.gz"
)

Variables

This section is empty.

Functions

func IndexCollectProjects

func IndexCollectProjects(opts IndexMigrateOptions, out *[]string) conc.Task

func IndexMigrate

func IndexMigrate(opts IndexMigrateOptions) conc.Task

func IndexMigrateNeo

func IndexMigrateNeo(opts IndexMigrateOptions) conc.Task

func PrintMemUsageAndGC

func PrintMemUsageAndGC(label string)

func ProjectExportCompressedData

func ProjectExportCompressedData(opts ProjectMigrateOptions) conc.Task

func ProjectMigrate

func ProjectMigrate(opts ProjectMigrateOptions) conc.Task

func ProjectUploadCompressedData

func ProjectUploadCompressedData(opts ProjectMigrateOptions) conc.Task

Types

type IndexMigrateOptions

type IndexMigrateOptions struct {
	ESClient         *elastic.Client
	COSClient        *cos.Client
	NoDelete         bool
	Dir              string
	Index            string
	BatchSize        int
	Concurrency      int
	CompressionLevel int
}

func (IndexMigrateOptions) Workspace

func (opts IndexMigrateOptions) Workspace() string

type ProjectMigrateOptions

type ProjectMigrateOptions struct {
	IndexMigrateOptions
	Project string
}

func (ProjectMigrateOptions) FilenameLocal

func (opts ProjectMigrateOptions) FilenameLocal() string

func (ProjectMigrateOptions) FilenameRemote

func (opts ProjectMigrateOptions) FilenameRemote() string

Jump to

Keyboard shortcuts

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