Releases: lacework/go-sdk
Releases · lacework/go-sdk
v0.1.2
Release Notes
Another day, another release. These are the release notes for the version v0.1.2
.
Features
- feat(lwloggder): go package for logging messages (Salim Afiune Maya)(cb5feee)
Refactor
- refactor(cli): rename cli binary to lacework (Salim Afiune Maya)(51ce22f)
Breaking Changes
With the rename of the Lacework cli from lacework-cli
to lacework
users
will have to manually remove previous versions of the binary manually, for Mac
users that location should be /usr/local/bin/lacework-cli
if the cli was installed
with the install.sh
script.
v0.1.1
Release Notes
Another day, another release. These are the release notes for the version 'v0.1.1'.
Features
- feat(api): debug logs for all requests & responses (Salim Afiune Maya)(209f7ee)
- feat(api): add api client IDs for multi-client req (Salim Afiune Maya)(82c209f)
- feat(api): implement a logging mechanism using zap (Salim Afiune Maya)(c078a70)
Bug Fixes
- fix(cli): error when account is empty (Salim Afiune Maya)(7dc59aa)
- fix(cli): load debug state correctly (Salim Afiune Maya)(8f7343c)
- fix(cli) Update environment variable prefix (Scott Ford)(484ca39)
- docs(README) Update cli README to add documentation for ENV VARS (Scott Ford)(484ca39)
Documentation Updates
- doc(cli): fix single quote typo (Salim Afiune Maya)(3770b89)
- doc(logo): add logo to main README (Salim Afiune Maya)(620b992)
Other Changes
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())
}