Versions in this module Expand all Collapse all v0 v0.2.0 Feb 25, 2020 Changes in this version + const Failure + const Skipped + const Successful + func RunContainer(ctx context.Context, client DockerClient, t Trigger, opts RunContainerOptions) (*container.ContainerCreateCreatedBody, error) + type BuildStatus string + type Controller struct + func NewController(opts NewControllerOptions) (*Controller, error) + func (c *Controller) Close() error + func (c *Controller) HandleTrigger(ctx *gin.Context) + func (c *Controller) HandleWebHook(ctx *gin.Context) + func (c *Controller) Listen() + func (c *Controller) StopPolling() + type DockerClient interface + ContainerCreate func(ctx context.Context, config *container.Config, ...) (container.ContainerCreateCreatedBody, error) + ContainerInspect func(ctx context.Context, containerID string) (types.ContainerJSON, error) + ContainerRemove func(ctx context.Context, containerID string, options types.ContainerRemoveOptions) error + ContainerStart func(ctx context.Context, containerID string, opts types.ContainerStartOptions) error + ImagePull func(ctx context.Context, ref string, options types.ImagePullOptions) (io.ReadCloser, error) + type MessageType interface + Validate func() error + type NewControllerOptions struct + Cfg *config.Config + Client DockerClient + type Poll struct + func (p Poll) Validate() error + type RunContainerOptions struct + Name string + type Trigger struct + Command []string + ContainerName string + ImageName string + ImageTag string + Mounts []config.Mount + Ports []config.Port + func (p Trigger) Validate() error + type WebHook struct + Event gitlab.PipelineEvent + func (p WebHook) Validate() error v0.1.0 Feb 24, 2020