MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / GocbAuthenticator

Method GocbAuthenticator

base/bucket.go:228–234  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

226}
227
228func (b BucketSpec) GocbAuthenticator() (gocb.Authenticator, error) {
229 var username, password string
230 if b.Auth != nil {
231 username, password, _ = b.Auth.GetCredentials()
232 }
233 return GoCBv2Authenticator(username, password, b.Certpath, b.Keypath)
234}
235
236func (b BucketSpec) GocbcoreAuthProvider() (gocbcore.AuthProvider, error) {
237 var username, password string

Callers 1

GetGoCBv2BucketFunction · 0.80

Calls 2

GoCBv2AuthenticatorFunction · 0.85
GetCredentialsMethod · 0.65

Tested by

no test coverage detected