npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

volos-management-common

v0.9.4

Published

Management library for the Volos system.

Downloads

272

Readme

volos-management-common

This module includes management functions for volos modules including managing developers and applications. Currently this is only depended upon by the OAuth modules.

Modules

This module does not do anything on its own -- it depends on an implementation which stores the cache in a particular place. Current implementations are:

  • volos-management-apigee: Apigee backend.
  • volos-management-redis: Redis backend.

Example

var Management = require('volos-management-redis');
var mgmt = cm.create({}); // include any redis options that are not default
mgmt.createDeveloper({ firstName: 'Joe', lastName: 'Schmoe', email: '[email protected]', userName: 'joeschmoe' }, cb);

Reference

Object structures

Developer

developer: {
  email (string)
  id: (string)
  userName: (string)
  firstName: (string)
  lastName: (string)
  status: (string)
  attributes: (hash)
}

Application

application: {
  name: (string)
  id: (string)
  status: (string)
  callbackUrl: (string)
  developerId: (string)
  attributes: (hash)
  credentials: [(credentials)],
  defaultScope: (string),
  scopes: (string) or [(string)]
}

Credentials

credentials: {
  key: (string)
  secret: (string)
  status: (string)
  attributes: (object)
}

Functions

Management.createDeveloper(developer, callback)

Create a Developer.

  • developer (required): Developer structure
  • callback (required): The result of the call is returned via callback: function(err, developer)

Management.getDeveloper(uuid, callback)

Retrieve a Developer.

  • uuid (required): The uuid of the Developer.
  • callback (required): The result of the call is returned via callback: function(err, developer)

Management.updateDeveloper(developer, callback)

Update a Developer.

  • developer (required): Developer structure
  • callback (required): The result of the call is returned via callback: function(err, developer)

Management.deleteDeveloper(uuid, callback)

Delete a Developer.

  • uuid (required): The uuid of the Developer.
  • callback (required): The result of the call is returned via callback: function(err)

Management.createApp(application, callback)

Create an Application.

  • application (required): Application structure
  • callback (required): The result of the call is returned via callback: function(err, application)

Management.getApp(uuid, callback)

Retrieve an Application.

  • uuid (required): The uuid of the Application.
  • callback (required): The result of the call is returned via callback: function(err, application)

Management.getDeveloperApp(developerEmail, applicationName, callback)

Retrieve an Application given the developer's email and application name.

  • developerEmail (required): The developer email.
  • applicationName (required): The name of the application.
  • callback (required): The result of the call is returned via callback: function(err, application)

Management.deleteApp(uuid, callback)

Delete an Application.

  • uuid (required): The uuid of the Application.
  • callback (required): The result of the call is returned via callback: function(err)

Management.updateApp(application, callback)

Update an Application.

  • application (required): Application structure
  • callback (required): The result of the call is returned via callback: function(err, application)