Package rhn :: Module transports
[hide private]
[frames] | no frames]

Module transports

source code


Version: 2.10.72.10.7-1.el71.el7

Classes [hide private]
  NotProcessed
  Transport
  SafeTransport
  ProxyTransport
  SafeProxyTransport
  Input
  InputStream
  BaseOutput
  Output
  File
Functions [hide private]
 
_smart_total_read(fd, bufferSize=1024, max_mem_size=16384)
Tries to read data from the supplied stream, and puts the results into a StmartIO object.
source code
 
_smart_read(fd, amt, bufferSize=1024, progressCallback=None, max_mem_size=16384) source code
 
lookupTransfer(transfer, strict=0)
Given a string or numeric representation of a transfer, return the transfer code
source code
 
lookupEncoding(encoding, strict=0)
Given a string or numeric representation of an encoding, return the encoding code
source code
Variables [hide private]
  COMPRESS_LEVEL = 6
  __package__ = 'rhn'
Function Details [hide private]

_smart_total_read(fd, bufferSize=1024, max_mem_size=16384)

source code 

Tries to read data from the supplied stream, and puts the results into a StmartIO object. The data will be in memory or in a temporary file, depending on how much it's been read Returns a SmartIO object