Documentation ¶
Index ¶
- func GetPrivadoDockerAccessKey(pullImage bool) (string, error)
- func PullLatestImage(image string, client *client.Client) (err error)
- func RemoveContainerForcefully(client *client.Client, ctx context.Context, containerId string) error
- func RunImage(opts ...RunImageOption) error
- func StopContainer(client *client.Client, ctx context.Context, containerId string) error
- func WaitForContainer(client *client.Client, ctx context.Context, containerId string) error
- type EnvVar
- type RunImageOption
- func OptionWithArgs(args []string) RunImageOption
- func OptionWithAttachedOutput() RunImageOption
- func OptionWithAutoSpawnBrowserOnURLMessages(messages []string) RunImageOption
- func OptionWithDebug(isDebug bool) RunImageOption
- func OptionWithDisabledDeduplication(disableDeduplication bool) RunImageOption
- func OptionWithDockerKeyVolume(volumeHost string) RunImageOption
- func OptionWithEntrypoint(entrypoint []string) RunImageOption
- func OptionWithEnvironmentVariables(envVars []EnvVar) RunImageOption
- func OptionWithExitErrorMessages(messages []string) RunImageOption
- func OptionWithExternalRulesVolume(volumeHost string) RunImageOption
- func OptionWithIgnoreDefaultRules(ignoreDefaultRules bool) RunImageOption
- func OptionWithInterrupt() RunImageOption
- func OptionWithLatestImage(pullImage bool) RunImageOption
- func OptionWithPackageCacheVolumes() RunImageOption
- func OptionWithSkipDependencyDownload(skipDependencyDownload bool) RunImageOption
- func OptionWithSourceVolume(volumeHost string) RunImageOption
- func OptionWithUserConfigVolume(volumeHost string) RunImageOption
- func OptionWithUserKeyVolume(volumeHost string) RunImageOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunImage ¶
func RunImage(opts ...RunImageOption) error
func StopContainer ¶
Types ¶
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
Click to show internal directories.
Click to hide internal directories.