glance.glare package

Submodules

glance.glare.dependency module

class glance.glare.dependency.ArtifactFactory(base, klass, repo)[source]

Bases: glance.glare.domain.proxy.ArtifactFactory

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

Creates an artifact without dependencies first and then adds them to the newly created artifact

class glance.glare.dependency.ArtifactProxy(artifact, repo)[source]

Bases: glance.glare.domain.proxy.Artifact

set_type_specific_property(prop_name, value)[source]
class glance.glare.dependency.ArtifactRepo(repo, plugins, item_proxy_class=None, item_proxy_kwargs=None)[source]

Bases: glance.glare.domain.proxy.ArtifactRepo

publish(artifact, *args, **kwargs)[source]

Creates transitive dependencies, checks that all dependencies are in active state and transfers artifact from creating to active state

remove(artifact)[source]

Checks that artifact has no dependencies and removes it. Otherwise an exception is raised

glance.glare.gateway module

class glance.glare.gateway.Gateway(db_api=None, store_api=None, plugins=None)[source]

Bases: object

get_artifact_repo(context)[source]
get_artifact_type_factory(context, klass)[source]

glance.glare.location module

class glance.glare.location.ArtifactBlobProxy(blob, context, store_api)[source]

Bases: glance.glare.domain.proxy.ArtifactBlob

data_stream[source]
delete_from_store(location)[source]
upload_to_store(data, size)[source]
class glance.glare.location.ArtifactBlobProxyList(artifact_id, prop_name, bloblist, context, store_api)[source]

Bases: glance.glare.domain.proxy.List

insert(index, value)[source]
class glance.glare.location.ArtifactFactoryProxy(factory, context, store_api, store_utils)[source]

Bases: glance.glare.domain.proxy.ArtifactFactory

class glance.glare.location.ArtifactProxy(artifact, context, store_api, store_utils)[source]

Bases: glance.glare.domain.proxy.Artifact

get_type_specific_property(prop_name)[source]
set_type_specific_property(prop_name, value)[source]
class glance.glare.location.ArtifactRepoProxy(artifact_repo, context, store_api, store_utils)[source]

Bases: glance.glare.domain.proxy.ArtifactRepo

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

glance.glare.updater module

class glance.glare.updater.ArtifactDictPropertyProxy(prop_value, path)[source]

Bases: glance.glare.domain.proxy.Dict

A class to wrap a dict property.

Makes possible to modify the property value via supported jsonpatch requests (update/remove/replace).

add(path, value)[source]
remove(path, value=None)[source]
replace(path, value)[source]
class glance.glare.updater.ArtifactFactoryProxy(factory)[source]

Bases: glance.glare.domain.proxy.ArtifactFactory

class glance.glare.updater.ArtifactListPropertyProxy(prop_value, path)[source]

Bases: glance.glare.domain.proxy.List

A class to wrap a list property.

Makes possible to modify the property value via supported jsonpatch requests (update/remove/replace).

add(path, value)[source]
remove(path, value=None)[source]
replace(path, value)[source]
class glance.glare.updater.ArtifactProxy(artifact)[source]

Bases: glance.glare.domain.proxy.Artifact

A proxy that is capable of modifying an artifact via jsonpatch methods.

Currently supported methods are update, remove, replace.

add(path, value)[source]
remove(path, value=None)[source]
replace(path, value)[source]
class glance.glare.updater.ArtifactRepoProxy(repo)[source]

Bases: glance.glare.domain.proxy.ArtifactRepo

glance.glare.updater.wrap_property(prop_value, full_path)[source]

Module contents

class glance.glare.Showlevel[source]

Bases: object

BASIC = 1
DIRECT = 2
NONE = 0
TRANSITIVE = 3
static from_str(str_value)[source]
static to_str(n)[source]