The karbor.services.operationengine.operation_manager Module

Manage all operations.

class karbor.services.operationengine.operation_manager.OperationManager(user_trust_manager)

Bases: object

Manage all operation classes which are defined at operations dir.

check_operation_definition(operation_type, operation_definition)

Check operation definition.

Parameters:
  • operation_type – the type of operation
  • operation_definition – the definition of operation
:raise InvalidInput if the operation_type is invalid or
InvalidOperationDefinition if operation_definition is invalid
run_operation(operation_type, operation_definition, **kwargs)

Run operation.

Parameters:
  • operation_type – the type of operation
  • operation_definition – the definition of operation

:raise InvalidInput if the operation_type is invalid.