()
| 226 | } |
| 227 | |
| 228 | func (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 | |
| 236 | func (b BucketSpec) GocbcoreAuthProvider() (gocbcore.AuthProvider, error) { |
| 237 | var username, password string |
no test coverage detected