Skip to content

SpectraLogic/ds3_go_sdk

Repository files navigation

Spectra S3 Go SDK

Build Status Apache V2 License

An SDK conforming to Spectra S3 for Golang 1.10

Contact Us

Join us at our Google Groups forum to ask questions, or see frequently asked questions.

Contributing

If you would like to contribute to the source code, sign the Contributors Agreement. For an overview of how we use Github, please review our Github Workflow.

Documentation

The latest documentation is located at Go SDK Documentation.

Installing

The Go SDK is a Go module. Add it to your project with:

go get github.com/SpectraLogic/ds3_go_sdk

To build the SDK from source, clone the repo anywhere and run:

git clone https://github.com/SpectraLogic/ds3_go_sdk.git
cd ds3_go_sdk
go build ./...

Requires Go 1.23 or later.

Client

In the ds3_go_sdk you create a Client instance through the setting of the following environment variables and using buildclient.FromEnv().

  • DS3_ENDPOINT - The URL to the DS3 Endpoint
  • DS3_ACCESS_KEY - The DS3 access key
  • DS3_SECRET_KEY - The DS3 secret key
  • http_proxy - If set, the Client instance will proxy through this URL

Examples

All examples are listed in the samples module. All samples can be run from samples main.

Running Tests

There are unit tests in the ds3 package, and integration tests in the ds3_integration package. Run from the repo root.

In order to run the integration tests the following environment variables must be used to configure which DS3 appliance to run the tests against: DS3_ENDPOINT, DS3_ACCESS_KEY, and DS3_SECRET_KEY.

Run all tests (unit and integration) with test output:

go test -v ./...

Run unit tests with test output:

go test -v ./ds3/...

Run integration tests with test output:

go test -v ./ds3_integration/...

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages