glance.glare.domain package

Submodules

glance.glare.domain.proxy module

class glance.glare.domain.proxy.Artifact(base, proxy_class=None, proxy_kwargs=None)[source]

Bases: object

get_type_specific_property(prop_name)[source]
metadata
set_type_specific_property(prop_name, value)[source]
class glance.glare.domain.proxy.ArtifactBlob(base, artifact_blob_proxy_class=None, artifact_blob_proxy_kwargs=None)[source]

Bases: object

checksum
get_type_specific_property(prop_name)[source]
item_key
locations
set_type_specific_property(prop_name, value)[source]
size
to_dict()[source]
class glance.glare.domain.proxy.ArtifactFactory(base, artifact_proxy_class=<class 'glance.glare.domain.proxy.Artifact'>, artifact_proxy_kwargs=None)[source]

Bases: object

new_artifact(*args, **kwargs)[source]
class glance.glare.domain.proxy.ArtifactHelper(proxy_class=None, proxy_kwargs=None)[source]

Bases: glance.domain.proxy.Helper

Artifact-friendly proxy helper: does all the same as regular helper but also dynamically proxies all the type-specific attributes, including properties, blobs and dependencies

proxy(obj)[source]
class glance.glare.domain.proxy.ArtifactProperty(base, proxy_class=None, proxy_kwargs=None)[source]

Bases: object

get_type_specific_property(prop_name)[source]
set_type_specific_property(prop_name, value)[source]
class glance.glare.domain.proxy.ArtifactRepo(base, proxy_helper=None, item_proxy_class=None, item_proxy_kwargs=None)[source]

Bases: object

add(item)[source]
get(*args, **kwargs)[source]
list(*args, **kwargs)[source]
publish(item, *args, **kwargs)[source]
remove(item)[source]
save(item)[source]
class glance.glare.domain.proxy.Dict(base, item_proxy_class=None, item_proxy_kwargs=None)[source]

Bases: _abcoll.MutableMapping

class glance.glare.domain.proxy.List(base, item_proxy_class=None, item_proxy_kwargs=None)[source]

Bases: _abcoll.MutableSequence

insert(index, value)[source]

Module contents

class glance.glare.domain.Artifact(id, name, version, type_name, type_version, state, owner, visibility='private', created_at=None, updated_at=None, **kwargs)[source]

Bases: object

class glance.glare.domain.ArtifactFactory(context, klass)[source]

Bases: object

new_artifact(name, version, **kwargs)[source]