rubrik-sdk-for-go

module
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 20, 2023 License: MIT

README ΒΆ

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 πŸ’Œ

Directories ΒΆ

Path Synopsis
Package rubrikcdm transforms the Rubrik API functionality into easy to consume functions.
Package rubrikcdm transforms the Rubrik API functionality into easy to consume functions.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL