glance.notifier module

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

Bases: glance.notifier.NotificationFactoryProxy, glance.domain.proxy.ImageFactory

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

Bases: glance.notifier.NotificationProxy, glance.domain.proxy.ImageMember

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

Bases: glance.notifier.NotificationBase, glance.domain.proxy.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: glance.notifier.NotificationProxy, glance.domain.proxy.Image

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

Bases: glance.notifier.NotificationRepoProxy, glance.domain.proxy.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: glance.notifier.NotificationFactoryProxy, glance.domain.proxy.MetadefNamespaceFactory

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

Bases: glance.notifier.NotificationProxy, glance.domain.proxy.MetadefNamespace

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

Bases: glance.notifier.NotificationRepoProxy, glance.domain.proxy.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: glance.notifier.NotificationFactoryProxy, glance.domain.proxy.MetadefObjectFactory

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

Bases: glance.notifier.NotificationProxy, glance.domain.proxy.MetadefObject

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

Bases: glance.notifier.NotificationRepoProxy, glance.domain.proxy.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: glance.notifier.NotificationFactoryProxy, glance.domain.proxy.MetadefPropertyFactory

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

Bases: glance.notifier.NotificationProxy, glance.domain.proxy.MetadefProperty

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

Bases: glance.notifier.NotificationRepoProxy, glance.domain.proxy.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: glance.notifier.NotificationFactoryProxy, glance.domain.proxy.MetadefResourceTypeFactory

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

Bases: glance.notifier.NotificationProxy, glance.domain.proxy.MetadefResourceType

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

Bases: glance.notifier.NotificationRepoProxy, glance.domain.proxy.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: glance.notifier.NotificationFactoryProxy, glance.domain.proxy.MetadefTagFactory

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

Bases: glance.notifier.NotificationProxy, glance.domain.proxy.MetadefTag

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

Bases: glance.notifier.NotificationRepoProxy, glance.domain.proxy.MetadefTagRepo

add(metadef_tag)[source]
add_tags(metadef_tags)[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: glance.notifier.NotificationBase

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

Bases: glance.notifier.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: glance.notifier.NotificationFactoryProxy, glance.domain.proxy.TaskFactory

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

Bases: glance.notifier.NotificationProxy, glance.domain.proxy.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: glance.notifier.NotificationRepoProxy, glance.domain.proxy.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: glance.notifier.NotificationProxy, glance.domain.proxy.TaskStub

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

Bases: glance.notifier.NotificationRepoProxy, glance.domain.proxy.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]