Skip to content

outscale/osc-sdk-go

Repository files navigation

Project Graduated

Outscale SDK for Golang

Outscale SDK Go


🌐 Links


📄 Table of Contents


🧭 Overview

Outscale SDK for Golang (osc-sdk-go) is the official Go SDK to interact with the OUTSCALE APIs.

It provides:

  • A typed Go client for OUTSCALE cloud APIs.
  • Helpers to build and send requests using Go modules.
  • Integration that fits naturally into existing Go applications and tooling.

You will need an OUTSCALE account and API credentials to use this SDK.


✅ Requirements

  • Go 1.24+.
  • Git (if you plan to clone the repository).
  • Access to the OUTSCALE API (valid access key / secret key or basic auth).
  • Network access to OUTSCALE API endpoints.

⚙ Installation

Option 1: Use Go modules (recommended)

Add the module to your project:

go get github.com/outscale/osc-sdk-go/v2

This will add github.com/outscale/osc-sdk-go/v2 to your go.mod file.


🛠 Configuration

You typically configure the SDK in Go code when creating the client (for example: region, credentials, and optional HTTP settings).

A typical flow is:

  1. Build a configuration (region, credentials, etc.).
  2. Create a new API client from this configuration.
  3. Use the generated services to call the OUTSCALE APIs.

Refer to the GoDoc / pkg.go.dev reference and the examples/ directory for concrete configuration patterns and authentication approaches.


🚀 Usage

Once the module is installed and configured in your code, you can start calling the API.

A high-level example flow:

  1. Import the SDK in your Go file.
  2. Initialize the configuration and API client.
  3. Call the desired operation (for example, reading VMs, volumes, or networking resources).
  4. Handle the response and errors as in any standard Go program.

See the Examples section below for more details.


💡 Examples

The repository includes an examples/ directory to help you get started quickly.

You will find examples showing how to:

  • Initialize a client.
  • Authenticate against the OUTSCALE API.
  • Perform common operations on compute, network, and storage resources.
  • Handle responses and errors in idiomatic Go.

We recommend starting from these examples and adapting them to your own use case.


📜 License

Outscale SDK for Golang is released under the BSD-3-Clause license.

© Outscale SAS

See LICENSE for full details.

This project is compliant with REUSE.


🤝 Contributing

We welcome contributions!

Please read our Contributing Guidelines and Code of Conduct before submitting a pull request.

About

Outscale SDK for Golang

Topics

Resources

Code of conduct

Contributing

Stars

Watchers

Forks

Contributors 12