lib/api.js
function(identifier, revisionId, out, cb) {
    logger.info('list containers: ' + identifier);
    var systemId = _sr.findSystem(identifier);
    var containers = {};
    if (!systemId) { return cb(new Error(ERR_NOSYSID)); }
    _builder.loadTargets(systemId, revisionId, function(err, targets) {
      if (err) { return cb(err); }
      _.each(targets, function(target) {
        _.each(target.containerDefinitions, function(cdef) {
          containers[cdef.id] = cdef;
        });
      });
      cb(null, _.values(containers));
    });
  }
function(identifier, revisionId, out, cb) {
    logger.info('list containers: ' + identifier);
    var systemId = _sr.findSystem(identifier);
    var containers = {};
    if (!systemId) { return cb(new Error(ERR_NOSYSID)); }
    _builder.loadTargets(systemId, revisionId, function(err, targets) {
      if (err) { return cb(err); }
      _.each(targets, function(target) {
        _.each(target.containerDefinitions, function(cdef) {
          containers[cdef.id] = cdef;
        });
      });
      cb(null, _.values(containers));
    });
  }
function ( identifier , revisionId , out , cb ) { logger . info ( 'list containers: ' + identifier ) ; var systemId = _sr . findSystem ( identifier ) ; var containers = { } ; if ( ! systemId ) { return cb ( new Error ( ERR_NOSYSID ) ) ; } _builder . loadTargets ( systemId , revisionId , function ( err , targets ) { if ( err ) { return cb ( err ) ; } _ . each ( targets , function ( target ) { _ . each ( target . containerDefinitions , function ( cdef ) { containers [ cdef . id ] = cdef ; } ) ; } ) ; cb ( null , _ . values ( containers ) ) ; } ) ; }
list all of the available containers in a system
list all of the available containers in a system