Package gofer :: Package rmi :: Module decorators
[hide private]
[frames] | no frames]

Module decorators

source code

Provides decorator classes & funcitons.

Classes [hide private]
  Remote
Functions [hide private]
Options
__options(fn)
Ensure funtion has the gofer options attribute and return it.
source code
 
remote(*args, **kwargs)
Remote method decorator.
source code
 
pam(*args, **kwargs)
PAM authentication method decorator.
source code
 
user(*args, **kwargs)
user (PAM) authentication method decorator.
source code
Variables [hide private]
  __package__ = 'gofer.rmi'
Function Details [hide private]

__options(fn)

source code 

Ensure funtion has the gofer options attribute and return it.

Parameters:
  • fn - A function
Returns: Options
The funtion options object.

remote(*args, **kwargs)

source code 

Remote method decorator. keywords:

  • shared: method shared across plugins.
  • secret: authorization secret.

pam(*args, **kwargs)

source code 

PAM authentication method decorator. keywords:

  • user: user name.
  • service: (optional) PAM service.

user(*args, **kwargs)

source code 

user (PAM) authentication method decorator. keywords:

  • name: user name.