service

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: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(opts SpecOptions) (string, error)

Create creates swarm service form Service entity

func Inspect

func Inspect(service *entities.Service) (*swarm.Service, error)

Inspect return service status

func LoadVolumeSizes

func LoadVolumeSizes(service *entities.Service)

LoadVolumeSizes loads volume sized into struct

func Logs

func Logs(service *entities.Service, linesCount int) ([]string, error)

Logs return service logs

func Remove

func Remove(service *entities.Service) error

Remove removes service

func Update

func Update(opts SpecOptions) error

Update - updates existing service

Types

type SpecOptions

type SpecOptions struct {
	Service     *entities.Service
	NetworkName string
	Index       uint64
}

SpecOptions service create params

type StatusStruct

type StatusStruct struct {
	TaskID    string
	Node      string
	Status    string
	Timestamp time.Time
	Error     string
}

StatusStruct represents service state

func Status

func Status(service *entities.Service) ([]StatusStruct, error)

Status returns service status

Jump to

Keyboard shortcuts

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