Help us shape the future of Go! Take the 2026 Go Developer Survey

testutil

package
v0.34.1 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2026 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadTarToMap

func ReadTarToMap(dt []byte, compressed bool) (map[string]*TarItem, error)

Types

type ImageInfo added in v0.11.0

type ImageInfo struct {
	Desc      ocispecs.Descriptor
	Manifest  ocispecs.Manifest
	Img       ocispecs.Image
	Layers    []map[string]*TarItem
	LayersRaw [][]byte
	// contains filtered or unexported fields
}

func ReadImage added in v0.11.0

func ReadImage(ctx context.Context, p content.Provider, desc ocispecs.Descriptor) (*ImageInfo, error)

type ImagesInfo added in v0.11.0

type ImagesInfo struct {
	Desc   ocispecs.Descriptor
	Index  ocispecs.Index
	Images []*ImageInfo
}

func ReadImages added in v0.11.0

func ReadImages(ctx context.Context, p content.Provider, desc ocispecs.Descriptor) (*ImagesInfo, error)

func (ImagesInfo) Filter added in v0.11.0

func (idx ImagesInfo) Filter(platform string) *ImagesInfo

func (ImagesInfo) Find added in v0.11.0

func (idx ImagesInfo) Find(platform string) *ImageInfo

func (ImagesInfo) FindAttestation added in v0.11.0

func (idx ImagesInfo) FindAttestation(platform string) *ImageInfo

type TarItem

type TarItem struct {
	Header *tar.Header
	Data   []byte
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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