package random

import "github.com/google/go-containerregistry/pkg/v1/random"

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

Index

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.

Source Files

doc.go image.go index.go

Version
v0.9.0
Published
May 17, 2022
Platform
js/wasm
Imports
16 packages
Last checked
2 hours ago

Tools for package owners.