Skip to content

Releases: lacework/go-sdk

v0.1.2

08 Apr 16:04
7fe0719
Compare
Choose a tag to compare

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

02 Apr 15:14
190412b
Compare
Choose a tag to compare

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

  • chore(cli): hide integration sub-commands (Salim Afiune Maya)(791ef7d)
  • chore(typo): fix RestfulAPI typo (Salim Afiune Maya)(39a7298)
  • build: fix release checks (Salim Afiune Maya)(08bdb7d)
  • build(release): generate changelog and release notes (Salim Afiune Maya)(3aa0a91)

v0.1.0

27 Mar 16:37
288bdf8
Compare
Choose a tag to compare

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
    • feat: Implement service model #22
    • feat: Create and Get GCP Integration #18
    • feat: Update and Delete GCP Integration #11

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())
}