random

package
Version: v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2022 License: Apache-2.0 Imports: 16 Imported by: 19

Documentation

Overview

Package random provides a facility for synthesizing pseudo-random images.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Image

func Image(byteSize, layers int64) (v1.Image, error)

Image returns a pseudo-randomly generated Image.

func Index

func Index(byteSize, layers, count int64) (v1.ImageIndex, error)

Index returns a pseudo-randomly generated ImageIndex with count images, each having the given number of layers of size byteSize.

func Layer

func Layer(byteSize int64, mt types.MediaType) (v1.Layer, error)

Layer returns a layer with pseudo-randomly generated content.

Types

This section is empty.

Jump to

Keyboard shortcuts

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