Documentation ¶
Index ¶
- type DockerPushCmd
- func (p *DockerPushCmd) AddAuth(username, password string) error
- func (p *DockerPushCmd) AddTags(tags ...string) error
- func (p *DockerPushCmd) Run(ctx context.Context) error
- func (p *DockerPushCmd) WithImageName(name string) *DockerPushCmd
- func (p *DockerPushCmd) WithRemoveAfterPush() *DockerPushCmd
- func (p *DockerPushCmd) WithResponse(res types.Responser) *DockerPushCmd
- func (p *DockerPushCmd) WithTags(tags []string) *DockerPushCmd
- func (p *DockerPushCmd) WithUseNormalizedNamed() *DockerPushCmd
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 *dockerimagetypes.PushOptions // 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
Click to show internal directories.
Click to hide internal directories.