container

package
v2.4.1 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2021 License: Apache-2.0 Imports: 10 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) Run

func (bpc *BuildDockerCreateCommand) Run() error

func (*BuildDockerCreateCommand) ServerDetails

func (pc *BuildDockerCreateCommand) ServerDetails() (*config.ServerDetails, 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(serverDetails *config.ServerDetails, containerManagerType container.ContainerManagerType) error

func (*ContainerManagerCommand) Repo

func (cmc *ContainerManagerCommand) Repo() string

func (*ContainerManagerCommand) ServerDetails

func (cmc *ContainerManagerCommand) ServerDetails() *config.ServerDetails

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

func (cmc *ContainerManagerCommand) SetServerDetails(serverDetails *config.ServerDetails) *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) 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 {
	ContainerManagerCommand
	// contains filtered or unexported fields
}

func NewPullCommand

func NewPullCommand(containerManagerType container.ContainerManagerType) *PullCommand

func (*PullCommand) CommandName

func (pc *PullCommand) CommandName() string

func (*PullCommand) Run

func (pc *PullCommand) Run() error

Pull image and create build info if needed

func (*PullCommand) ServerDetails

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

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

func (pc *PushCommand) IsDetailedSummary() bool

func (*PushCommand) Result

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

func (*PushCommand) Run

func (pc *PushCommand) Run() error

Push image and create build info if needed

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