testutils

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

SPDX-FileCopyrightText: 2021 SAP SE or an SAP affiliate company and Gardener contributors.

SPDX-License-Identifier: Apache-2.0

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareRemoteManifest

func CompareRemoteManifest(ctx context.Context, client ociclient.Client, ref string, expectedManifestDesc ocispecv1.Descriptor, expectedManifestBytes []byte, expectedCfgBytes []byte, expectedLayers [][]byte)

func CreateImage

func CreateImage(manifestMediaType string, configData []byte, layersData [][]byte) (*ocispecv1.Manifest, ocispecv1.Descriptor, map[digest.Digest][]byte)

CreateImage creates an oci image manifest.

func UploadTestImage

func UploadTestImage(ctx context.Context, client ociclient.Client, ref, manifestMediaType string, configData []byte, layersData [][]byte) (ocispecv1.Descriptor, []byte)

UploadTestImage uploads an oci image manifest to a registry

func UploadTestIndex

func UploadTestIndex(ctx context.Context, client ociclient.Client, ref, indexMediaType string, index ocispecv1.Index) (ocispecv1.Descriptor, []byte)

UploadTestIndex uploads an oci image index to a registry

Types

This section is empty.

Jump to

Keyboard shortcuts

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