testutil

package
v0.0.0-...-2745715 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

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

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

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

type ImagesInfo

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

func ReadImages

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

func (ImagesInfo) Filter

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

func (ImagesInfo) Find

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

func (ImagesInfo) FindAttestation

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