cleaner

package
v0.13.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 4, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package cleaner exposes an API to communicate with Gnomock Cleaner, a separate process that waits for incoming connections and terminates running containers when these connections are closed.

Index

Constants

View Source
const (
	Image = "docker.io/orlangure/gnomock-cleaner"
	Port  = 8008
)

Image and Port to create Cleaner containers.

Variables

This section is empty.

Functions

func Notify

func Notify(ctx context.Context, addr, id string) error

Notify sends a new request to the cleaner process running at the provided address. This connection hangs (cleaner does not respond) until the provided context is canceled. After that, the connection terminates, and it cleaner kill the container with the provided id.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL