/rubrik-sdk-for-go

Rubrik SDK for Go

Primary LanguageGoMIT LicenseMIT

Rubrik SDK for Go

GoDoc

Rubrik Gopher Logo

🔨 Installation

go get github.com/rubrikinc/rubrik-sdk-for-go/rubrikcdm

🔍 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)

}

📘 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! ❤️

💪 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! ⭐

📌 License

👉 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: build@rubrik.com 💌