push

package
v0.8.4 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 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 NewDockerPushCmd added in v0.5.0

func NewDockerPushCmd(cli types.DockerClienter) *DockerPushCmd

NewDockerPushCmd return a DockerPushCmd

func (*DockerPushCmd) AddAuth added in v0.4.0

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

AddAuth append new tags to DockerBuilder

func (*DockerPushCmd) AddTags added in v0.5.0

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

AddTags append new tags to DockerBuilder

func (*DockerPushCmd) Run

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

Run performs the push action

func (*DockerPushCmd) WithImageName added in v0.6.0

func (p *DockerPushCmd) WithImageName(name string) *DockerPushCmd

WithImageName set to push image automatically after its build

func (*DockerPushCmd) WithRemoveAfterPush added in v0.5.0

func (p *DockerPushCmd) WithRemoveAfterPush() *DockerPushCmd

WithRemoveAfterPush set to remove source image once the image is pushed

func (*DockerPushCmd) WithResponse added in v0.5.0

func (p *DockerPushCmd) WithResponse(res types.Responser) *DockerPushCmd

WithResponse set responser attribute to DockerPushCmd

func (*DockerPushCmd) WithTags added in v0.5.0

func (p *DockerPushCmd) WithTags(tags []string) *DockerPushCmd

WithTags set tags to DockerPushCmd

func (*DockerPushCmd) WithUseNormalizedNamed added in v0.5.0

func (p *DockerPushCmd) WithUseNormalizedNamed() *DockerPushCmd

WithUseNormalizedNamed set to use normalized named to DockerPushCmd

Jump to

Keyboard shortcuts

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