load

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package load provides options for image load.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ImageLoadOptions

type ImageLoadOptions struct {
	Input     io.Reader
	Quiet     bool
	Platforms []ocispec.Platform
}

ImageLoadOptions is the image load options.

type SetImageLoadOption

type SetImageLoadOption func(*ImageLoadOptions) error

SetImageLoadOption is a function that sets the image load options.

func WithInput

func WithInput(input io.Reader) SetImageLoadOption

WithInput sets the input for the image load.

func WithPlatforms

func WithPlatforms(setters ...create.SetPlatformConfig) SetImageLoadOption

WithPlatforms sets the platforms for the image load.

func WithQuiet

func WithQuiet(quiet bool) SetImageLoadOption

WithQuiet sets the quiet flag for the image load.

Jump to

Keyboard shortcuts

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