docker_service

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteNetwork

func DeleteNetwork(appName string) error

func GetImageDigest

func GetImageDigest(baseImage string) (string, error)

func GetNextFreePorts

func GetNextFreePorts(count int) ([]uint32, error)

func GetRunningService

func GetRunningService(appName string) (*swarm.Service, error)

func IsServiceRunning

func IsServiceRunning(appName string) bool

func PullImage

func PullImage(baseImage string) error

func StartService

func StartService(serviceSpec swarm.ServiceSpec, options types.ServiceCreateOptions) error

func StopService

func StopService(serviceName string) error

func SwarmInfo

func SwarmInfo() *swarm.Swarm

func UpdateService

func UpdateService(existingService *swarm.Service, newServiceSpec *swarm.ServiceSpec) error

func UpsertNetwork

func UpsertNetwork(networkName string) error

func Version

func Version() *string

Types

This section is empty.

Jump to

Keyboard shortcuts

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