Documentation
¶
Index ¶
- 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 RunImageOption
- func OptionWithArgs(args []string) RunImageOption
- func OptionWithAttachedOutput() RunImageOption
- func OptionWithAutoSpawnBrowser() RunImageOption
- func OptionWithDebug(isDebug bool) RunImageOption
- func OptionWithExitErrorMessages(messages []string) RunImageOption
- func OptionWithInterrupt() RunImageOption
- func OptionWithLicenseVolume(volumeHost string) RunImageOption
- func OptionWithProgressLoader(duringLoadMessages []string, afterLoadMessages []string) RunImageOption
- func OptionWithSourceVolume(volumeHost string) RunImageOption
- func OptionWithWebPort(portHost int) 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 OptionWithAutoSpawnBrowser ¶
func OptionWithAutoSpawnBrowser() RunImageOption
func OptionWithDebug ¶
func OptionWithDebug(isDebug bool) RunImageOption
func OptionWithExitErrorMessages ¶
func OptionWithExitErrorMessages(messages []string) RunImageOption
func OptionWithInterrupt ¶
func OptionWithInterrupt() RunImageOption
func OptionWithLicenseVolume ¶
func OptionWithLicenseVolume(volumeHost string) RunImageOption
func OptionWithProgressLoader ¶
func OptionWithProgressLoader(duringLoadMessages []string, afterLoadMessages []string) RunImageOption
func OptionWithSourceVolume ¶
func OptionWithSourceVolume(volumeHost string) RunImageOption
func OptionWithWebPort ¶
func OptionWithWebPort(portHost int) RunImageOption
Click to show internal directories.
Click to hide internal directories.