MCPcopy Index your code
hub / github.com/git-bug/git-bug / WithKind

Function WithKind

bridge/core/auth/options.go:45–52  ·  view source on GitHub ↗

WithKind match credentials with the given kind. Can be specified multiple times.

(kind CredentialKind)

Source from the content-addressed store, hash-verified

43
44// WithKind match credentials with the given kind. Can be specified multiple times.
45func 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
54func WithMeta(key string, val string) ListOption {
55 return func(opts *listOptions) {

Callers 10

cacheAllClientMethod · 0.92
InitMethod · 0.92
promptTokenOptionsFunction · 0.92
cacheAllClientMethod · 0.92
InitMethod · 0.92
promptTokenOptionsFunction · 0.92
cacheAllClientMethod · 0.92
InitMethod · 0.92
promptCredOptionsFunction · 0.92
TestCredentialFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestCredentialFunction · 0.68