go-sdk

module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 27, 2020 License: Apache-2.0

README

Lacework Go SDK

This repository provides a Go API client, tools, libraries, relevant documentation, code samples, processes, and/or guides that allow developers to interact with Lacework.

API Client (api)

A Golang API client for interacting with the Lacework API.

Basic Usage
import (
	"fmt"
	"log"

	"github.com/lacework/go-sdk/api"
)

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

Look at the api/ folder for more documentation.

Lacework CLI (cli)

The Lacework Command Line Interface.

Basic Usage

Build and install the CLI by running make install-cli, the automation will ask you to update your PATH environment variable to execute the compiled lacework-cli binary.

$ make install-cli

# Make sure to update your PATH with the command provided from the above command

$ lacework-cli help

Look at the cli/ folder for more documentation.

Copyright 2020, Lacework Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Directories

Path Synopsis
cli
cmd
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL