# glance.notifier module

class glance.notifier.ImageFactoryProxy(factory, context, notifier)

  Bases: `NotificationFactoryProxy`, `ImageFactory`

  get_proxy_class()
  get_super_class()

class glance.notifier.ImageMemberProxy(repo, context, notifier)

  Bases: `NotificationProxy`, `ImageMember`

  get_super_class()

class glance.notifier.ImageMemberRepoProxy(repo, image, context, notifier)

  Bases: `NotificationBase`, `MemberRepo`

  add(member)
  get_payload(obj)
  get_proxy_class()
  get_super_class()
  remove(member)
  save(member, from_state=None)

class glance.notifier.ImageProxy(repo, context, notifier)

  Bases: `NotificationProxy`, `Image`

  get_data(offset=0, chunk_size=None)
  get_payload(obj)
  get_super_class()
  set_data(data, size=None, backend=None, set_active=True)

class glance.notifier.ImageRepoProxy(repo, context, notifier)

  Bases: `NotificationRepoProxy`, `Repo`

  add(image)
  get_payload(obj)
  get_proxy_class()
  get_super_class()
  remove(image)
  save(image, from_state=None)

class glance.notifier.MetadefNamespaceFactoryProxy(factory, context, notifier)

  Bases: `NotificationFactoryProxy`, `MetadefNamespaceFactory`

  get_proxy_class()
  get_super_class()

class glance.notifier.MetadefNamespaceProxy(repo, context, notifier)

  Bases: `NotificationProxy`, `MetadefNamespace`

  get_super_class()

class glance.notifier.MetadefNamespaceRepoProxy(repo, context, notifier)

  Bases: `NotificationRepoProxy`, `MetadefNamespaceRepo`

  add(metadef_namespace)
  get_payload(obj)
  get_proxy_class()
  get_super_class()
  remove(metadef_namespace)
  remove_objects(metadef_namespace)
  remove_properties(metadef_namespace)
  remove_tags(metadef_namespace)
  save(metadef_namespace)

class glance.notifier.MetadefObjectFactoryProxy(factory, context, notifier)

  Bases: `NotificationFactoryProxy`, `MetadefObjectFactory`

  get_proxy_class()
  get_super_class()

class glance.notifier.MetadefObjectProxy(repo, context, notifier)

  Bases: `NotificationProxy`, `MetadefObject`

  get_super_class()

class glance.notifier.MetadefObjectRepoProxy(repo, context, notifier)

  Bases: `NotificationRepoProxy`, `MetadefObjectRepo`

  add(metadef_object)
  get_payload(obj)
  get_proxy_class()
  get_super_class()
  remove(metadef_object)
  save(metadef_object)

class glance.notifier.MetadefPropertyFactoryProxy(factory, context, notifier)

  Bases: `NotificationFactoryProxy`, `MetadefPropertyFactory`

  get_proxy_class()
  get_super_class()

class glance.notifier.MetadefPropertyProxy(repo, context, notifier)

  Bases: `NotificationProxy`, `MetadefProperty`

  get_super_class()

class glance.notifier.MetadefPropertyRepoProxy(repo, context, notifier)

  Bases: `NotificationRepoProxy`, `MetadefPropertyRepo`

  add(metadef_property)
  get_payload(obj)
  get_proxy_class()
  get_super_class()
  remove(metadef_property)
  save(metadef_property)

class glance.notifier.MetadefResourceTypeFactoryProxy(factory, context, notifier)

  Bases: `NotificationFactoryProxy`, `MetadefResourceTypeFactory`

  get_proxy_class()
  get_super_class()

class glance.notifier.MetadefResourceTypeProxy(repo, context, notifier)

  Bases: `NotificationProxy`, `MetadefResourceType`

  get_super_class()

class glance.notifier.MetadefResourceTypeRepoProxy(repo, context, notifier)

  Bases: `NotificationRepoProxy`, `MetadefResourceTypeRepo`

  add(md_resource_type)
  get_payload(obj)
  get_proxy_class()
  get_super_class()
  remove(md_resource_type)

class glance.notifier.MetadefTagFactoryProxy(factory, context, notifier)

  Bases: `NotificationFactoryProxy`, `MetadefTagFactory`

  get_proxy_class()
  get_super_class()

class glance.notifier.MetadefTagProxy(repo, context, notifier)

  Bases: `NotificationProxy`, `MetadefTag`

  get_super_class()

class glance.notifier.MetadefTagRepoProxy(repo, context, notifier)

  Bases: `NotificationRepoProxy`, `MetadefTagRepo`

  add(metadef_tag)
  add_tags(metadef_tags, can_append=False)
  get_payload(obj)
  get_proxy_class()
  get_super_class()
  remove(metadef_tag)
  save(metadef_tag)

class glance.notifier.NotificationBase

  Bases: `object`

  get_payload(obj)
  send_notification(notification_id, obj, extra_payload=None, backend=None)

class glance.notifier.NotificationFactoryProxy(factory, context, notifier)

  Bases: `object`

  abstractmethod get_proxy_class()
  abstractmethod get_super_class()

class glance.notifier.NotificationProxy(repo, context, notifier)

  Bases: `NotificationBase`

  abstractmethod get_super_class()

class glance.notifier.NotificationRepoProxy(repo, context, notifier)

  Bases: `NotificationBase`

  abstractmethod get_proxy_class()
  abstractmethod get_super_class()

class glance.notifier.Notifier

  Bases: `object`

  Uses a notification strategy to send out messages about events.

  error(event_type, payload)
  info(event_type, payload)
  warn(event_type, payload)

class glance.notifier.TaskFactoryProxy(factory, context, notifier)

  Bases: `NotificationFactoryProxy`, `TaskFactory`

  get_proxy_class()
  get_super_class()

class glance.notifier.TaskProxy(repo, context, notifier)

  Bases: `NotificationProxy`, `Task`

  begin_processing()
  fail(message)
  get_payload(obj)
  get_super_class()
  run(executor)
  succeed(result)

class glance.notifier.TaskRepoProxy(repo, context, notifier)

  Bases: `NotificationRepoProxy`, `TaskRepo`

  add(task)
  get_payload(obj)
  get_proxy_class()
  get_super_class()
  remove(task)

class glance.notifier.TaskStubProxy(repo, context, notifier)

  Bases: `NotificationProxy`, `TaskStub`

  get_super_class()

class glance.notifier.TaskStubRepoProxy(repo, context, notifier)

  Bases: `NotificationRepoProxy`, `TaskStubRepo`

  get_proxy_class()
  get_super_class()

glance.notifier.format_image_member_notification(image_member)

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

glance.notifier.format_image_notification(image)

  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)

glance.notifier.format_metadef_object_notification(metadef_object)

glance.notifier.format_metadef_property_notification(metadef_property)

glance.notifier.format_metadef_resource_type_notification(metadef_resource_type)

glance.notifier.format_metadef_tag_notification(metadef_tag)

glance.notifier.format_task_notification(task)

glance.notifier.get_transport()

glance.notifier.set_defaults(control_exchange='glance')

this page last updated: 2026-08-19 03:42:39

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.

found an error? report a bug