(_ context.Context, options client.SecretListOptions)
| 78 | } |
| 79 | |
| 80 | func (cli *fakeClient) SecretList(_ context.Context, options client.SecretListOptions) (client.SecretListResult, error) { |
| 81 | if cli.secretListFunc != nil { |
| 82 | return cli.secretListFunc(options) |
| 83 | } |
| 84 | |
| 85 | namespace := namespaceFromFilters(options.Filters) |
| 86 | secretsList := client.SecretListResult{} |
| 87 | for _, name := range cli.secrets { |
| 88 | if belongToNamespace(name, namespace) { |
| 89 | secretsList.Items = append(secretsList.Items, secretFromName(name)) |
| 90 | } |
| 91 | } |
| 92 | return secretsList, nil |
| 93 | } |
| 94 | |
| 95 | func (cli *fakeClient) ConfigList(_ context.Context, options client.ConfigListOptions) (client.ConfigListResult, error) { |
| 96 | if cli.configListFunc != nil { |
no test coverage detected