WithKind match credentials with the given kind. Can be specified multiple times.
(kind CredentialKind)
| 43 | |
| 44 | // WithKind match credentials with the given kind. Can be specified multiple times. |
| 45 | func WithKind(kind CredentialKind) ListOption { |
| 46 | return func(opts *listOptions) { |
| 47 | if opts.kind == nil { |
| 48 | opts.kind = make(map[CredentialKind]interface{}) |
| 49 | } |
| 50 | opts.kind[kind] = nil |
| 51 | } |
| 52 | } |
| 53 | |
| 54 | func WithMeta(key string, val string) ListOption { |
| 55 | return func(opts *listOptions) { |
no outgoing calls