pc_docker

package
v0.0.0-...-235470d Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2019 License: MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

View Source
const DefaultNetwork = "plancks-net"

Variables

This section is empty.

Functions

func CreateService

func CreateService(service *model.Service) (err error)

CreateService creates a service

func DeleteServices

func DeleteServices(services []pcmodel.ServiceState) (err error)

func GetAllServiceStates

func GetAllServiceStates() (results []pcmodel.ServiceState, err error)

DockerServices gets all running docker services

func GetAllServices

func GetAllServices() (results []model.Service, err error)

func TotalReplicas

func TotalReplicas(services []swarm.Service, nodes []swarm.Node, tasks []swarm.Task) map[string]pcmodel.ServiceState

TotalReplicas returns the total number of replicas running for a service

Types

This section is empty.

Jump to

Keyboard shortcuts

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