image

package
v0.0.0-...-e3a830e Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RandomImageFactory

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

RandomImageFactory generates random images with the specified layer size and count parameters.

func NewRandomImageFactory

func NewRandomImageFactory(seed int64, opts ...RandomImageFactoryOpt) RandomImageFactory

func (*RandomImageFactory) GenerateImage

func (f *RandomImageFactory) GenerateImage(layerSizeKB, layerCount uint, tags []string) error

GenerateImage generates unique files filled with random bytes then uses those files to build a docker image with layers filled using the randomly-generated files according to the random layer count and layer size parameters specified in RandomImageFactory

type RandomImageFactoryOpt

type RandomImageFactoryOpt func(f *RandomImageFactory)

func WithLogger

func WithLogger(l *log.Logger) RandomImageFactoryOpt

Jump to

Keyboard shortcuts

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