generator

package
v1.1.0-alpha-8 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2017 License: Apache-2.0 Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	SourceVdiskID string `validate:"nonzero"`
	TargetVdiskID string `validate:"nonzero"`
	PrivKey       string `validate:"nonzero"`
	DataShards    int    `validate:"nonzero,min=1"`
	ParityShards  int    `validate:"nonzero,min=1"`
	JobCount      int    `validate:"nonzero,min=1"`
}

Config represent generator config

type Generator

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

Generator represents a tlog data generator/copier

func New

func New(configSource config.Source, conf Config) (*Generator, error)

New creates new Generator

func (*Generator) CopyTlogData

func (g *Generator) CopyTlogData() error

CopyTlogData copy/fork tlog data

func (*Generator) GenerateFromStorage

func (g *Generator) GenerateFromStorage(parentCtx context.Context) error

GenerateFromStorage generates tlog data from block storage

Jump to

Keyboard shortcuts

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