container

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package container contains functions and methods for starting a container.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainerExists

func ContainerExists(ctx context.Context, cli *client.Client, containerName string) (string, error)

func ContainerIP

func ContainerIP(ctx context.Context, cli *client.Client, containerID string) (string, error)

func StartContainer

func StartContainer(ctx context.Context, cli *client.Client, config *container.Config, hostConfig *container.HostConfig, imageName, containerName string) (string, error)

Types

type ContainerExistsError

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

func NewContainerExistsError

func NewContainerExistsError(name, id string) *ContainerExistsError

func (*ContainerExistsError) Error

func (e *ContainerExistsError) Error() string

type DatabaseOptions

type DatabaseOptions interface {
	ImageName() string
	ContainerName() string
	DataSourceName() string
	ContainerConfig() *container.Config
}

Jump to

Keyboard shortcuts

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