@ -27,31 +27,31 @@ func NewContainer(containerInfo *types.ContainerJSON, imageInfo *types.ImageInsp
// Container represents a running Docker container.
type Container struct {
L inkedToRestarting bool
Stale bool
l inkedToRestarting bool
markedForUpdate bool
containerInfo * types . ContainerJSON
imageInfo * types . ImageInspect
}
// IsLinkedToRestarting returns the current value of the L inkedToRestarting field for the container
// IsLinkedToRestarting returns the current value of the l inkedToRestarting field for the container
func ( c * Container ) IsLinkedToRestarting ( ) bool {
return c . L inkedToRestarting
return c . l inkedToRestarting
}
// Is Stale returns the current value of the Stal e field for the container
func ( c * Container ) Is Stal e( ) bool {
return c . Stal e
// Is MarkedForUpdate returns the current value of the markedForUpdat e field for the container
func ( c * Container ) Is MarkedForUpdat e( ) bool {
return c . markedForUpdat e
}
// SetLinkedToRestarting sets the L inkedToRestarting field for the container
// SetLinkedToRestarting sets the l inkedToRestarting field for the container
func ( c * Container ) SetLinkedToRestarting ( value bool ) {
c . L inkedToRestarting = value
c . l inkedToRestarting = value
}
// Set Stale implements sets the Stal e field for the container
func ( c * Container ) Set Stal e( value bool ) {
c . Stal e = value
// Set MarkedForUpdate sets the markedForUpdat e field for the container
func ( c * Container ) Set MarkedForUpdat e( value bool ) {
c . markedForUpdat e = value
}
// ContainerInfo fetches JSON info for the container
@ -208,7 +208,7 @@ func (c Container) Links() []string {
// ToRestart return whether the container should be restarted, either because
// is stale or linked to another stale container.
func ( c Container ) ToRestart ( ) bool {
return c . Stale || c . L inkedToRestarting
return c . markedForUpdate || c . l inkedToRestarting
}
// IsWatchtower returns a boolean flag indicating whether or not the current