package
Version:
v0.0.0-...-14de809
Opens a new window with list of versions in this module.
Published: Jan 22, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 13
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package random provides a facility for synthesizing pseudo-random images.
-
func Image(byteSize, layers int64, options ...Option) (v1.Image, error)
-
func Index(byteSize, layers, count int64, options ...Option) (v1.ImageIndex, error)
-
func Layer(byteSize int64, mt types.MediaType, options ...Option) (v1.Layer, error)
-
type Option
Image returns a pseudo-randomly generated Image.
Index returns a pseudo-randomly generated ImageIndex with count images, each
having the given number of layers of size byteSize.
Layer returns a layer with pseudo-randomly generated content.
type Option func(opts *options)
Option is an optional parameter to the random functions
WithSource sets the random number generator source
Source Files
¶
Click to show internal directories.
Click to hide internal directories.