Documentation ¶
Index ¶
- Constants
- func Events() (eventChan <-chan events.Message, errChan <-chan error, cancelFunc func())
- func GetServiceStatuses(service *entities.Service)
- func ServiceExists(service *entities.Service) bool
- func StartApplication(app *entities.Application) error
- func StartService(service *entities.Service) error
- func StopApplication(app *entities.Application) error
- func StopService(service *entities.Service) (err error)
- func UpdateService(service *entities.Service) error
Constants ¶
View Source
const ServiceStatusNotExists = "not_exists"
ServiceStatusNotExists - string represents service absense
Variables ¶
This section is empty.
Functions ¶
func GetServiceStatuses ¶
GetServiceStatuses - loads service statused to service.Status field
func ServiceExists ¶
ServiceExists - detects wether or not service exists in swarm
func StartApplication ¶
func StartApplication(app *entities.Application) error
StartApplication starts a whole application
func StartService ¶
StartService - starts individual service
func StopApplication ¶
func StopApplication(app *entities.Application) error
StopApplication starts a whole application
func StopService ¶
StopService - stops/removes service
func UpdateService ¶
UpdateService - updates running service
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.