pull

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package pull provides options to pulling images from container registries.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Opt

type Opt func(*Options) error

Opt is a configuration option to pull a container image using github.com/thediveo/morbyd.Session.PushImage.

func WithAllTags

func WithAllTags() Opt

WithAllTags specifies that all tags of the image are to be pull from the repository.

func WithOutput

func WithOutput(w io.Writer) Opt

WithOutput specifies the writer to send the output of the image pull process to.

func WithPlatform

func WithPlatform(platform string) Opt

WithPlatform specifies to push a platform-specific manifest as a single-platform image to the registry.

func WithRegistryAuth

func WithRegistryAuth(base64cred string) Opt

WithRegistryAuth specifies the base64 encoded credentials for the registry to pull the image from.

type Options

type Options struct {
	Out io.Writer
	image.PullOptions
}

Options represent the configuration options when pulling a container image, as well as additional configuration options for handling the output of pull processes.

Jump to

Keyboard shortcuts

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