deployer.views package

Submodules

deployer.views.application module

class deployer.views.application.ApplicationApi[source]

Bases: flask.views.MethodView

API for create, deleting, fetching applications

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

Deletes all applications with given name

Parameters:name (str) – Name of the application
Returns:Flask response code for 202.
get(name=None)[source]
list(*args, **kwargs)[source]

Lists all applications.

Parameters:kwargs
Returns:
methods = ['DELETE', 'GET', 'POST']
post(*args, **kwargs)[source]

Allows creation of new application version. :return:

class deployer.views.application.RecoveryApi[source]

Bases: flask.views.MethodView

Provides API for deployment recovery :param MethodView: :return:

methods = ['POST']
post(*args, **kwargs)[source]

Allows creation of new application version. :return:

class deployer.views.application.StateApi[source]

Bases: flask.views.MethodView

API for managing state of a given deployment

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

Deletes applications with given name and version

Parameters:
  • name (str) – Name of the application
  • version (str) – Version of the application
Returns:

Flask response code for 202.

class deployer.views.application.UnitApi[source]

Bases: flask.views.MethodView

API for units of a deployed application version

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

Gets all deployed units for a given application version.

Parameters:
  • name
  • version
Returns:

Flask Response wrapping units list

methods = ['GET']
class deployer.views.application.VersionApi[source]

Bases: flask.views.MethodView

API for deleting and fetching versions for application.

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

Deletes applications with given name and version

Parameters:
  • name (str) – Name of the application
  • version (str) – Version of the application
Returns:

Flask response code for 202.

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

Finds single deployment. Require search to be enabled.

Parameters:kwargs
Returns:Flask Response wrapping deployment.
get(name, version=None)[source]
list(*args, **kwargs)[source]

Lists all applications. Require search to be enabled.

Parameters:kwargs
Returns:Flask Response wrapping deployment list.
methods = ['DELETE', 'GET']
deployer.views.application.register(app, **kwargs)[source]

deployer.views.root module

class deployer.views.root.RootApi[source]

Bases: flask.views.MethodView

Root API

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

Gets the version for the Deployer API.

Returns:Flask Json Response containing version.
methods = ['GET']
deployer.views.root.register(app, **kwargs)[source]

Registers RootApi (‘/’) Only GET operation is available.

Parameters:app – Flask application
Returns:None

deployer.views.task module

class deployer.views.task.TaskApi[source]

Bases: flask.views.MethodView

Api for task

get(id=None)[source]
methods = ['GET']
deployer.views.task.register(app, **kwargs)[source]

Module contents