OpenVeo server API for plugins

API Docs for: 7.0.0
Show:

factory

Module: storages

static

Summary

Defines a factory to get an instance of a Storage.

// Create a new Storage instance
var db = openVeoApi.storages.factory.get('mongodb', mongoDbConfiguration);

Item Index

Methods

Methods

get

Provided by the grunt module.

Defined in lib/grunt/ngDpTask/expressionFactory.js:21

Syntax

get

(
  • name
  • expression
)
Expression static

Summary

Gets an instance of an Expression.

Parameters:

  • name String

    The AngularJS element name (see Expression.ELEMENTS)

  • expression Object

    The definition expression as returned by esprima

Returns:

Expression:

The definition expression

get

Syntax

get

(
  • type
  • configuration
)
Storage static

Summary

Gets a Storage instance.

Parameters:

  • type String

    The expected storage type, could be "mongodb"

  • configuration Object

    A storage configuration object which depends on the storage type

Returns:

Storage:

The Storage instance