randomfiles

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FilenameSize = 16

Functions

func RandomFilename

func RandomFilename(length int) string

func WriteRandomDir

func WriteRandomDir(root string, depth int, opts *Options, client *hdfs.Client) error

func WriteRandomFile

func WriteRandomFile(root string, opts *Options, client *hdfs.Client) error

func WriteRandomFiles

func WriteRandomFiles(root string, depth int, opts *Options, client *hdfs.Client) error

Types

type Options

type Options struct {
	Out    io.Writer // output progress
	Source io.Reader // randomness source

	FileSize int // the size per file.

	Depth int // how deep the hierarchy goes
	Files int // how many files per dir
	Width int // how many dirs per dir

	RandomFanout bool // randomize fanout numbers

}

Jump to

Keyboard shortcuts

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