Skip to content

JupiterOne/jupiterone-client-go

Repository files navigation

JupiterOne Client Go

Requirements

Usage

package main

import (
	"fmt"

	j1 "github.com/jupiterone/jupiterone-client-go/jupiterone"
)

func main() {
	var entityProps j1.EntityProperties

	// Set configuration
	config := j1.Config{
		APIKey:    "api_key",
		AccountID: "accountid",
		Region:    "dev",
	}

	entityProps.Key = "go-client-key"
	entityProps.Type = "go_client_type"
	entityProps.Class = "Record"

	//Initialize client
	client, err := j1.NewClient(&config)

	if err != nil {
		fmt.Println("failed to create JupiterOne client: %s", err.Error())
	}

	//Do stuffs
	// fmt.Print(client)
	fmt.Print(client.Entity.Create(entityProps))
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published