pkg

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 14, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MutateOCITree

func MutateOCITree(
	index v1.ImageIndex,
	mutIndexFn IndexMutateFn,
	mutImageFn ImageMutateFn,
	mutDescriptorFn DescriptorMutateFn,
) (v1.ImageIndex, error)

func ReplaceImageAnnotations

func ReplaceImageAnnotations(f v1.Image, annotations map[string]string) v1.Image

func ReplaceImageIndexAnnotations

func ReplaceImageIndexAnnotations(f v1.ImageIndex, annotations map[string]string) v1.ImageIndex

func SearchOCITree added in v0.1.0

func SearchOCITree(
	index v1.ImageIndex,
	searchIndexFn IndexSearchFn,
	searchImageFn ImageSearchFn,
) error

Types

type DescriptorMutateFn

type DescriptorMutateFn func(descriptor v1.Descriptor) (v1.Descriptor, error)

type ImageMutateFn

type ImageMutateFn func(image v1.Image) (v1.Image, error)

type ImageSearchFn added in v0.1.0

type ImageSearchFn func(descriptors []*v1.Descriptor, image v1.Image) error

type IndexMutateFn

type IndexMutateFn func(index v1.ImageIndex) (v1.ImageIndex, error)

type IndexSearchFn added in v0.1.0

type IndexSearchFn func(descriptors []*v1.Descriptor, index v1.ImageIndex) error

Jump to

Keyboard shortcuts

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