Plumb contexts through commands
This is to prepare for otel support. Signed-off-by: Brian Goff <cpuguy83@gmail.com> Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
committed by
Sebastiaan van Stijn
parent
9eb632dc7c
commit
5400a48aaf
@ -11,10 +11,9 @@ import (
|
||||
)
|
||||
|
||||
// GetServices is the swarm implementation of listing stack services
|
||||
func GetServices(dockerCli command.Cli, opts options.Services) ([]swarm.Service, error) {
|
||||
func GetServices(ctx context.Context, dockerCli command.Cli, opts options.Services) ([]swarm.Service, error) {
|
||||
var (
|
||||
err error
|
||||
ctx = context.Background()
|
||||
client = dockerCli.Client()
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user