Skip to content

Commit 036d3a6

Browse files
committed
deprecate cli/command/stack/swarm
Functions and types in this package were exported as part of the "compose on kubernetes" feature, which was deprecated and removed. These functions are meant for internal use, and will be removed in the next release. Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent f0e5a0d commit 036d3a6

File tree

5 files changed

+10
-0
lines changed

5 files changed

+10
-0
lines changed

‎cli/command/stack/swarm/deploy.go‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ const (
2323
)
2424

2525
// RunDeploy is the swarm implementation of docker stack deploy
26+
//
27+
// Deprecated: this function was for internal use and will be removed in the next release.
2628
func RunDeploy(ctx context.Context, dockerCLI command.Cli, flags *pflag.FlagSet, opts *options.Deploy, cfg *composetypes.Config) error {
2729
if err := validateResolveImageFlag(opts); err != nil {
2830
return err

‎cli/command/stack/swarm/list.go‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ import (
1010
)
1111

1212
// GetStacks lists the swarm stacks.
13+
//
14+
// Deprecated: this function was for internal use and will be removed in the next release.
1315
func GetStacks(ctx context.Context, apiClient client.ServiceAPIClient) ([]*formatter.Stack, error) {
1416
services, err := apiClient.ServiceList(
1517
ctx,

‎cli/command/stack/swarm/ps.go‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ import (
1212
)
1313

1414
// RunPS is the swarm implementation of docker stack ps
15+
//
16+
// Deprecated: this function was for internal use and will be removed in the next release.
1517
func RunPS(ctx context.Context, dockerCLI command.Cli, opts options.PS) error {
1618
filter := getStackFilterFromOpt(opts.Namespace, opts.Filter)
1719

‎cli/command/stack/swarm/remove.go‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ import (
1515
)
1616

1717
// RunRemove is the swarm implementation of docker stack remove
18+
//
19+
// Deprecated: this function was for internal use and will be removed in the next release.
1820
func RunRemove(ctx context.Context, dockerCli command.Cli, opts options.Remove) error {
1921
apiClient := dockerCli.Client()
2022

‎cli/command/stack/swarm/services.go‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ import (
1111
)
1212

1313
// GetServices is the swarm implementation of listing stack services
14+
//
15+
// Deprecated: this function was for internal use and will be removed in the next release.
1416
func GetServices(ctx context.Context, dockerCLI command.Cli, opts options.Services) ([]swarm.Service, error) {
1517
var (
1618
err error

0 commit comments

Comments
 (0)