MCPcopy
hub / github.com/cilium/cilium / WithBasicAuth

Function WithBasicAuth

hubble/cmd/common/conn/auth.go:14–16  ·  view source on GitHub ↗

WithBasicAuth configures basic authentication credentials for the connection.

(username, password string)

Source from the content-addressed store, hash-verified

12
13// WithBasicAuth configures basic authentication credentials for the connection.
14func WithBasicAuth(username, password string) grpc.DialOption {
15 return grpc.WithPerRPCCredentials(basicAuthCredentials{username: username, password: password})
16}
17
18type basicAuthCredentials struct {
19 username, password string

Callers 1

NewWithViperFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…