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
Click to show internal directories.
Click to hide internal directories.