push

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 push provides options to pushing images to 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 push 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 pushed to the repository.

func WithOutput

func WithOutput(w io.Writer) Opt

WithOutput specifies the writer to send the output of the image push 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 push the image to.

type Options

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

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

Jump to

Keyboard shortcuts

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