@@ -12,45 +12,45 @@ import (
1212
1313type fakeClient struct {
1414 client.Client
15- pluginCreateFunc func (createContext io.Reader , createOptions types .PluginCreateOptions ) error
16- pluginDisableFunc func (name string , disableOptions types .PluginDisableOptions ) error
17- pluginEnableFunc func (name string , options types .PluginEnableOptions ) error
18- pluginRemoveFunc func (name string , options types .PluginRemoveOptions ) error
19- pluginInstallFunc func (name string , options types .PluginInstallOptions ) (io.ReadCloser , error )
15+ pluginCreateFunc func (createContext io.Reader , createOptions client .PluginCreateOptions ) error
16+ pluginDisableFunc func (name string , disableOptions client .PluginDisableOptions ) error
17+ pluginEnableFunc func (name string , options client .PluginEnableOptions ) error
18+ pluginRemoveFunc func (name string , options client .PluginRemoveOptions ) error
19+ pluginInstallFunc func (name string , options client .PluginInstallOptions ) (io.ReadCloser , error )
2020 pluginListFunc func (filter filters.Args ) (types.PluginsListResponse , error )
2121 pluginInspectFunc func (name string ) (* types.Plugin , []byte , error )
22- pluginUpgradeFunc func (name string , options types .PluginInstallOptions ) (io.ReadCloser , error )
22+ pluginUpgradeFunc func (name string , options client .PluginInstallOptions ) (io.ReadCloser , error )
2323}
2424
25- func (c * fakeClient ) PluginCreate (_ context.Context , createContext io.Reader , createOptions types .PluginCreateOptions ) error {
25+ func (c * fakeClient ) PluginCreate (_ context.Context , createContext io.Reader , createOptions client .PluginCreateOptions ) error {
2626 if c .pluginCreateFunc != nil {
2727 return c .pluginCreateFunc (createContext , createOptions )
2828 }
2929 return nil
3030}
3131
32- func (c * fakeClient ) PluginEnable (_ context.Context , name string , enableOptions types .PluginEnableOptions ) error {
32+ func (c * fakeClient ) PluginEnable (_ context.Context , name string , enableOptions client .PluginEnableOptions ) error {
3333 if c .pluginEnableFunc != nil {
3434 return c .pluginEnableFunc (name , enableOptions )
3535 }
3636 return nil
3737}
3838
39- func (c * fakeClient ) PluginDisable (_ context.Context , name string , disableOptions types .PluginDisableOptions ) error {
39+ func (c * fakeClient ) PluginDisable (_ context.Context , name string , disableOptions client .PluginDisableOptions ) error {
4040 if c .pluginDisableFunc != nil {
4141 return c .pluginDisableFunc (name , disableOptions )
4242 }
4343 return nil
4444}
4545
46- func (c * fakeClient ) PluginRemove (_ context.Context , name string , removeOptions types .PluginRemoveOptions ) error {
46+ func (c * fakeClient ) PluginRemove (_ context.Context , name string , removeOptions client .PluginRemoveOptions ) error {
4747 if c .pluginRemoveFunc != nil {
4848 return c .pluginRemoveFunc (name , removeOptions )
4949 }
5050 return nil
5151}
5252
53- func (c * fakeClient ) PluginInstall (_ context.Context , name string , installOptions types .PluginInstallOptions ) (io.ReadCloser , error ) {
53+ func (c * fakeClient ) PluginInstall (_ context.Context , name string , installOptions client .PluginInstallOptions ) (io.ReadCloser , error ) {
5454 if c .pluginInstallFunc != nil {
5555 return c .pluginInstallFunc (name , installOptions )
5656 }
@@ -77,7 +77,7 @@ func (*fakeClient) Info(context.Context) (system.Info, error) {
7777 return system.Info {}, nil
7878}
7979
80- func (c * fakeClient ) PluginUpgrade (_ context.Context , name string , options types .PluginInstallOptions ) (io.ReadCloser , error ) {
80+ func (c * fakeClient ) PluginUpgrade (_ context.Context , name string , options client .PluginInstallOptions ) (io.ReadCloser , error ) {
8181 if c .pluginUpgradeFunc != nil {
8282 return c .pluginUpgradeFunc (name , options )
8383 }
0 commit comments