Skip to content

v0.1.0

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

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