container

package
v1.2.7 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildDockerCreateCommand

type BuildDockerCreateCommand struct {
	ContainerManagerCommand
	// contains filtered or unexported fields
}

func NewBuildDockerCreateCommand

func NewBuildDockerCreateCommand() *BuildDockerCreateCommand

func (*BuildDockerCreateCommand) CommandName

func (pc *BuildDockerCreateCommand) CommandName() string

func (*BuildDockerCreateCommand) RtDetails

func (*BuildDockerCreateCommand) Run

func (bpc *BuildDockerCreateCommand) Run() error

func (*BuildDockerCreateCommand) SetImageNameWithDigest

func (bpc *BuildDockerCreateCommand) SetImageNameWithDigest(filePath string) (err error)

Set tag and manifest sha256 of an image in Artifactory. This file can be generated by Kaniko using the'--image-name-with-digest-file' flag. Kaniko is a tool to build & push container images from a Dockerfile, inside a container or Kubernetes cluster. Tag and Sha256 will be used later on to search the image in Artifactory.

type ContainerManagerCommand

type ContainerManagerCommand struct {
	// contains filtered or unexported fields
}

func (*ContainerManagerCommand) BuildConfiguration

func (cmc *ContainerManagerCommand) BuildConfiguration() *utils.BuildConfiguration

func (*ContainerManagerCommand) ImageTag

func (cmc *ContainerManagerCommand) ImageTag() string

func (*ContainerManagerCommand) PerformLogin

func (cmc *ContainerManagerCommand) PerformLogin(rtDetails *config.ArtifactoryDetails, containerManagerType container.ContainerManagerType) error

func (*ContainerManagerCommand) Repo

func (cmc *ContainerManagerCommand) Repo() string

func (*ContainerManagerCommand) RtDetails

func (*ContainerManagerCommand) SetBuildConfiguration

func (cmc *ContainerManagerCommand) SetBuildConfiguration(buildConfiguration *utils.BuildConfiguration) *ContainerManagerCommand

func (*ContainerManagerCommand) SetImageTag

func (cmc *ContainerManagerCommand) SetImageTag(imageTag string) *ContainerManagerCommand

func (*ContainerManagerCommand) SetRepo

func (*ContainerManagerCommand) SetRtDetails

func (*ContainerManagerCommand) SetSkipLogin

func (cmc *ContainerManagerCommand) SetSkipLogin(skipLogin bool) *ContainerManagerCommand

type DockerPromoteCommand

type DockerPromoteCommand struct {
	// contains filtered or unexported fields
}

func NewDockerPromoteCommand

func NewDockerPromoteCommand() *DockerPromoteCommand

func (*DockerPromoteCommand) CommandName

func (dp *DockerPromoteCommand) CommandName() string

func (*DockerPromoteCommand) RtDetails

func (*DockerPromoteCommand) Run

func (dp *DockerPromoteCommand) Run() error

func (*DockerPromoteCommand) SetParams

func (*DockerPromoteCommand) SetRtDetails

type PullCommand

type PullCommand struct {
	ContainerManagerCommand
	// contains filtered or unexported fields
}

func NewPullCommand

func NewPullCommand(containerManagerType container.ContainerManagerType) *PullCommand

func (*PullCommand) CommandName

func (pc *PullCommand) CommandName() string

func (*PullCommand) RtDetails

func (pc *PullCommand) RtDetails() (*config.ArtifactoryDetails, error)

func (*PullCommand) Run

func (pc *PullCommand) Run() error

Pull image and create build info if needed

type PushCommand

type PushCommand struct {
	ContainerManagerCommand
	// contains filtered or unexported fields
}

func NewPushCommand

func NewPushCommand(containerManager container.ContainerManagerType) *PushCommand

func (*PushCommand) CommandName

func (pc *PushCommand) CommandName() string

func (*PushCommand) RtDetails

func (pc *PushCommand) RtDetails() (*config.ArtifactoryDetails, error)

func (*PushCommand) Run

func (pc *PushCommand) Run() error

Push image and create build info if needed

func (*PushCommand) SetThreads

func (pc *PushCommand) SetThreads(threads int) *PushCommand

func (*PushCommand) Threads

func (pc *PushCommand) Threads() int

Jump to

Keyboard shortcuts

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