glance.notifier module

class glance.notifier.ImageFactoryProxy(factory, context, notifier)[source]

Bases: NotificationFactoryProxy, ImageFactory

get_proxy_class()[source]
get_super_class()[source]
class glance.notifier.ImageMemberProxy(repo, context, notifier)[source]

Bases: NotificationProxy, ImageMember

get_super_class()[source]
class glance.notifier.ImageMemberRepoProxy(repo, image, context, notifier)[source]

Bases: NotificationBase, MemberRepo

add(member)[source]
get_payload(obj)[source]
get_proxy_class()[source]
get_super_class()[source]
remove(member)[source]
save(member, from_state=None)[source]
class glance.notifier.ImageProxy(repo, context, notifier)[source]

Bases: NotificationProxy, Image

get_data(offset=0, chunk_size=None)[source]
get_payload(obj)[source]
get_super_class()[source]
set_data(data, size=None, backend=None, set_active=True)[source]
class glance.notifier.ImageRepoProxy(repo, context, notifier)[source]

Bases: NotificationRepoProxy, Repo

add(image)[source]
get_payload(obj)[source]
get_proxy_class()[source]
get_super_class()[source]
remove(image)[source]
save(image, from_state=None)[source]
class glance.notifier.MetadefNamespaceFactoryProxy(factory, context, notifier)[source]

Bases: NotificationFactoryProxy, MetadefNamespaceFactory

get_proxy_class()[source]
get_super_class()[source]
class glance.notifier.MetadefNamespaceProxy(repo, context, notifier)[source]

Bases: NotificationProxy, MetadefNamespace

get_super_class()[source]
class glance.notifier.MetadefNamespaceRepoProxy(repo, context, notifier)[source]

Bases: NotificationRepoProxy, MetadefNamespaceRepo

add(metadef_namespace)[source]
get_payload(obj)[source]
get_proxy_class()[source]
get_super_class()[source]
remove(metadef_namespace)[source]
remove_objects(metadef_namespace)[source]
remove_properties(metadef_namespace)[source]
remove_tags(metadef_namespace)[source]
save(metadef_namespace)[source]
class glance.notifier.MetadefObjectFactoryProxy(factory, context, notifier)[source]

Bases: NotificationFactoryProxy, MetadefObjectFactory

get_proxy_class()[source]
get_super_class()[source]
class glance.notifier.MetadefObjectProxy(repo, context, notifier)[source]

Bases: NotificationProxy, MetadefObject

get_super_class()[source]
class glance.notifier.MetadefObjectRepoProxy(repo, context, notifier)[source]

Bases: NotificationRepoProxy, MetadefObjectRepo

add(metadef_object)[source]
get_payload(obj)[source]
get_proxy_class()[source]
get_super_class()[source]
remove(metadef_object)[source]
save(metadef_object)[source]
class glance.notifier.MetadefPropertyFactoryProxy(factory, context, notifier)[source]

Bases: NotificationFactoryProxy, MetadefPropertyFactory

get_proxy_class()[source]
get_super_class()[source]
class glance.notifier.MetadefPropertyProxy(repo, context, notifier)[source]

Bases: NotificationProxy, MetadefProperty

get_super_class()[source]
class glance.notifier.MetadefPropertyRepoProxy(repo, context, notifier)[source]

Bases: NotificationRepoProxy, MetadefPropertyRepo

add(metadef_property)[source]
get_payload(obj)[source]
get_proxy_class()[source]
get_super_class()[source]
remove(metadef_property)[source]
save(metadef_property)[source]
class glance.notifier.MetadefResourceTypeFactoryProxy(factory, context, notifier)[source]

Bases: NotificationFactoryProxy, MetadefResourceTypeFactory

get_proxy_class()[source]
get_super_class()[source]
class glance.notifier.MetadefResourceTypeProxy(repo, context, notifier)[source]

Bases: NotificationProxy, MetadefResourceType

