API Docs¶
Deployer¶
Deployer sub-module.
Engines¶
Engine sub-module.
-
class
renga_deployer.engines.
DockerEngine
[source]¶ Class for deploying contexts on docker.
Initialize the docker engine.
-
class
renga_deployer.engines.
Engine
[source]¶ Base engine class.
Extension¶
Renga Deployer Service.
Models¶
Models sub-module.
-
class
renga_deployer.models.
Context
(**kwargs)[source]¶ Execution context.
Additionally it contains two columns
created
andupdated
with automatically managed timestamps.A simple constructor that allows initialization from kwargs.
Sets attributes on the constructed instance using the names and values in
kwargs
.Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.
-
creator
¶ Creator of the context.
-
id
¶ Context identifier.
-
jwt
¶ JWT with which the context has been created.
-
spec
¶ Context specification.
-
-
class
renga_deployer.models.
Execution
(**kwargs)[source]¶ Represent an execution of a context.
Additionally it contains two columns
created
andupdated
with automatically managed timestamps.A simple constructor that allows initialization from kwargs.
Sets attributes on the constructed instance using the names and values in
kwargs
.Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.
-
context_id
¶ Context identifier from which the execution started.
-
engine
¶ Engine name.
-
engine_id
¶ Internal identifier returned by an engine.
-
id
¶ Execution identifier.
-
jwt
¶ JWT with which the execution has been created.
-
namespace
¶ Namespace name.
-
-
renga_deployer.models.
db
= <SQLAlchemy engine=None>¶ Core database object.
Utils¶
Utility functions.
-
renga_deployer.utils.
dict_from_labels
(labels, separator='=')[source]¶ Create a multidict from label string.