cache

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Overview

SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2024, Unikraft GmbH and The KraftKit Authors. Licensed under the BSD-3-Clause License (the "License"). You may not use this file except in compliance with the License.

SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2024, Unikraft GmbH and The KraftKit Authors. Licensed under the BSD-3-Clause License (the "License"). You may not use this file except in compliance with the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RemoteImage

func RemoteImage(ref name.Reference, options ...remote.Option) (v1.Image, error)

RemoteImage is a wrapper for v1.Image which caches requests in-memory for previously requested image. This aids in reducing the number of lookup calls to the same images. Since v1.WithPlatform is not respected, a valid lookup will have had any additional options, such as WithTransport and WithAuth, fully satisfied.

func RemoteIndex

func RemoteIndex(ref name.Reference, options ...remote.Option) (v1.ImageIndex, error)

RemoteIndex is a wrapper for v1.RemoteIndex which caches requests in-memory for previously requested indexes. This aids in reducing the number of lookup calls to the same index. Since v1.WithPlatform is not respected, a valid lookup will have had any additional options, such as WithTransport and WithAuth, fully satisfied.

Types

This section is empty.

Jump to

Keyboard shortcuts

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