ngc-go-sdk ngc-go-cli
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.
- Simple and compatible Go bindings for NGC APIs.
- Support for Go 1.23+.
- Organized structure with public APIs in
pkg/and internal logic ininternal/.
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-sdkThe 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.
To build the CLI binary, use the provided Makefile:
make build-cliThis 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-cliAfter building, run the CLI with:
./bin/ngc-go-cli --helpRefer to the CLI's help output or the examples/ directory for usage details.
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.
Run tests with:
make test(you'll need to go install gotest.tools/gotestsum@latest)
Or, to avoid installing gotestsum:
make test-nofancyOr directly with:
go test ./...Follow the developer workflows: build with go build, lint with go vet, format with go fmt. Ensure all public APIs are documented.
See LICENSE.md file for details.