Skip to content

igordcard/ngc-go-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NGC Go SDK

ngc-go-sdk ngc-go-cli

Project Overview

This repository contains the NGC Go SDK, a library for interacting with NVIDIA GPU Cloud (NGC) services. The SDK provides Go bindings to access NGC APIs for managing GPU resources, models, and deployments.

Features

  • Simple and compatible Go bindings for NGC APIs.
  • Support for Go 1.23+.
  • Organized structure with public APIs in pkg/ and internal logic in internal/.

Installation

To install the NGC Go SDK, ensure you have Go 1.23+ installed. Then, add the module to your project:

go get github.com/igordcard/ngc-go-sdk

CLI

The SDK includes a command-line interface (CLI) tool for interacting with NGC services directly from the terminal. The CLI source code is located in the cmd/ngc-go-cli/ directory.

Building the CLI

To build the CLI binary, use the provided Makefile:

make build-cli

This creates an executable named ngc-go-cli in the bin/ directory.

Alternatively, build manually with:

go build -o bin/ngc-go-cli ./cmd/ngc-go-cli

Using the CLI

After building, run the CLI with:

./bin/ngc-go-cli --help

Refer to the CLI's help output or the examples/ directory for usage details.

Usage

Import the SDK in your Go code:

import "github.com/igordcard/ngc-go-sdk/pkg/client"

Create a client and interact with NGC services. Refer to the examples/ directory for detailed usage.

Testing

Run tests with:

make test

(you'll need to go install gotest.tools/gotestsum@latest)

Or, to avoid installing gotestsum:

make test-nofancy

Or directly with:

go test ./...

Contributing

Follow the developer workflows: build with go build, lint with go vet, format with go fmt. Ensure all public APIs are documented.

License

See LICENSE.md file for details.

About

NVIDIA GPU Cloud (NGC) Go SDK

Topics

Resources

License

Stars

Watchers

Forks

Contributors