rubrik-sdk-for-go
rubrik-sdk-for-go copied to clipboard
Rubrik SDK for Go
Rubrik SDK for Go
:hammer: Installation
go get github.com/rubrikinc/rubrik-sdk-for-go/rubrikcdm
:mag: Example
package main
import (
"fmt"
"log"
"github.com/rubrikinc/rubrik-sdk-for-go/rubrikcdm"
)
func main() {
rubrik, err := rubrikcdm.ConnectEnv()
if err != nil {
log.Fatal(err)
}
// GET the Rubrik cluster Version
clusterSummary, err := rubrik.Get("v1", "/cluster/me")
if err != nil {
log.Fatal(err)
}
fmt.Println(clusterSummary.(map[string]interface{})["version"])
// Simplified Function to determine the Rubrik cluster version
clusterVersion, err := rubrik.ClusterVersion()
if err != nil {
log.Fatal(err)
}
fmt.Println(clusterVersion)
}
:blue_book: Documentation
Here are some resources to get you started! If you find any challenges from this project are not properly documented or are unclear, please raise an issue and let us know! This is a fun, safe environment - don't worry if you're a GitHub newbie! :heart:
- Quick Start Guide
- SDK for Go Documentation
- Rubrik API Documentation
- VIDEO: Getting Started with the Rubrik SDK for Go
- BLOG: Introducing the Rubrik SDK for Go
:muscle: How You Can Help
We glady welcome contributions from the community. From updating the documentation to adding additional functions, all ideas are welcome. Thank you in advance for all of your issues, pull requests, and comments! :star:
- Contributing Guide
- Code of Conduct
:pushpin: License
- MIT License
:point_right: About Rubrik Build
We encourage all contributors to become members. We aim to grow an active, healthy community of contributors, reviewers, and code owners. Learn more in our Welcome to the Rubrik Build Community page.
We'd love to hear from you! Email us: [email protected] :love_letter: