Package ganeti :: Module runtime :: Class GetentResolver
[hide private]
[frames] | no frames]

Class GetentResolver

source code

Resolves Ganeti uids and gids by name.

Instance Methods [hide private]
 
__init__(self, _getpwnam=pwd.getpwnam, _getgrnam=grp.getgrnam)
Initialize the resolver.
source code
 
LookupUid(self, uid)
Looks which Ganeti user belongs to this uid.
source code
 
LookupGid(self, gid)
Looks which Ganeti group belongs to this gid.
source code
 
LookupUser(self, name)
Looks which uid belongs to this name.
source code
 
LookupGroup(self, name)
Looks which gid belongs to this name.
source code
Instance Variables [hide private]
  admin_gid
The resolved gid of the admin group
  confd_gid
The resolved gid of the confd group
  confd_uid
The resolved uid of the confd user
  daemons_gid
The resolved gid of the daemons group
  luxid_gid
The resolved gid of the luxid group
  luxid_uid
The resolved uid of the luxid user
  masterd_gid
The resolved gid of the masterd group
  masterd_uid
The resolved uid of the masterd user
  noded_uid
The resolved uid of the noded user
  rapi_gid
The resolved gid of the rapi group
  rapi_uid
The resolved uid of the rapi user
Method Details [hide private]

LookupUid(self, uid)

source code 

Looks which Ganeti user belongs to this uid.

Parameters:
  • uid - The uid to lookup @returns The user name associated with that uid

LookupGid(self, gid)

source code 

Looks which Ganeti group belongs to this gid.

Parameters:
  • gid - The gid to lookup @returns The group name associated with that gid

LookupUser(self, name)

source code 

Looks which uid belongs to this name.

Parameters:
  • name - The name to lookup @returns The uid associated with that user name

LookupGroup(self, name)

source code 

Looks which gid belongs to this name.

Parameters:
  • name - The name to lookup @returns The gid associated with that group name