cmd

package
v0.1.16 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2020 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// All the following "unknown" variables are being injected at
	// build time via the cross-platform directive inside the Makefile
	//
	// Version is the semver coming from the VERSION file
	Version = "unknown"

	// GitSHA is the git ref that the cli was built from
	GitSHA = "unknown"

	// BuildTime is a human-readable time when the cli was built at
	BuildTime = "unknown"
)

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func NewDefaultState added in v0.1.3

func NewDefaultState() cliState

NewDefaultState creates a new cliState with some defaults

Types

type Profiles added in v0.1.3

type Profiles map[string]credsDetails

Profiles is the representation of the ~/.lacework.toml

Example:

[default] account = "example" api_key = "EXAMPLE_0123456789" api_secret = "_0123456789"

[dev] account = "dev" api_key = "DEV_0123456789" api_secret = "_0123456789"

Jump to

Keyboard shortcuts

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