Package ganeti :: Package rapi :: Package auth :: Module basic_auth
[hide private]
[frames] | no frames]

Module basic_auth

source code

Module interacting with RAPI users config file

Classes [hide private]
  FileEventHandler
  BasicAuthenticator
Class providing an Authenticate method based on basic http authentication.
Functions [hide private]
 
SetupFileWatcher(filename, cb)
Configures an inotify watcher for a file.
source code

Imports: logging, os, pyinotify, asyncnotifier, compat, http, HttpServerRequestAuthentication, pathutils, auth, users_file


Function Details [hide private]

SetupFileWatcher(filename, cb)

source code 

Configures an inotify watcher for a file.

Parameters:
  • filename (string) - File to watch
  • cb (callable) - Function called on file change