push

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DockerPushCmd

type DockerPushCmd struct {
	// Cli is the docker client to use
	Cli types.DockerClienter
	// ImagePushOptions from docker sdk
	ImagePushOptions *dockertypes.ImagePushOptions
	// ImageName is the name of the image
	ImageName string
	// Tags is a list of the images to push
	Tags []string
	// Response manages the docker client output
	Response types.Responser
	// UseNormalizedNamed when is true tags are transformed to a fully qualified reference
	UseNormalizedNamed bool
	// RemoveAfterPush when is true the image from local is removed after push
	RemoveAfterPush bool
}

DockerPushCmd is used to push images to docker registry

func (*DockerPushCmd) AddAuth added in v0.4.0

func (p *DockerPushCmd) AddAuth(username, password string) error

AddAuth append new tags to DockerBuilder

func (*DockerPushCmd) AddTag added in v0.4.0

func (p *DockerPushCmd) AddTag(tags ...string) error

AddTag append new tags to DockerBuilder

func (*DockerPushCmd) Run

func (p *DockerPushCmd) Run(ctx context.Context) error

Run performs the push action

Jump to

Keyboard shortcuts

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