Skip to content
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Create CODEOWNERS Mar 1, 2019
docs Update quick-start Mar 28, 2019
rubrikcdm Update storageClass valid choices documentation Mar 28, 2019
.gitignore add basic .gitignore Oct 7, 2018
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md Mar 4, 2019
CONTRIBUTING.md Merge branch 'master' into devel Jan 11, 2019
LICENSE Update LICENSE Jan 6, 2019
README.md Add godoc reference badge to README Apr 12, 2019

README.md

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 💌

You can’t perform that action at this time.