Back to index

obnam  1.1
Public Member Functions
obnamlib.plugins.sftp_plugin.SftpPlugin Class Reference
Inheritance diagram for obnamlib.plugins.sftp_plugin.SftpPlugin:
Inheritance graph
[legend]
Collaboration diagram for obnamlib.plugins.sftp_plugin.SftpPlugin:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def enable

Detailed Description

Definition at line 559 of file sftp_plugin.py.


Member Function Documentation

Definition at line 561 of file sftp_plugin.py.

00561 
00562     def enable(self):
00563         ssh_group = obnamlib.option_group['ssh'] = 'SSH/SFTP'
00564         devel_group = obnamlib.option_group['devel']
00565 
00566         self.app.settings.integer(['sftp-delay'],
00567                                   'add an artificial delay (in milliseconds) '
00568                                     'to all SFTP transfers',
00569                                   group=devel_group)
00570 
00571         self.app.settings.string(['ssh-key'],
00572                                  'use FILENAME as the ssh RSA private key for '
00573                                     'sftp access (default is using keys known '
00574                                     'to ssh-agent)',
00575                                  metavar='FILENAME',
00576                                  group=ssh_group)
00577 
00578         self.app.settings.boolean(['strict-ssh-host-keys'],
00579                                   'require that the ssh host key must be '
00580                                     'known and correct to be accepted; '
00581                                     'default is to accept unknown keys',
00582                                   group=ssh_group)
00583 
00584         self.app.settings.string(['ssh-known-hosts'],
00585                                  'filename of the user\'s known hosts file '
00586                                     '(default: %default)',
00587                                  metavar='FILENAME',
00588                                  default=
00589                                     os.path.expanduser('~/.ssh/known_hosts'),
00590                                  group=ssh_group)
00591 
00592         self.app.settings.boolean(['pure-paramiko'],
00593                                  'do not use openssh even if available, '
00594                                     'use paramiko only instead',
00595                                   group=ssh_group)
00596 
00597         self.app.fsf.register('sftp', SftpFS, settings=self.app.settings)
00598 

The documentation for this class was generated from the following file: