healer

package
v0.0.0-...-31a1246 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2018 License: BSD-3-Clause Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListHealingHistory

func ListHealingHistory(filter string) ([]types.HealingEvent, error)

func MigrateHealingToEvents

func MigrateHealingToEvents() error

Types

type AppLocker

type AppLocker interface {
	Lock(appName string) bool
	Unlock(appName string)
}

type ContainerHealer

type ContainerHealer struct {
	// contains filtered or unexported fields
}

func NewContainerHealer

func NewContainerHealer(args ContainerHealerArgs) *ContainerHealer

func (*ContainerHealer) RunContainerHealer

func (h *ContainerHealer) RunContainerHealer()

func (*ContainerHealer) Shutdown

func (h *ContainerHealer) Shutdown(ctx context.Context) error

func (*ContainerHealer) String

func (h *ContainerHealer) String() string

type ContainerHealerArgs

type ContainerHealerArgs struct {
	Provisioner         DockerProvisioner
	MaxUnresponsiveTime time.Duration
	Done                chan bool
	Locker              AppLocker
}

type DockerProvisioner

type DockerProvisioner interface {
	ClusterClient() provision.BuilderDockerClient
	Cluster() *cluster.Cluster
	ActionLimiter() provision.ActionLimiter
	MoveOneContainer(container.Container, string, chan error, *sync.WaitGroup, io.Writer, container.AppLocker) container.Container
	MoveContainers(fromHost, toHost string, w io.Writer) error
	HandleMoveErrors(errors chan error, w io.Writer) error
	GetContainer(id string) (*container.Container, error)
	ListContainers(query bson.M) ([]container.Container, error)
}

Jump to

Keyboard shortcuts

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