import "github.com/hashicorp/vault/helper/testhelpers/docker"
type RunOptions struct { ImageRepo string ImageTag string ContainerName string Cmd []string Env []string NetworkID string CopyFromTo map[string]string Ports []string DoNotAutoRemove bool AuthUsername string AuthPassword string }
type Runner struct { DockerAPI *client.Client RunOptions RunOptions }
func NewServiceRunner(opts RunOptions) (*Runner, error)
type Service struct { Config ServiceConfig Cleanup func() }
ServiceAdapter verifies connectivity to the service, then returns either the connection string (typically a URL) and nil, or empty string and an error.
type ServiceHostPort struct {
// contains filtered or unexported fields
}
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 {
// contains filtered or unexported fields
}
func NewServiceURL(u url.URL) *ServiceURL
func NewServiceURLParse(s string) (*ServiceURL, error)
func (s ServiceURL) Address() string
func (s ServiceURL) URL() *url.URL
Package docker imports 19 packages (graph) and is imported by 18 packages. Updated 2020-10-12. Refresh now. Tools for package owners.