Socket
Socket
Sign inDemoInstall

@rhoas/registry-management-sdk

Package Overview
Dependencies
2
Maintainers
5
Versions
88
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @rhoas/registry-management-sdk

RHOAS Service Registry Management SDK


Version published
Weekly downloads
1
decreased by-98.67%
Maintainers
5
Install size
475 kB
Created
Weekly downloads
 

Readme

Source

Service Registry Management

RHOAS Service Registry Management TypeScript/JavaScript client that utilizes axios. The generated Node module can be used in the following environments:

Environment

  • Node.js
  • Webpack
  • Browserify

Language level

  • ES5 - you must have a Promises/A+ library installed
  • ES6

Module system

  • CommonJS
  • ES6 module system

It can be used in both TypeScript and JavaScript. In TypeScript, the definition should be automatically resolved via package.json. (Reference)

Getting Started

Navigate to the folder of your consuming project and run one of the following commands.

Install Package
npm install @rhoas/registry-management-sdk --save
Usage
import { Configuration, DefaultApi } from "@rhoas/registry-management-sdk";

const accessToken = process.env.CLOUD_API_TOKEN;
const basePath = "https://api.openshift.com";

const apiConfig = new Configuration({
  accessToken,
  basePath,
});

const registryApi = new DefaultApi(apiConfig)

registryApi.listRegistries().then((data) => {
    console.log(data?.data)
}).catch((err) => {
    console.error(err.message)
})

See ./examples for full example

Security

API is using https://sso.redhat.com for OAuth Authentication. Provided token needs to be AccessToken returned from library like keycloak.js

Keywords

FAQs

Last updated on 27 May 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc