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.
Click to show internal directories.
Click to hide internal directories.