get_super_class()[source]
class glance.notifier.MetadefResourceTypeRepoProxy(repo, context, notifier)[source]

Bases: NotificationRepoProxy, MetadefResourceTypeRepo

add(md_resource_type)[source]
get_payload(obj)[source]
get_proxy_class()[source]
get_super_class()[source]
remove(md_resource_type)[source]
class glance.notifier.MetadefTagFactoryProxy(factory, context, notifier)[source]

Bases: NotificationFactoryProxy, MetadefTagFactory

get_proxy_class()[source]
get_super_class()[source]
class glance.notifier.MetadefTagProxy(repo, context, notifier)[source]

Bases: NotificationProxy, MetadefTag

get_super_class()[source]
class glance.notifier.MetadefTagRepoProxy(repo, context, notifier)[source]

Bases: NotificationRepoProxy, MetadefTagRepo

add(metadef_tag)[source]
add_tags(metadef_tags, can_append=False)[source]
get_payload(obj)[source]
get_proxy_class()[source]
get_super_class()[source]
remove(metadef_tag)[source]
save(metadef_tag)[source]
class glance.notifier.NotificationBase[source]

Bases: object

get_payload(obj)[source]
send_notification(notification_id, obj, extra_payload=None, backend=None)[source]
class glance.notifier.NotificationFactoryProxy(factory, context, notifier)[source]

Bases: object

abstract get_proxy_class()[source]
abstract get_super_class()[source]
class glance.notifier.NotificationProxy(repo, context, notifier)[source]

Bases: NotificationBase

abstract get_super_class()[source]
class glance.notifier.NotificationRepoProxy(repo, context, notifier)[source]

Bases: NotificationBase

abstract get_proxy_class()[source]
abstract get_super_class()[source]
class glance.notifier.Notifier[source]

Bases: object

Uses a notification strategy to send out messages about events.

error(event_type, payload)[source]
info(event_type, payload)[source]
warn(event_type, payload)[source]
class glance.notifier.TaskFactoryProxy(factory, context, notifier)[source]

Bases: NotificationFactoryProxy, TaskFactory

get_proxy_class()[source]
get_super_class()[source]
class glance.notifier.TaskProxy(repo, context, notifier)[source]

Bases: NotificationProxy, Task

begin_processing()[source]
fail(message)[source]
get_payload(obj)[source]
get_super_class()[source]
run(executor)[source]
succeed(result)[source]
class glance.notifier.TaskRepoProxy(repo, context, notifier)[source]

Bases: NotificationRepoProxy, TaskRepo

add(task)[source]
get_payload(obj)[source]
get_proxy_class()[source]
get_super_class()[source]
remove(task)[source]
class glance.notifier.TaskStubProxy(repo, context, notifier)[source]

Bases: NotificationProxy, TaskStub

get_super_class()[source]
class glance.notifier.TaskStubRepoProxy(repo, context, notifier)[source]

Bases: NotificationRepoProxy, TaskStubRepo

get_proxy_class()[source]
get_super_class()[source]
glance.notifier.format_image_member_notification(image_member)[source]

Given a glance.domain.ImageMember object, return a dictionary of relevant notification information.

glance.notifier.format_image_notification(image)[source]

Given a glance.domain.Image object, return a dictionary of relevant notification information. We purposely do not include ‘location’ as it may contain credentials.

glance.notifier.format_metadef_namespace_notification(metadef_namespace)[source]
glance.notifier.format_metadef_object_notification(metadef_object)[source]
glance.notifier.format_metadef_property_notification(metadef_property)[source]
glance.notifier.format_metadef_resource_type_notification(metadef_resource_type)[source]
glance.notifier.format_metadef_tag_notification(metadef_tag)[source]
glance.notifier.format_task_notification(task)[source]
glance.notifier.get_transport()[source]
glance.notifier.set_defaults(control_exchange='glance')[source]