v0.1.0
Changelog
- Release of
lacework-cli
MVP #28
Basic Usage
Install the tool following the documentation here, then run a basic command:
$ lacework-cli integration list
- Lacework API client (Go) #2
Basic Usage
package main
import (
"fmt"
"log"
"github.com/lacework/go-sdk/api"
)
func main() {
lacework, err := api.NewClient("account")
if err == nil {
log.Fatal(err)
}
tokenRes, err := lacework.GenerateTokenWithKeys("KEY", "SECRET")
if err != nil {
log.Fatal(err)
}
// Output: YOUR-ACCESS-TOKEN
fmt.Println(tokenRes.Token())
}