Documentation ¶
Index ¶
- type BuildDockerCreateCommand
- type ContainerManagerCommand
- func (cmc *ContainerManagerCommand) BuildConfiguration() *utils.BuildConfiguration
- func (cmc *ContainerManagerCommand) ImageTag() string
- func (cmc *ContainerManagerCommand) PerformLogin(rtDetails *config.ArtifactoryDetails, ...) error
- func (cmc *ContainerManagerCommand) Repo() string
- func (cmc *ContainerManagerCommand) RtDetails() *config.ArtifactoryDetails
- func (cmc *ContainerManagerCommand) SetBuildConfiguration(buildConfiguration *utils.BuildConfiguration) *ContainerManagerCommand
- func (cmc *ContainerManagerCommand) SetImageTag(imageTag string) *ContainerManagerCommand
- func (cmc *ContainerManagerCommand) SetRepo(repo string) *ContainerManagerCommand
- func (cmc *ContainerManagerCommand) SetRtDetails(rtDetails *config.ArtifactoryDetails) *ContainerManagerCommand
- func (cmc *ContainerManagerCommand) SetSkipLogin(skipLogin bool) *ContainerManagerCommand
- type DockerPromoteCommand
- func (dp *DockerPromoteCommand) CommandName() string
- func (dp *DockerPromoteCommand) RtDetails() (*config.ArtifactoryDetails, error)
- func (dp *DockerPromoteCommand) Run() error
- func (dp *DockerPromoteCommand) SetParams(params services.DockerPromoteParams) *DockerPromoteCommand
- func (dp *DockerPromoteCommand) SetRtDetails(rtDetails *config.ArtifactoryDetails) *DockerPromoteCommand
- type PullCommand
- type PushCommand
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 (pc *BuildDockerCreateCommand) RtDetails() (*config.ArtifactoryDetails, error)
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 (cmc *ContainerManagerCommand) RtDetails() *config.ArtifactoryDetails
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 (cmc *ContainerManagerCommand) SetRepo(repo string) *ContainerManagerCommand
func (*ContainerManagerCommand) SetRtDetails ¶
func (cmc *ContainerManagerCommand) SetRtDetails(rtDetails *config.ArtifactoryDetails) *ContainerManagerCommand
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 (dp *DockerPromoteCommand) RtDetails() (*config.ArtifactoryDetails, error)
func (*DockerPromoteCommand) Run ¶
func (dp *DockerPromoteCommand) Run() error
func (*DockerPromoteCommand) SetParams ¶
func (dp *DockerPromoteCommand) SetParams(params services.DockerPromoteParams) *DockerPromoteCommand
func (*DockerPromoteCommand) SetRtDetails ¶
func (dp *DockerPromoteCommand) SetRtDetails(rtDetails *config.ArtifactoryDetails) *DockerPromoteCommand
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
Click to show internal directories.
Click to hide internal directories.