fetch

package
v1.5.27 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 17 Imported by: 1

Documentation

Overview

Package fetch implements just enough of a client for the OCI Distribution specification for use in tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Layer

func Layer(ctx context.Context, t testing.TB, from, repo string, blob claircore.Digest, opt ...Option) (*os.File, error)

Layer returns the specified layer contents, cached in the global layer cache.

Types

type Option added in v1.4.5

type Option uint

Option is options for [Fetch]

const (

	// IgnoreIntegration causes [Fetch] to use the network unconditionally.
	IgnoreIntegration Option
	// NoDecompression does no compression.
	NoDecompression
)

Notes

Bugs

  • Any compression scheme that isn't gzip isn't handled correctly.

Jump to

Keyboard shortcuts

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