File tree Expand file tree Collapse file tree 4 files changed +0
-76
lines changed
Expand file tree Collapse file tree 4 files changed +0
-76
lines changed Original file line number Diff line number Diff line change @@ -15,16 +15,6 @@ import (
1515 "github.com/spf13/cobra"
1616)
1717
18- // CreateOptions specifies some options that are used when creating a config.
19- //
20- // Deprecated: this type was for internal use and will be removed in the next release.
21- type CreateOptions struct {
22- Name string
23- TemplateDriver string
24- File string
25- Labels opts.ListOpts
26- }
27-
2818// createOptions specifies some options that are used when creating a config.
2919type createOptions struct {
3020 name string
@@ -57,18 +47,6 @@ func newConfigCreateCommand(dockerCLI command.Cli) *cobra.Command {
5747 return cmd
5848}
5949
60- // RunConfigCreate creates a config with the given options.
61- //
62- // Deprecated: this function was for internal use and will be removed in the next release.
63- func RunConfigCreate (ctx context.Context , dockerCLI command.Cli , options CreateOptions ) error {
64- return runCreate (ctx , dockerCLI , createOptions {
65- name : options .Name ,
66- templateDriver : options .TemplateDriver ,
67- file : options .File ,
68- labels : options .Labels ,
69- })
70- }
71-
7250// runCreate creates a config with the given options.
7351func runCreate (ctx context.Context , dockerCLI command.Cli , options createOptions ) error {
7452 apiClient := dockerCLI .Client ()
Original file line number Diff line number Diff line change @@ -15,15 +15,6 @@ import (
1515 "github.com/spf13/cobra"
1616)
1717
18- // InspectOptions contains options for the docker config inspect command.
19- //
20- // Deprecated: this type was for internal use and will be removed in the next release.
21- type InspectOptions struct {
22- Names []string
23- Format string
24- Pretty bool
25- }
26-
2718// inspectOptions contains options for the docker config inspect command.
2819type inspectOptions struct {
2920 names []string
@@ -51,17 +42,6 @@ func newConfigInspectCommand(dockerCLI command.Cli) *cobra.Command {
5142 return cmd
5243}
5344
54- // RunConfigInspect inspects the given Swarm config.
55- //
56- // Deprecated: this function was for internal use and will be removed in the next release.
57- func RunConfigInspect (ctx context.Context , dockerCLI command.Cli , opts InspectOptions ) error {
58- return runInspect (ctx , dockerCLI , inspectOptions {
59- names : opts .Names ,
60- format : opts .Format ,
61- pretty : opts .Pretty ,
62- })
63- }
64-
6545// runInspect inspects the given Swarm config.
6646func runInspect (ctx context.Context , dockerCLI command.Cli , opts inspectOptions ) error {
6747 apiClient := dockerCLI .Client ()
Original file line number Diff line number Diff line change @@ -15,15 +15,6 @@ import (
1515 "github.com/spf13/cobra"
1616)
1717
18- // ListOptions contains options for the docker config ls command.
19- //
20- // Deprecated: this type was for internal use and will be removed in the next release.
21- type ListOptions struct {
22- Quiet bool
23- Format string
24- Filter opts.FilterOpt
25- }
26-
2718// listOptions contains options for the docker config ls command.
2819type listOptions struct {
2920 quiet bool
@@ -53,17 +44,6 @@ func newConfigListCommand(dockerCLI command.Cli) *cobra.Command {
5344 return cmd
5445}
5546
56- // RunConfigList lists Swarm configs.
57- //
58- // Deprecated: this function was for internal use and will be removed in the next release.
59- func RunConfigList (ctx context.Context , dockerCLI command.Cli , options ListOptions ) error {
60- return runList (ctx , dockerCLI , listOptions {
61- quiet : options .Quiet ,
62- format : options .Format ,
63- filter : options .Filter ,
64- })
65- }
66-
6747// runList lists Swarm configs.
6848func runList (ctx context.Context , dockerCLI command.Cli , options listOptions ) error {
6949 apiClient := dockerCLI .Client ()
Original file line number Diff line number Diff line change @@ -10,13 +10,6 @@ import (
1010 "github.com/spf13/cobra"
1111)
1212
13- // RemoveOptions contains options for the docker config rm command.
14- //
15- // Deprecated: this type was for internal use and will be removed in the next release.
16- type RemoveOptions struct {
17- Names []string
18- }
19-
2013func newConfigRemoveCommand (dockerCLI command.Cli ) * cobra.Command {
2114 return & cobra.Command {
2215 Use : "rm CONFIG [CONFIG...]" ,
@@ -32,13 +25,6 @@ func newConfigRemoveCommand(dockerCLI command.Cli) *cobra.Command {
3225 }
3326}
3427
35- // RunConfigRemove removes the given Swarm configs.
36- //
37- // Deprecated: this function was for internal use and will be removed in the next release.
38- func RunConfigRemove (ctx context.Context , dockerCLI command.Cli , opts RemoveOptions ) error {
39- return runRemove (ctx , dockerCLI , opts .Names )
40- }
41-
4228// runRemove removes the given Swarm configs.
4329func runRemove (ctx context.Context , dockerCLI command.Cli , names []string ) error {
4430 apiClient := dockerCLI .Client ()
You can’t perform that action at this time.
0 commit comments