Skip to content

clumio-code/clumio-go-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Clumio GO SDK

Overview

The clumio-go-sdk GO package provides an object-oriented API which allows developers to write software using operations which Clumio provides for protecting data. This document provides information on how to build and use the SDK.

Requirements

The library requires GO 1.20 and higher. Third-party libraries are also required.

Install

go get github.com/clumio-code/clumio-go-sdk

Quick Start

import (
	"github.com/clumio-code/clumio-go-sdk/config"
	"github.com/clumio-code/clumio-go-sdk/controllers"
	"github.com/clumio-code/clumio-go-sdk/models"
)

func main() {
	cfg := config.Config{
		Token: <access_token>,
		// BaseUrl can be API URL of any namespace
		BaseUrl: <base_url>,
	}
	handler := controllers.NewPolicyDefinitionsV1(cfg)
	res, cerr := handler.ListPolicyDefinitions(nil, nil)
}

The REST API documentation describes all the available APIs and can be accessed from the help section in the top right corner of the Clumio UI.