container

package
v2.18.7 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Artifactory 'MinRtVersionForRepoFetching' version and above, returns the image's repository in Artifactory.
	MinRtVersionForRepoFetching = "7.33.3"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildDockerCreateCommand

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

func NewBuildDockerCreateCommand

func NewBuildDockerCreateCommand() *BuildDockerCreateCommand

func (*BuildDockerCreateCommand) CommandName

func (bdc *BuildDockerCreateCommand) CommandName() string

func (*BuildDockerCreateCommand) Run

func (bdc *BuildDockerCreateCommand) Run() error

func (*BuildDockerCreateCommand) ServerDetails

func (bdc *BuildDockerCreateCommand) ServerDetails() (*config.ServerDetails, error)

func (*BuildDockerCreateCommand) SetImageNameWithDigest

func (bdc *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 or by buildx CLI using '--metadata-file' flag. Tag and Sha256 will be used later on to search the image in Artifactory.

type ContainerCommand added in v2.10.0

type ContainerCommand struct {
	ContainerCommandBase
	// contains filtered or unexported fields
}

General utils for docker/podman commands

func NewContainerManagerCommand added in v2.10.0

func NewContainerManagerCommand(containerManagerType container.ContainerManagerType) *ContainerCommand

func (*ContainerCommand) PerformLogin added in v2.10.0

func (cm *ContainerCommand) PerformLogin(serverDetails *config.ServerDetails, containerManagerType container.ContainerManagerType) error

func (*ContainerCommand) SetCmdParams added in v2.10.0

func (cm *ContainerCommand) SetCmdParams(cmdParams []string) *ContainerCommand

func (*ContainerCommand) SetSkipLogin added in v2.10.0

func (cm *ContainerCommand) SetSkipLogin(skipLogin bool) *ContainerCommand

type ContainerCommandBase added in v2.10.0

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

func (*ContainerCommandBase) BuildConfiguration added in v2.10.0

func (ccb *ContainerCommandBase) BuildConfiguration() *utils.BuildConfiguration

func (*ContainerCommandBase) GetRepo added in v2.10.0

func (ccb *ContainerCommandBase) GetRepo() (string, error)

Returns the repository name that contains this image.

func (*ContainerCommandBase) ImageTag added in v2.10.0

func (ccb *ContainerCommandBase) ImageTag() string

func (*ContainerCommandBase) IsGetRepoSupported added in v2.10.0

func (ccb *ContainerCommandBase) IsGetRepoSupported() (bool, error)

Since 'RtMinVersion' version of Artifactory we can fetch the docker repository without the user input (witch is deprecated).

func (*ContainerCommandBase) ServerDetails added in v2.10.0

func (ccb *ContainerCommandBase) ServerDetails() *config.ServerDetails

func (*ContainerCommandBase) SetBuildConfiguration added in v2.10.0

func (ccb *ContainerCommandBase) SetBuildConfiguration(buildConfiguration *utils.BuildConfiguration) *ContainerCommandBase

func (*ContainerCommandBase) SetImageTag added in v2.10.0

func (ccb *ContainerCommandBase) SetImageTag(imageTag string) *ContainerCommandBase

func (*ContainerCommandBase) SetRepo added in v2.10.0

func (ccb *ContainerCommandBase) SetRepo(repo string) *ContainerCommandBase

func (*ContainerCommandBase) SetServerDetails added in v2.10.0

func (ccb *ContainerCommandBase) SetServerDetails(serverDetails *config.ServerDetails) *ContainerCommandBase

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) Run

func (dp *DockerPromoteCommand) Run() error

func (*DockerPromoteCommand) ServerDetails

func (dp *DockerPromoteCommand) ServerDetails() (*config.ServerDetails, error)

func (*DockerPromoteCommand) SetParams

func (*DockerPromoteCommand) SetServerDetails

func (dp *DockerPromoteCommand) SetServerDetails(serverDetails *config.ServerDetails) *DockerPromoteCommand

type PullCommand

type PullCommand struct {
	ContainerCommand
}

func NewPullCommand

func NewPullCommand(containerManagerType container.ContainerManagerType) *PullCommand

func (*PullCommand) CommandName

func (pc *PullCommand) CommandName() string

func (*PullCommand) Run

func (pc *PullCommand) Run() error

func (*PullCommand) ServerDetails

func (pc *PullCommand) ServerDetails() (*config.ServerDetails, error)

type PushCommand

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

func NewPushCommand

func NewPushCommand(containerManagerType container.ContainerManagerType) *PushCommand

func (*PushCommand) CommandName

func (pc *PushCommand) CommandName() string

func (*PushCommand) IsDetailedSummary

func (pc *PushCommand) IsDetailedSummary() bool

func (*PushCommand) Result

func (pc *PushCommand) Result() *commandsutils.Result

func (*PushCommand) Run

func (pc *PushCommand) Run() error

func (*PushCommand) ServerDetails

func (pc *PushCommand) ServerDetails() (*config.ServerDetails, error)

func (*PushCommand) SetDetailedSummary

func (pc *PushCommand) SetDetailedSummary(detailedSummary bool) *PushCommand

func (*PushCommand) SetResult

func (pc *PushCommand) SetResult(result *commandsutils.Result) *PushCommand

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