Documentation
¶
Index ¶
- type Container
- func (c *Container) AfterStart(ctx context.Context, r *dockertest.Resource) error
- func (c *Container) BuildArgs() []docker.BuildArg
- func (c *Container) ContainerName() string
- func (c *Container) DockerFilePath() string
- func (c *Container) Env() []string
- func (c *Container) PortBindings() map[docker.Port][]docker.PortBinding
- type Params
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Container ¶
type Container struct {
Values map[string]interface{}
// contains filtered or unexported fields
}
Container metadata to load a container
func NewContainer ¶
NewContainer creates a new instance of Container
func (*Container) AfterStart ¶
AfterStart will check the connection and execute migrations
func (*Container) ContainerName ¶
func (*Container) DockerFilePath ¶
func (*Container) PortBindings ¶
func (c *Container) PortBindings() map[docker.Port][]docker.PortBinding
type Params ¶
type Params struct {
ContainerName string
DockerFilePath string
Env map[string]string
BuildArgs []docker.BuildArg
PortBindings map[docker.Port][]docker.PortBinding
AfterStart func(context.Context, *dockertest.Resource, *map[string]interface{}) error
}
Params needed to start a container from a dockerfile
Click to show internal directories.
Click to hide internal directories.