pull

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

package pull provides options for the image pull.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SetImagePullOption

type SetImagePullOption func(*image.PullOptions) error

SetImagePullOption is a function that sets a parameter for the image pull.

func WithCurrentPlatform

func WithCurrentPlatform() SetImagePullOption

WithCurrentPlatform sets the platform for the image pull to the current platform. (GOARCH)

func WithPlatform

func WithPlatform(platform string) SetImagePullOption

WithPlatform sets the platform for the image pull.

func WithPrivledgeFunc

func WithPrivledgeFunc(authFn func(ctx context.Context) (string, error)) SetImagePullOption

WithPrivledgeFn sets the privilege function for the image pull.

func WithPullAllPlatforms

func WithPullAllPlatforms() SetImagePullOption

WithPullAllPlatforms sets the pull all platforms associated with the image (e.g., linux/amd64, linux/arm64, etc.).

func WithRegistryAuth

func WithRegistryAuth(creds auth.Auth) SetImagePullOption

WithRegistryAuth sets the registry auth for the image pull.

Jump to

Keyboard shortcuts

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