Package pulp :: Package server :: Package api :: Module package :: Class PackageApi
[hide private]
[frames] | no frames]

Class PackageApi

source code

  object --+    
           |    
base.BaseApi --+
               |
              PackageApi

Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
_unique_indexes(self) source code
 
_indexes(self) source code
 
_getcollection(self) source code
 
create(self, name, epoch, version, release, arch, description, checksum_type, checksum, filename)
Create a new Package object and return it
source code
 
delete(self, id)
Delete package version object based on "_id" key
source code
 
package(self, id)
Return a single Package object based on the id
source code
 
packages(self, name=None, epoch=None, version=None, release=None, arch=None, filename=None, checksum_type=None, checksum=None)
Return a list of all package version objects matching search terms
source code
 
package_by_ivera(self, name, version, epoch, release, arch)
Returns the package version identified by the given package and VERA.
source code
 
package_descriptions(self, spec=None)
List of all package names and descriptions (will not contain package version information).
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

    Inherited from base.BaseApi
 
clean(self)
Delete all the Objects in the database.
source code
 
insert(self, object, check_keys=False)
Insert the object document to the database
source code
 
update(self, object)
Write the object document to the database
source code
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

_unique_indexes(self)

source code 
Decorators:
  • @property
Overrides: base.BaseApi._unique_indexes

_indexes(self)

source code 
Decorators:
  • @property
Overrides: base.BaseApi._indexes

_getcollection(self)

source code 
Overrides: base.BaseApi._getcollection

create(self, name, epoch, version, release, arch, description, checksum_type, checksum, filename)

source code 

Create a new Package object and return it

Decorators:
  • @audit()

delete(self, id)

source code 

Delete package version object based on "_id" key

Decorators:
  • @audit()
Overrides: base.BaseApi.delete