glance.domain package

Submodules

glance.domain.proxy module

class glance.domain.proxy.Helper(proxy_class=None, proxy_kwargs=None)[source]

Bases: object

proxy(obj)[source]
unproxy(obj)[source]
class glance.domain.proxy.Image(base, member_repo_proxy_class=None, member_repo_proxy_kwargs=None)[source]

Bases: object

checksum
container_format
created_at
deactivate()[source]
delete()[source]
disk_format
extra_properties
get_data(*args, **kwargs)[source]
image_id
locations
min_disk
min_ram
name
owner
protected
reactivate()[source]
set_data(data, size=None)[source]
size
status
tags
updated_at
virtual_size
visibility
class glance.domain.proxy.ImageFactory(base, proxy_class=None, proxy_kwargs=None)[source]

Bases: object

new_image(**kwargs)[source]
class glance.domain.proxy.ImageMember(base)[source]

Bases: object

created_at
id
image_id
member_id
status
updated_at
class glance.domain.proxy.ImageMembershipFactory(base, proxy_class=None, proxy_kwargs=None)[source]

Bases: object

new_image_member(image, member, **kwargs)[source]
class glance.domain.proxy.MemberRepo(image, base, member_proxy_class=None, member_proxy_kwargs=None)[source]

Bases: object

add(member)[source]
get(member_id)[source]
list(*args, **kwargs)[source]
remove(member)[source]
save(member, from_state=None)[source]
class glance.domain.proxy.MetadefNamespace(base)[source]

Bases: object

created_at
delete()[source]
description
display_name
namespace
namespace_id
owner
protected
updated_at
visibility
class glance.domain.proxy.MetadefNamespaceFactory(base, meta_namespace_proxy_class=None, meta_namespace_proxy_kwargs=None)[source]

Bases: object

new_namespace(**kwargs)[source]
class glance.domain.proxy.MetadefNamespaceRepo(base, namespace_proxy_class=None, namespace_proxy_kwargs=None)[source]

Bases: object

add(namespace)[source]
get(namespace)[source]
list(*args, **kwargs)[source]
remove(item)[source]
remove_objects(item)[source]
remove_properties(item)[source]
remove_tags(item)[source]
save(item)[source]
class glance.domain.proxy.MetadefObject(base)[source]

Bases: object

created_at
delete()[source]
description
name
namespace
object_id
properties
required
updated_at
class glance.domain.proxy.MetadefObjectFactory(base, meta_object_proxy_class=None, meta_object_proxy_kwargs=None)[source]

Bases: object

new_object(**kwargs)[source]
class glance.domain.proxy.MetadefObjectRepo(base, object_proxy_class=None, object_proxy_kwargs=None)[source]

Bases: object

add(meta_object)[source]
get(namespace, object_name)[source]
list(*args, **kwargs)[source]
remove(item)[source]
save(item)[source]
class glance.domain.proxy.MetadefProperty(base)[source]

Bases: object

delete()[source]
name
namespace
property_id
schema
class glance.domain.proxy.MetadefPropertyFactory(base, property_proxy_class=None, property_proxy_kwargs=None)[source]

Bases: object

new_namespace_property(**kwargs)[source]
class glance.domain.proxy.MetadefPropertyRepo(base, property_proxy_class=None, property_proxy_kwargs=None)[source]

Bases: object

add(property)[source]
get(namespace, property_name)[source]
list(*args, **kwargs)[source]
remove(item)[source]
save(item)[source]
class glance.domain.proxy.MetadefResourceType(base)[source]

Bases: object

created_at
delete()[source]
name
namespace
prefix
properties_target
updated_at
class glance.domain.proxy.MetadefResourceTypeFactory(base, resource_type_proxy_class=None, resource_type_proxy_kwargs=None)[source]

Bases: object

new_resource_type(**kwargs)[source]
class glance.domain.proxy.MetadefResourceTypeRepo(base, resource_type_proxy_class=None, resource_type_proxy_kwargs=None)[source]

Bases: object

add(meta_resource_type)[source]
get(*args, **kwargs)[source]
list(*args, **kwargs)[source]
remove(item)[source]
class glance.domain.proxy.MetadefTag(base)[source]

Bases: object

created_at
delete()[source]
name
namespace
tag_id
updated_at
class glance.domain.proxy.MetadefTagFactory(base, meta_tag_proxy_class=None, meta_tag_proxy_kwargs=None)[source]

Bases: object

new_tag(**kwargs)[source]
class glance.domain.proxy.MetadefTagRepo(base, tag_proxy_class=None, tag_proxy_kwargs=None)[source]

Bases: object

add(meta_tag)[source]
add_tags(meta_tags)[source]
get(namespace, name)[source]
list(*args, **kwargs)[source]
remove(item)[source]
save(item)[source]
class glance.domain.proxy.Repo(base, item_proxy_class=None, item_proxy_kwargs=None)[source]

