swarm

package
v0.0.0-...-149ea5c Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2017 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const ServiceStatusNotExists = "not_exists"

ServiceStatusNotExists - string represents service absense

Variables

This section is empty.

Functions

func Events

func Events() (eventChan <-chan events.Message, errChan <-chan error, cancelFunc func())

Events - returns events and error channel for docker events

func GetServiceStatuses

func GetServiceStatuses(service *entities.Service)

GetServiceStatuses - loads service statused to service.Status field

func ServiceExists

func ServiceExists(service *entities.Service) bool

ServiceExists - detects wether or not service exists in swarm

func StartApplication

func StartApplication(app *entities.Application) error

StartApplication starts a whole application

func StartService

func StartService(service *entities.Service) error

StartService - starts individual service

func StopApplication

func StopApplication(app *entities.Application) error

StopApplication starts a whole application

func StopService

func StopService(service *entities.Service) (err error)

StopService - stops/removes service

func UpdateService

func UpdateService(service *entities.Service) error

UpdateService - updates running service

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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