Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jupiterone/jupiterone-client-go
https://github.com/jupiterone/jupiterone-client-go
Last synced: 7 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/jupiterone/jupiterone-client-go
- Owner: JupiterOne
- License: mit
- Created: 2021-09-16T15:03:05.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-05-08T04:35:56.000Z (6 months ago)
- Last Synced: 2024-06-21T01:40:50.239Z (5 months ago)
- Language: Go
- Size: 259 KB
- Stars: 3
- Watchers: 16
- Forks: 3
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# JupiterOne Client Go
## Requirements
- [Go](https://golang.org/doc/install)
## Usage
```go
package mainimport (
"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))
}```