Documentation
¶
Index ¶
- Variables
- func CreateNetwork(name string) (string, error)
- func GetContainer(containerName string) (*types.Container, error)
- func Run(image string, args ...Arg) error
- func WithCappAdd(capStr string) func(*dockerArgs)
- func WithCredentials(credentials *registry.AuthConfig) func(*dockerArgs)
- func WithEntrypoint(entrypoint []string) func(*dockerArgs)
- func WithEnvVar(key, value string) func(*dockerArgs)
- func WithNetwork(networkName string) func(*dockerArgs)
- func WithPublishedPort(publishedPort PublishedPort) func(*dockerArgs)
- type Arg
- type PublishedPort
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrStartFailed = errors.New("failed to start container")
Functions ¶
func CreateNetwork ¶
func WithCappAdd ¶
func WithCappAdd(capStr string) func(*dockerArgs)
func WithCredentials ¶
func WithCredentials(credentials *registry.AuthConfig) func(*dockerArgs)
func WithEntrypoint ¶
func WithEntrypoint(entrypoint []string) func(*dockerArgs)
func WithEnvVar ¶
func WithEnvVar(key, value string) func(*dockerArgs)
func WithNetwork ¶
func WithNetwork(networkName string) func(*dockerArgs)
func WithPublishedPort ¶
func WithPublishedPort(publishedPort PublishedPort) func(*dockerArgs)
Types ¶
type PublishedPort ¶
Click to show internal directories.
Click to hide internal directories.