testutil

package
v0.13.0-beta1 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2023 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