# glance.location module

class glance.location.ImageFactoryProxy(factory, context, store_api, store_utils)

  Bases: `glance.domain.proxy.ImageFactory`

  new_image(**kwargs)

class glance.location.ImageMemberRepoProxy(repo, image, context, store_api)

  Bases: `glance.domain.proxy.Repo`

  add(member)
  remove(member)

class glance.location.ImageProxy(image, context, store_api, store_utils)

  Bases: `glance.domain.proxy.Image`

  delete()
  get_data(offset=0, chunk_size=None)
  property locations
  set_data(data, size=None, backend=None, set_active=True)

class glance.location.ImageRepoProxy(image_repo, context, store_api, store_utils)

  Bases: `glance.domain.proxy.Repo`

  add(image)
  get(image_id)
  save(image, from_state=None)

class glance.location.StoreLocations(image_proxy, value)

  Bases: `collections.abc.MutableSequence`

  The proxy for store location property. It takes responsibility for:

      1. Location uri correctness checking when adding a new location.
      2. Remove the image data from the store when a location is removed
         from an image.

  append(location)

    S.append(value) – append value to the end of the sequence

  count(value) → integer -- return number of occurrences of value
  extend(other)

    S.extend(iterable) – extend sequence by appending elements from the iterable

  index(value[, start[, stop]]) → integer -- return first index of value.

    Raises ValueError if the value is not present.

    Supporting start and stop arguments is optional, but recommended.

  insert(i, location)

    S.insert(index, value) – insert value before index

  pop([index]) → item -- remove and return item at index (default last).

    Raise IndexError if list is empty or index is out of range.

  remove(location)

    S.remove(value) – remove first occurrence of value. Raise ValueError if the value is not present.

  reverse()

    S.reverse() – reverse IN PLACE

this page last updated: 2026-03-19 02:17:34

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