Versions in this module Expand all Collapse all v1 v1.6.4 Feb 24, 2021 Changes in this version + type RunOptions struct + AuthPassword string + AuthUsername string + Cmd []string + ContainerName string + CopyFromTo map[string]string + DoNotAutoRemove bool + Env []string + ImageRepo string + ImageTag string + NetworkID string + Ports []string + type Runner struct + DockerAPI *client.Client + RunOptions RunOptions + func NewServiceRunner(opts RunOptions) (*Runner, error) + func (d *Runner) Start(ctx context.Context) (*types.ContainerJSON, []string, error) + func (d *Runner) StartService(ctx context.Context, connect ServiceAdapter) (*Service, error) + type Service struct + Cleanup func() + Config ServiceConfig + type ServiceAdapter func(ctx context.Context, host string, port int) (ServiceConfig, error) + type ServiceConfig interface + Address func() string + URL func() *url.URL + type ServiceHostPort struct + func NewServiceHostPort(host string, port int) *ServiceHostPort + func NewServiceHostPortParse(s string) (*ServiceHostPort, error) + func (s ServiceHostPort) Address() string + func (s ServiceHostPort) URL() *url.URL + type ServiceURL struct + func NewServiceURL(u url.URL) *ServiceURL + func NewServiceURLParse(s string) (*ServiceURL, error) + func (s ServiceURL) Address() string + func (s ServiceURL) URL() *url.URL