v1

package
v0.0.0-...-ccb0926 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DockerManager

type DockerManager struct {
	Cache  *cache.Cache
	Logger log.Logger
}

DockerManager is the rpc for docker management

func (*DockerManager) Start

Start a docker container based on the name. Delete the item from the cache if it had been cached previously

func (*DockerManager) Stop

Stop a docker container based on the name. Cache it if the docker container is stopped successfully

type HealthCheckService

type HealthCheckService struct {
}

HealthCheckService is the rpc

func (*HealthCheckService) Check

Check the health of the slave

func (*HealthCheckService) Watch

Watch is not used at the moment

type ServiceManager

type ServiceManager struct {
	Cache  *cache.Cache
	Logger log.Logger
}

ServiceManager is the rpc for services management

func (*ServiceManager) Start

Start a service based on the name. Delete the item from the cache if it had been cached previously

func (*ServiceManager) Stop

Stop a service based on the name. Cache it if the service is stopped successfully

type StrategyManager

type StrategyManager struct {
	Cache  *cache.Cache
	Logger log.Logger
}

StrategyManager handles recovery of services

func (*StrategyManager) Recover

Recover all services that are in the cache (have been stopped). Clean cache for every successful recovery

Jump to

Keyboard shortcuts

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