Package pulp :: Package server :: Package event :: Package handler :: Module repo :: Class RepoEvent
[hide private]
[frames] | no frames]

Class RepoEvent

source code

??-284 --+
         |
        RepoEvent

The repo event handler.

Instance Methods [hide private]
 
__init__(self) source code
 
create(self, *args, **kwargs)
Raise events when a repo is created.
source code
 
update(self, *args, **kwargs)
Raise events when a repo is updated.
source code
 
delete(self, *args, **kwargs)
Raise events when a repo is deleted.
source code
 
created(self, event)
The inbound event handler for repo.created AMQP events.
source code
 
updated(self, event)
The inbound event handler for repo.updated AMQP events.
source code
 
deleted(self, event)
The inbound event handler for repo.deleted AMQP events.
source code
Instance Variables [hide private]
RepoApi rapi
The repo API object.
Method Details [hide private]

create(self, *args, **kwargs)

source code 

Raise events when a repo is created. Called when RepoApi.create() is called.

Parameters:
  • args (list) - The arguments passed to RepoApi.create()
  • kwargs (list) - The keyword arguments passed to RepoApi.create()
Decorators:
  • @outbound(action= 'created')

update(self, *args, **kwargs)

source code 

Raise events when a repo is updated. Called when RepoApi.update() is called.

Parameters:
  • args (list) - The arguments passed to RepoApi.update()
  • kwargs (list) - The keyword arguments passed to RepoApi.update()
Decorators:
  • @outbound(action= 'updated')

delete(self, *args, **kwargs)

source code 

Raise events when a repo is deleted. Called when RepoApi.delete() is called.

Parameters:
  • args (list) - The arguments passed to RepoApi.delete()
  • kwargs (list) - The keyword arguments passed to RepoApi.delete()
Decorators:
  • @outbound(action= 'deleted')

created(self, event)

source code 

The inbound event handler for repo.created AMQP events. Called when an AMQP event is received notifying that a repo has been created. When received, the API is used to create the specified repo in pulp.

Parameters:
  • event (dict.) - The event payload.
Decorators:
  • @inbound(action= 'created')

updated(self, event)

source code 

The inbound event handler for repo.updated AMQP events. Called when an AMQP event is received notifying that a repo has been created. When received, the API is used to update the specified repo in pulp.

Parameters:
  • event (dict.) - The event payload.
Decorators:
  • @inbound(action= 'updated')

deleted(self, event)

source code 

The inbound event handler for repo.deleted AMQP events. Called when an AMQP event is received notifying that a repo has been deleted. When received, the API is used to delete the specified repo in pulp.

Parameters:
  • event (dict.) - The event payload.
Decorators:
  • @inbound(action= 'deleted')