(_ context.Context, options client.NetworkListOptions)
| 63 | } |
| 64 | |
| 65 | func (cli *fakeClient) NetworkList(_ context.Context, options client.NetworkListOptions) (client.NetworkListResult, error) { |
| 66 | if cli.networkListFunc != nil { |
| 67 | return cli.networkListFunc(options) |
| 68 | } |
| 69 | |
| 70 | namespace := namespaceFromFilters(options.Filters) |
| 71 | networksList := client.NetworkListResult{} |
| 72 | for _, name := range cli.networks { |
| 73 | if belongToNamespace(name, namespace) { |
| 74 | networksList.Items = append(networksList.Items, networkFromName(name)) |
| 75 | } |
| 76 | } |
| 77 | return networksList, nil |
| 78 | } |
| 79 | |
| 80 | func (cli *fakeClient) SecretList(_ context.Context, options client.SecretListOptions) (client.SecretListResult, error) { |
| 81 | if cli.secretListFunc != nil { |
no test coverage detected