Bases: object

add(item)[source]
get(item_id)[source]
list(*args, **kwargs)[source]
remove(item)[source]
save(item, from_state=None)[source]
class glance.domain.proxy.Task(base)[source]

Bases: object

begin_processing()[source]
created_at
expires_at
fail(message)[source]
message
owner
result
run(executor)[source]
status
succeed(result)[source]
task_id
task_input
type
updated_at
class glance.domain.proxy.TaskFactory(base, task_proxy_class=None, task_proxy_kwargs=None)[source]

Bases: object

new_task(**kwargs)[source]
class glance.domain.proxy.TaskRepo(base, task_proxy_class=None, task_proxy_kwargs=None)[source]

Bases: object

add(task)[source]
get(task_id)[source]
remove(task)[source]
save(task)[source]
class glance.domain.proxy.TaskStub(base)[source]

Bases: object

created_at
expires_at
owner
status
task_id
type
updated_at
class glance.domain.proxy.TaskStubRepo(base, task_stub_proxy_class=None, task_stub_proxy_kwargs=None)[source]

Bases: object

list(*args, **kwargs)[source]

Module contents

class glance.domain.ExtraProperties[source]

Bases: _abcoll.MutableMapping, dict

keys()[source]
class glance.domain.Image(image_id, status, created_at, updated_at, **kwargs)[source]

Bases: object

container_format[source]
deactivate()[source]
delete()[source]
disk_format[source]
get_data(*args, **kwargs)[source]
min_disk[source]
min_ram[source]
reactivate()[source]
set_data(data, size=None)[source]
status[source]
tags[source]
valid_state_targets = {'deleted': (), 'queued': ('saving', 'active', 'deleted'), 'active': ('pending_delete', 'deleted', 'deactivated'), 'pending_delete': ('deleted',), 'killed': ('deleted',), 'deactivated': ('active', 'deleted'), 'saving': ('active', 'killed', 'deleted', 'queued')}
visibility[source]
class glance.domain.ImageFactory[source]

Bases: object

new_image(image_id=None, name=None, visibility='private', min_disk=0, min_ram=0, protected=False, owner=None, disk_format=None, container_format=None, extra_properties=None, tags=None, **other_args)[source]
class glance.domain.ImageMemberFactory[source]

Bases: object

new_image_member(image, member_id)[source]
class glance.domain.ImageMembership(image_id, member_id, created_at, updated_at, id=None, status=None)[source]

Bases: object

status[source]
class glance.domain.MetadefNamespace(namespace_id, namespace, display_name, description, owner, visibility, protected, created_at, updated_at)[source]

Bases: object

delete()[source]
class glance.domain.MetadefNamespaceFactory[source]

Bases: object

new_namespace(namespace, owner, **kwargs)[source]
class glance.domain.MetadefObject(namespace, object_id, name, created_at, updated_at, required, description, properties)[source]

Bases: object

delete()[source]
class glance.domain.MetadefObjectFactory[source]

Bases: object

new_object(namespace, name, **kwargs)[source]
class glance.domain.MetadefProperty(namespace, property_id, name, schema)[source]

Bases: object

delete()[source]
class glance.domain.MetadefPropertyFactory[source]

Bases: object

new_namespace_property(namespace, name, schema, **kwargs)[source]
class glance.domain.MetadefResourceType(namespace, name, prefix, properties_target, created_at, updated_at)[source]

Bases: object

delete()[source]
class glance.domain.MetadefResourceTypeFactory[source]

Bases: object

new_resource_type(namespace, name, **kwargs)[source]
class glance.domain.MetadefTag(namespace, tag_id, name, created_at, updated_at)[source]

Bases: object

delete()[source]
class glance.domain.MetadefTagFactory[source]

Bases: object

new_tag(namespace, name, **kwargs)[source]
class glance.domain.Task(task_id, task_type, status, owner, expires_at, created_at, updated_at, task_input, result, message)[source]

Bases: object

begin_processing()[source]
fail(message)[source]
message[source]
run(executor)[source]
status[source]
succeed(result)[source]
class glance.domain.TaskExecutorFactory(task_repo, image_repo, image_factory)[source]

Bases: object

eventlet_deprecation_warned = False
new_task_executor(context)[source]
class glance.domain.TaskFactory[source]

Bases: object

new_task(task_type, owner, task_input=None, **kwargs)[source]
class glance.domain.TaskStub(task_id, task_type, status, owner, expires_at, created_at, updated_at)[source]

Bases: object

status[source]

Table Of Contents

Previous topic

glance.db.sqlalchemy.migrate_repo.versions package

Next topic

glance.glare package

Project Source

This Page