service

package
v0.0.0-...-b313b0a Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2024 License: GPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainerToServiceName

func ContainerToServiceName(containerNames []string, stackName string) string

ContainerToServiceName converts a container name to a service name.

func GetService

func GetService(c context.Context, cl *client.Client, filters filters.Args, prompt bool) (swarm.Service, error)

GetService retrieves a service container. If prompt is true and the retrievd count of service containers does not match 1, then a prompt is presented to let the user choose. A count of 0 is handled gracefully.

func GetServiceByLabel

func GetServiceByLabel(c context.Context, cl *client.Client, label string, prompt bool) (swarm.Service, error)

GetService retrieves a service container based on a label. If prompt is true and the retrievd count of service containers does not match 1, then a prompt is presented to let the user choose. An error is returned when no service is found.

Types

This section is empty.

Jump to

Keyboard shortcuts

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