GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - loft-sh/loft-javascript-client

BranchesTags
Open more actions menu

Latest commit

 

History

368 Commits
368 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
bin
bin
 
 
gen
gen
 
 
lib
lib
 
 
src
src
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
index.ts
index.ts
 
 
package.json
package.json
 
 
tsconfig.build.json
tsconfig.build.json
 
 
tsconfig.json
tsconfig.json
 
 

Repository files navigation

loft-javascript-client

Setup

Add this repository as a dependency to your package.json file: npm npm install https://github.com/loft-sh/loft-javascript-client

yarn yarn add https://github.com/loft-sh/loft-javascript-client

pnpm pnpm install https://github.com/loft-sh/loft-javascript-client

Usage

The client can be imported @loft-enterprise/client. It's a singleton instance that doesn't require further configuration and can be used like so:

import { Client, Resources } from "@loft-enterprise/client"

// init client
const client = new Client("MY_ACCESS_KEY", "https://path-to-loft")

// use client
const result = await client.management(Resources.ManagementV1VirtualClusterInstance).List()
if (result.err) {
  console.error(result)
} else {
  // print all virtual clusters
  console.info(result.val.items)
}

If you need to access the generated models outside of the client and Resources, you need to import them from the gen subfolder:

import { ClusterV1VirtualCluster } from "@loft-enterprise/client/gen/models/ClusterV1VirtualCluster"

About

No description, website, or topics provided.

Resources

Readme
Activity
Custom properties

Stars

1 star

Watchers

3 watching

Forks

1 fork
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.