docker

package
v2.2.10 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPrivadoDockerAccessKey

func GetPrivadoDockerAccessKey(pullImage bool) (string, error)

func PullLatestImage

func PullLatestImage(image string, client *client.Client) (err error)

func RemoveContainerForcefully

func RemoveContainerForcefully(client *client.Client, ctx context.Context, containerId string) error

func RunImage

func RunImage(opts ...RunImageOption) error

func StopContainer

func StopContainer(client *client.Client, ctx context.Context, containerId string) error

func WaitForContainer

func WaitForContainer(client *client.Client, ctx context.Context, containerId string) error

Types

type EnvVar

type EnvVar struct {
	Key, Value string
}

func GetEnvsFromDockerImage

func GetEnvsFromDockerImage(imageURL string) ([]EnvVar, error)

type RunImageOption

type RunImageOption func(opts *runImageHandler)

func OptionWithArgs

func OptionWithArgs(args []string) RunImageOption

func OptionWithAttachedOutput

func OptionWithAttachedOutput() RunImageOption

func OptionWithAutoSpawnBrowserOnURLMessages

func OptionWithAutoSpawnBrowserOnURLMessages(messages []string) RunImageOption

listens for these message (we use strings.Contains) and spawns a browser with url in the message the messagePrefix must contain a URL for autospawn or this is silently ignored

func OptionWithDebug

func OptionWithDebug(isDebug bool) RunImageOption

func OptionWithDisabledDeduplication

func OptionWithDisabledDeduplication(disableDeduplication bool) RunImageOption

func OptionWithDockerKeyVolume

func OptionWithDockerKeyVolume(volumeHost string) RunImageOption

func OptionWithEntrypoint

func OptionWithEntrypoint(entrypoint []string) RunImageOption

func OptionWithEnvironmentVariables

func OptionWithEnvironmentVariables(envVars []EnvVar) RunImageOption

func OptionWithExitErrorMessages

func OptionWithExitErrorMessages(messages []string) RunImageOption

func OptionWithExternalRulesVolume

func OptionWithExternalRulesVolume(volumeHost string) RunImageOption

func OptionWithIgnoreDefaultRules

func OptionWithIgnoreDefaultRules(ignoreDefaultRules bool) RunImageOption

func OptionWithInterrupt

func OptionWithInterrupt() RunImageOption

func OptionWithLatestImage

func OptionWithLatestImage(pullImage bool) RunImageOption

func OptionWithPackageCacheVolumes

func OptionWithPackageCacheVolumes() RunImageOption

eventually, volumes for all packages for all languages will come here unless another approach for cache is decided. Therefore, suggest to not make any specific changes related to M2 package volume cache

func OptionWithSkipDependencyDownload

func OptionWithSkipDependencyDownload(skipDependencyDownload bool) RunImageOption

func OptionWithSourceVolume

func OptionWithSourceVolume(volumeHost string) RunImageOption

func OptionWithUserConfigVolume

func OptionWithUserConfigVolume(volumeHost string) RunImageOption

func OptionWithUserKeyVolume

func OptionWithUserKeyVolume(volumeHost string) RunImageOption

Jump to

Keyboard shortcuts

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