actions

package
v0.3.8 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckForMultipleWatchtowerInstances added in v0.3.4

func CheckForMultipleWatchtowerInstances(client container.Client, cleanup bool) error

CheckForMultipleWatchtowerInstances will ensure that there are not multiple instances of the watchtower running simultaneously. If multiple watchtower containers are detected, this function will stop and remove all but the most recently started container.

func Update

func Update(client container.Client, params UpdateParams) error

Update looks at the running Docker containers to see if any of the images used to start those containers have been updated. If a change is detected in any of the images, the associated containers are stopped and restarted with the new image.

Types

type UpdateParams added in v0.3.3

type UpdateParams struct {
	Filter      container.Filter
	Cleanup     bool
	NoRestart   bool
	Timeout     time.Duration
	MonitorOnly bool
}

UpdateParams contains all different options available to alter the behavior of the Update func

Jump to

Keyboard shortcuts

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