mirror of https://github.com/docker/cli.git
cli/command/stack: fakeClient: remove name for unused arg (revive)
cli/command/stack/swarm/client_test.go:46:38: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) func (cli *fakeClient) ServerVersion(ctx context.Context) (types.Version, error) { ^ cli/command/stack/swarm/client_test.go:57:36: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) func (cli *fakeClient) ServiceList(ctx context.Context, options types.ServiceListOptions) ([]swarm.Service, error) { ^ cli/command/stack/swarm/client_test.go:72:36: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) func (cli *fakeClient) NetworkList(ctx context.Context, options types.NetworkListOptions) ([]types.NetworkResource, error) { ^ cli/command/stack/swarm/client_test.go:87:35: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) func (cli *fakeClient) SecretList(ctx context.Context, options types.SecretListOptions) ([]swarm.Secret, error) { ^ cli/command/stack/swarm/client_test.go:102:35: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) func (cli *fakeClient) ConfigList(ctx context.Context, options types.ConfigListOptions) ([]swarm.Config, error) { ^ cli/command/stack/swarm/client_test.go:117:33: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) func (cli *fakeClient) TaskList(ctx context.Context, options types.TaskListOptions) ([]swarm.Task, error) { ^ cli/command/stack/swarm/client_test.go:124:33: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) func (cli *fakeClient) NodeList(ctx context.Context, options types.NodeListOptions) ([]swarm.Node, error) { ^ cli/command/stack/swarm/client_test.go:131:43: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) func (cli *fakeClient) NodeInspectWithRaw(ctx context.Context, ref string) (swarm.Node, []byte, error) { ^ cli/command/stack/swarm/client_test.go:138:38: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) func (cli *fakeClient) ServiceUpdate(ctx context.Context, serviceID string, version swarm.Version, service swarm.ServiceSpec, options types.ServiceUpdateOptions) (types.ServiceUpdateResponse, error) { ^ cli/command/stack/swarm/client_test.go:146:38: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) func (cli *fakeClient) ServiceRemove(ctx context.Context, serviceID string) error { ^ cli/command/stack/swarm/client_test.go:155:38: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) func (cli *fakeClient) NetworkRemove(ctx context.Context, networkID string) error { ^ cli/command/stack/swarm/client_test.go:164:37: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) func (cli *fakeClient) SecretRemove(ctx context.Context, secretID string) error { ^ cli/command/stack/swarm/client_test.go:173:37: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) func (cli *fakeClient) ConfigRemove(ctx context.Context, configID string) error { ^ cli/command/stack/client_test.go:46:38: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) func (cli *fakeClient) ServerVersion(ctx context.Context) (types.Version, error) { ^ cli/command/stack/client_test.go:57:36: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) func (cli *fakeClient) ServiceList(ctx context.Context, options types.ServiceListOptions) ([]swarm.Service, error) { ^ cli/command/stack/client_test.go:72:36: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) func (cli *fakeClient) NetworkList(ctx context.Context, options types.NetworkListOptions) ([]types.NetworkResource, error) { ^ cli/command/stack/client_test.go:87:35: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) func (cli *fakeClient) SecretList(ctx context.Context, options types.SecretListOptions) ([]swarm.Secret, error) { ^ cli/command/stack/client_test.go:102:35: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) func (cli *fakeClient) ConfigList(ctx context.Context, options types.ConfigListOptions) ([]swarm.Config, error) { ^ cli/command/stack/client_test.go:117:33: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) func (cli *fakeClient) TaskList(ctx context.Context, options types.TaskListOptions) ([]swarm.Task, error) { ^ cli/command/stack/client_test.go:124:33: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) func (cli *fakeClient) NodeList(ctx context.Context, options types.NodeListOptions) ([]swarm.Node, error) { ^ cli/command/stack/client_test.go:131:43: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) func (cli *fakeClient) NodeInspectWithRaw(ctx context.Context, ref string) (swarm.Node, []byte, error) { ^ cli/command/stack/client_test.go:138:38: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) func (cli *fakeClient) ServiceUpdate(ctx context.Context, serviceID string, version swarm.Version, service swarm.ServiceSpec, options types.ServiceUpdateOptions) (types.ServiceUpdateResponse, error) { ^ cli/command/stack/client_test.go:146:38: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) func (cli *fakeClient) ServiceRemove(ctx context.Context, serviceID string) error { ^ cli/command/stack/client_test.go:155:38: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) func (cli *fakeClient) NetworkRemove(ctx context.Context, networkID string) error { ^ cli/command/stack/client_test.go:164:37: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) func (cli *fakeClient) SecretRemove(ctx context.Context, secretID string) error { ^ cli/command/stack/client_test.go:173:37: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) func (cli *fakeClient) ConfigRemove(ctx context.Context, configID string) error { ^ cli/command/stack/client_test.go:182:46: unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive) func (cli *fakeClient) ServiceInspectWithRaw(ctx context.Context, serviceID string, opts types.ServiceInspectOptions) (swarm.Service, []byte, error) { ^ Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
c69640d8c1
commit
b0d0b0efcb
|
@ -43,7 +43,7 @@ type fakeClient struct {
|
||||||
configRemoveFunc func(configID string) error
|
configRemoveFunc func(configID string) error
|
||||||
}
|
}
|
||||||
|
|
||||||
func (cli *fakeClient) ServerVersion(ctx context.Context) (types.Version, error) {
|
func (cli *fakeClient) ServerVersion(context.Context) (types.Version, error) {
|
||||||
return types.Version{
|
return types.Version{
|
||||||
Version: "docker-dev",
|
Version: "docker-dev",
|
||||||
APIVersion: api.DefaultVersion,
|
APIVersion: api.DefaultVersion,
|
||||||
|
@ -54,7 +54,7 @@ func (cli *fakeClient) ClientVersion() string {
|
||||||
return cli.version
|
return cli.version
|
||||||
}
|
}
|
||||||
|
|
||||||
func (cli *fakeClient) ServiceList(ctx context.Context, options types.ServiceListOptions) ([]swarm.Service, error) {
|
func (cli *fakeClient) ServiceList(_ context.Context, options types.ServiceListOptions) ([]swarm.Service, error) {
|
||||||
if cli.serviceListFunc != nil {
|
if cli.serviceListFunc != nil {
|
||||||
return cli.serviceListFunc(options)
|
return cli.serviceListFunc(options)
|
||||||
}
|
}
|
||||||
|
@ -69,7 +69,7 @@ func (cli *fakeClient) ServiceList(ctx context.Context, options types.ServiceLis
|
||||||
return servicesList, nil
|
return servicesList, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (cli *fakeClient) NetworkList(ctx context.Context, options types.NetworkListOptions) ([]types.NetworkResource, error) {
|
func (cli *fakeClient) NetworkList(_ context.Context, options types.NetworkListOptions) ([]types.NetworkResource, error) {
|
||||||
if cli.networkListFunc != nil {
|
if cli.networkListFunc != nil {
|
||||||
return cli.networkListFunc(options)
|
return cli.networkListFunc(options)
|
||||||
}
|
}
|
||||||
|
@ -84,7 +84,7 @@ func (cli *fakeClient) NetworkList(ctx context.Context, options types.NetworkLis
|
||||||
return networksList, nil
|
return networksList, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (cli *fakeClient) SecretList(ctx context.Context, options types.SecretListOptions) ([]swarm.Secret, error) {
|
func (cli *fakeClient) SecretList(_ context.Context, options types.SecretListOptions) ([]swarm.Secret, error) {
|
||||||
if cli.secretListFunc != nil {
|
if cli.secretListFunc != nil {
|
||||||
return cli.secretListFunc(options)
|
return cli.secretListFunc(options)
|
||||||
}
|
}
|
||||||
|
@ -99,7 +99,7 @@ func (cli *fakeClient) SecretList(ctx context.Context, options types.SecretListO
|
||||||
return secretsList, nil
|
return secretsList, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (cli *fakeClient) ConfigList(ctx context.Context, options types.ConfigListOptions) ([]swarm.Config, error) {
|
func (cli *fakeClient) ConfigList(_ context.Context, options types.ConfigListOptions) ([]swarm.Config, error) {
|
||||||
if cli.configListFunc != nil {
|
if cli.configListFunc != nil {
|
||||||
return cli.configListFunc(options)
|
return cli.configListFunc(options)
|
||||||
}
|
}
|
||||||
|
@ -114,28 +114,28 @@ func (cli *fakeClient) ConfigList(ctx context.Context, options types.ConfigListO
|
||||||
return configsList, nil
|
return configsList, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (cli *fakeClient) TaskList(ctx context.Context, options types.TaskListOptions) ([]swarm.Task, error) {
|
func (cli *fakeClient) TaskList(_ context.Context, options types.TaskListOptions) ([]swarm.Task, error) {
|
||||||
if cli.taskListFunc != nil {
|
if cli.taskListFunc != nil {
|
||||||
return cli.taskListFunc(options)
|
return cli.taskListFunc(options)
|
||||||
}
|
}
|
||||||
return []swarm.Task{}, nil
|
return []swarm.Task{}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (cli *fakeClient) NodeList(ctx context.Context, options types.NodeListOptions) ([]swarm.Node, error) {
|
func (cli *fakeClient) NodeList(_ context.Context, options types.NodeListOptions) ([]swarm.Node, error) {
|
||||||
if cli.nodeListFunc != nil {
|
if cli.nodeListFunc != nil {
|
||||||
return cli.nodeListFunc(options)
|
return cli.nodeListFunc(options)
|
||||||
}
|
}
|
||||||
return []swarm.Node{}, nil
|
return []swarm.Node{}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (cli *fakeClient) NodeInspectWithRaw(ctx context.Context, ref string) (swarm.Node, []byte, error) {
|
func (cli *fakeClient) NodeInspectWithRaw(_ context.Context, ref string) (swarm.Node, []byte, error) {
|
||||||
if cli.nodeInspectWithRaw != nil {
|
if cli.nodeInspectWithRaw != nil {
|
||||||
return cli.nodeInspectWithRaw(ref)
|
return cli.nodeInspectWithRaw(ref)
|
||||||
}
|
}
|
||||||
return swarm.Node{}, nil, nil
|
return swarm.Node{}, nil, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (cli *fakeClient) ServiceUpdate(ctx context.Context, serviceID string, version swarm.Version, service swarm.ServiceSpec, options types.ServiceUpdateOptions) (types.ServiceUpdateResponse, error) {
|
func (cli *fakeClient) ServiceUpdate(_ context.Context, serviceID string, version swarm.Version, service swarm.ServiceSpec, options types.ServiceUpdateOptions) (types.ServiceUpdateResponse, error) {
|
||||||
if cli.serviceUpdateFunc != nil {
|
if cli.serviceUpdateFunc != nil {
|
||||||
return cli.serviceUpdateFunc(serviceID, version, service, options)
|
return cli.serviceUpdateFunc(serviceID, version, service, options)
|
||||||
}
|
}
|
||||||
|
@ -143,7 +143,7 @@ func (cli *fakeClient) ServiceUpdate(ctx context.Context, serviceID string, vers
|
||||||
return types.ServiceUpdateResponse{}, nil
|
return types.ServiceUpdateResponse{}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (cli *fakeClient) ServiceRemove(ctx context.Context, serviceID string) error {
|
func (cli *fakeClient) ServiceRemove(_ context.Context, serviceID string) error {
|
||||||
if cli.serviceRemoveFunc != nil {
|
if cli.serviceRemoveFunc != nil {
|
||||||
return cli.serviceRemoveFunc(serviceID)
|
return cli.serviceRemoveFunc(serviceID)
|
||||||
}
|
}
|
||||||
|
@ -152,7 +152,7 @@ func (cli *fakeClient) ServiceRemove(ctx context.Context, serviceID string) erro
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (cli *fakeClient) NetworkRemove(ctx context.Context, networkID string) error {
|
func (cli *fakeClient) NetworkRemove(_ context.Context, networkID string) error {
|
||||||
if cli.networkRemoveFunc != nil {
|
if cli.networkRemoveFunc != nil {
|
||||||
return cli.networkRemoveFunc(networkID)
|
return cli.networkRemoveFunc(networkID)
|
||||||
}
|
}
|
||||||
|
@ -161,7 +161,7 @@ func (cli *fakeClient) NetworkRemove(ctx context.Context, networkID string) erro
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (cli *fakeClient) SecretRemove(ctx context.Context, secretID string) error {
|
func (cli *fakeClient) SecretRemove(_ context.Context, secretID string) error {
|
||||||
if cli.secretRemoveFunc != nil {
|
if cli.secretRemoveFunc != nil {
|
||||||
return cli.secretRemoveFunc(secretID)
|
return cli.secretRemoveFunc(secretID)
|
||||||
}
|
}
|
||||||
|
@ -170,7 +170,7 @@ func (cli *fakeClient) SecretRemove(ctx context.Context, secretID string) error
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (cli *fakeClient) ConfigRemove(ctx context.Context, configID string) error {
|
func (cli *fakeClient) ConfigRemove(_ context.Context, configID string) error {
|
||||||
if cli.configRemoveFunc != nil {
|
if cli.configRemoveFunc != nil {
|
||||||
return cli.configRemoveFunc(configID)
|
return cli.configRemoveFunc(configID)
|
||||||
}
|
}
|
||||||
|
@ -179,7 +179,7 @@ func (cli *fakeClient) ConfigRemove(ctx context.Context, configID string) error
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (cli *fakeClient) ServiceInspectWithRaw(ctx context.Context, serviceID string, opts types.ServiceInspectOptions) (swarm.Service, []byte, error) {
|
func (cli *fakeClient) ServiceInspectWithRaw(_ context.Context, serviceID string, _ types.ServiceInspectOptions) (swarm.Service, []byte, error) {
|
||||||
return swarm.Service{
|
return swarm.Service{
|
||||||
ID: serviceID,
|
ID: serviceID,
|
||||||
Spec: swarm.ServiceSpec{
|
Spec: swarm.ServiceSpec{
|
||||||
|
|
|
@ -43,7 +43,7 @@ type fakeClient struct {
|
||||||
configRemoveFunc func(configID string) error
|
configRemoveFunc func(configID string) error
|
||||||
}
|
}
|
||||||
|
|
||||||
func (cli *fakeClient) ServerVersion(ctx context.Context) (types.Version, error) {
|
func (cli *fakeClient) ServerVersion(context.Context) (types.Version, error) {
|
||||||
return types.Version{
|
return types.Version{
|
||||||
Version: "docker-dev",
|
Version: "docker-dev",
|
||||||
APIVersion: api.DefaultVersion,
|
APIVersion: api.DefaultVersion,
|
||||||
|
@ -54,7 +54,7 @@ func (cli *fakeClient) ClientVersion() string {
|
||||||
return cli.version
|
return cli.version
|
||||||
}
|
}
|
||||||
|
|
||||||
func (cli *fakeClient) ServiceList(ctx context.Context, options types.ServiceListOptions) ([]swarm.Service, error) {
|
func (cli *fakeClient) ServiceList(_ context.Context, options types.ServiceListOptions) ([]swarm.Service, error) {
|
||||||
if cli.serviceListFunc != nil {
|
if cli.serviceListFunc != nil {
|
||||||
return cli.serviceListFunc(options)
|
return cli.serviceListFunc(options)
|
||||||
}
|
}
|
||||||
|
@ -69,7 +69,7 @@ func (cli *fakeClient) ServiceList(ctx context.Context, options types.ServiceLis
|
||||||
return servicesList, nil
|
return servicesList, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (cli *fakeClient) NetworkList(ctx context.Context, options types.NetworkListOptions) ([]types.NetworkResource, error) {
|
func (cli *fakeClient) NetworkList(_ context.Context, options types.NetworkListOptions) ([]types.NetworkResource, error) {
|
||||||
if cli.networkListFunc != nil {
|
if cli.networkListFunc != nil {
|
||||||
return cli.networkListFunc(options)
|
return cli.networkListFunc(options)
|
||||||
}
|
}
|
||||||
|
@ -84,7 +84,7 @@ func (cli *fakeClient) NetworkList(ctx context.Context, options types.NetworkLis
|
||||||
return networksList, nil
|
return networksList, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (cli *fakeClient) SecretList(ctx context.Context, options types.SecretListOptions) ([]swarm.Secret, error) {
|
func (cli *fakeClient) SecretList(_ context.Context, options types.SecretListOptions) ([]swarm.Secret, error) {
|
||||||
if cli.secretListFunc != nil {
|
if cli.secretListFunc != nil {
|
||||||
return cli.secretListFunc(options)
|
return cli.secretListFunc(options)
|
||||||
}
|
}
|
||||||
|
@ -99,7 +99,7 @@ func (cli *fakeClient) SecretList(ctx context.Context, options types.SecretListO
|
||||||
return secretsList, nil
|
return secretsList, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (cli *fakeClient) ConfigList(ctx context.Context, options types.ConfigListOptions) ([]swarm.Config, error) {
|
func (cli *fakeClient) ConfigList(_ context.Context, options types.ConfigListOptions) ([]swarm.Config, error) {
|
||||||
if cli.configListFunc != nil {
|
if cli.configListFunc != nil {
|
||||||
return cli.configListFunc(options)
|
return cli.configListFunc(options)
|
||||||
}
|
}
|
||||||
|
@ -114,28 +114,28 @@ func (cli *fakeClient) ConfigList(ctx context.Context, options types.ConfigListO
|
||||||
return configsList, nil
|
return configsList, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (cli *fakeClient) TaskList(ctx context.Context, options types.TaskListOptions) ([]swarm.Task, error) {
|
func (cli *fakeClient) TaskList(_ context.Context, options types.TaskListOptions) ([]swarm.Task, error) {
|
||||||
if cli.taskListFunc != nil {
|
if cli.taskListFunc != nil {
|
||||||
return cli.taskListFunc(options)
|
return cli.taskListFunc(options)
|
||||||
}
|
}
|
||||||
return []swarm.Task{}, nil
|
return []swarm.Task{}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (cli *fakeClient) NodeList(ctx context.Context, options types.NodeListOptions) ([]swarm.Node, error) {
|
func (cli *fakeClient) NodeList(_ context.Context, options types.NodeListOptions) ([]swarm.Node, error) {
|
||||||
if cli.nodeListFunc != nil {
|
if cli.nodeListFunc != nil {
|
||||||
return cli.nodeListFunc(options)
|
return cli.nodeListFunc(options)
|
||||||
}
|
}
|
||||||
return []swarm.Node{}, nil
|
return []swarm.Node{}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (cli *fakeClient) NodeInspectWithRaw(ctx context.Context, ref string) (swarm.Node, []byte, error) {
|
func (cli *fakeClient) NodeInspectWithRaw(_ context.Context, ref string) (swarm.Node, []byte, error) {
|
||||||
if cli.nodeInspectWithRaw != nil {
|
if cli.nodeInspectWithRaw != nil {
|
||||||
return cli.nodeInspectWithRaw(ref)
|
return cli.nodeInspectWithRaw(ref)
|
||||||
}
|
}
|
||||||
return swarm.Node{}, nil, nil
|
return swarm.Node{}, nil, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (cli *fakeClient) ServiceUpdate(ctx context.Context, serviceID string, version swarm.Version, service swarm.ServiceSpec, options types.ServiceUpdateOptions) (types.ServiceUpdateResponse, error) {
|
func (cli *fakeClient) ServiceUpdate(_ context.Context, serviceID string, version swarm.Version, service swarm.ServiceSpec, options types.ServiceUpdateOptions) (types.ServiceUpdateResponse, error) {
|
||||||
if cli.serviceUpdateFunc != nil {
|
if cli.serviceUpdateFunc != nil {
|
||||||
return cli.serviceUpdateFunc(serviceID, version, service, options)
|
return cli.serviceUpdateFunc(serviceID, version, service, options)
|
||||||
}
|
}
|
||||||
|
@ -143,7 +143,7 @@ func (cli *fakeClient) ServiceUpdate(ctx context.Context, serviceID string, vers
|
||||||
return types.ServiceUpdateResponse{}, nil
|
return types.ServiceUpdateResponse{}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (cli *fakeClient) ServiceRemove(ctx context.Context, serviceID string) error {
|
func (cli *fakeClient) ServiceRemove(_ context.Context, serviceID string) error {
|
||||||
if cli.serviceRemoveFunc != nil {
|
if cli.serviceRemoveFunc != nil {
|
||||||
return cli.serviceRemoveFunc(serviceID)
|
return cli.serviceRemoveFunc(serviceID)
|
||||||
}
|
}
|
||||||
|
@ -152,7 +152,7 @@ func (cli *fakeClient) ServiceRemove(ctx context.Context, serviceID string) erro
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (cli *fakeClient) NetworkRemove(ctx context.Context, networkID string) error {
|
func (cli *fakeClient) NetworkRemove(_ context.Context, networkID string) error {
|
||||||
if cli.networkRemoveFunc != nil {
|
if cli.networkRemoveFunc != nil {
|
||||||
return cli.networkRemoveFunc(networkID)
|
return cli.networkRemoveFunc(networkID)
|
||||||
}
|
}
|
||||||
|
@ -161,7 +161,7 @@ func (cli *fakeClient) NetworkRemove(ctx context.Context, networkID string) erro
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (cli *fakeClient) SecretRemove(ctx context.Context, secretID string) error {
|
func (cli *fakeClient) SecretRemove(_ context.Context, secretID string) error {
|
||||||
if cli.secretRemoveFunc != nil {
|
if cli.secretRemoveFunc != nil {
|
||||||
return cli.secretRemoveFunc(secretID)
|
return cli.secretRemoveFunc(secretID)
|
||||||
}
|
}
|
||||||
|
@ -170,7 +170,7 @@ func (cli *fakeClient) SecretRemove(ctx context.Context, secretID string) error
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (cli *fakeClient) ConfigRemove(ctx context.Context, configID string) error {
|
func (cli *fakeClient) ConfigRemove(_ context.Context, configID string) error {
|
||||||
if cli.configRemoveFunc != nil {
|
if cli.configRemoveFunc != nil {
|
||||||
return cli.configRemoveFunc(configID)
|
return cli.configRemoveFunc(configID)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue