authenticator

package
v0.0.0-...-5951314 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 4, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthHandler

func AuthHandler(req *http.Request, authenticator cbauth.Authenticator)

func DefaultAuthHandler

func DefaultAuthHandler(req *http.Request)

func GenerateLocalIDs

func GenerateLocalIDs() (string, string, error)

func GetClusterAuth

func GetClusterAuth() (string, string)

func GetMemcachedServiceAuth

func GetMemcachedServiceAuth(url string) (user string, passwd string, err error)

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 ServiceHttpAuth(clusterURL string) (user string, passwd string, err error)

func StripScheme

func StripScheme(endpoint string) string

func TestSetUserPassword

func TestSetUserPassword(user, password string)

For testing purpose only

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL