Documentation
¶
Index ¶
- func AuthHandler(req *http.Request, authenticator cbauth.Authenticator)
- func DefaultAuthHandler(req *http.Request)
- func GenerateLocalIDs() (string, string, error)
- func GetClusterAuth() (string, string)
- func GetMemcachedServiceAuth(url string) (user string, passwd string, err error)
- func InitAuthenticator(url string)
- func ServiceHttpAuth(clusterURL string) (user string, passwd string, err error)
- func StripScheme(endpoint string) string
- func TestSetUserPassword(user, password string)
- func VerifyClientAuth(rawCerts [][]byte, verifiedChains [][]*x509.Certificate) error
- func VerifyNodeToNode(rawCerts [][]byte, verifiedChains [][]*x509.Certificate) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthHandler ¶
func AuthHandler(req *http.Request, authenticator cbauth.Authenticator)
func DefaultAuthHandler ¶
func GenerateLocalIDs ¶
func GetClusterAuth ¶
func GetMemcachedServiceAuth ¶
func InitAuthenticator ¶
func InitAuthenticator(url string)
InitAuthenticator initilaise the authenticator module Should call this method before any other method is invoked TODO: Maybe use some other better way to set it
func ServiceHttpAuth ¶
func StripScheme ¶
func VerifyClientAuth ¶
func VerifyClientAuth(rawCerts [][]byte, verifiedChains [][]*x509.Certificate) error
VerifyClientAuth validates the peer certificate against the cluster's clientAuth CRL policy. Use it on inbound TLS listeners, where Eventing is verifying a certificate that a client presented to it.
func VerifyNodeToNode ¶
func VerifyNodeToNode(rawCerts [][]byte, verifiedChains [][]*x509.Certificate) error
VerifyNodeToNode validates the peer certificate against the cluster's nodeToNode CRL policy. Use it on outbound connections that Eventing dials to other Couchbase nodes, where Eventing is verifying the remote server's certificate.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.