Documentation ¶
Index ¶
- Constants
- Variables
- func CacheTransform(key string) *diskv.PathKey
- func Execute() (err error)
- func GenerateMarkdownDocs()
- func InverseCacheTransform(pathKey *diskv.PathKey) string
- func NewDefaultState() *cliState
- func NewVulnerabilityPolicyError(assessment api.VulnerabilityAssessment, failOnSeverity string, ...) *vulnerabilityPolicyError
- type AgentHost
- type AgentsResponse
- type Honeyvent
- type OS
Constants ¶
View Source
const ( // DisableTelemetry is an environment variable that can be used to // disable telemetry sent to Honeycomb DisableTelemetry = "LW_TELEMETRY_DISABLE" // HomebrewInstall is an environment variable that denotes the // install method was via homebrew package manager HomebrewInstall = "LW_HOMEBREW_INSTALL" )
View Source
const (
AzureCloudEnv = "POWERSHELL_DISTRIBUTION_CHANNEL"
)
Env variables found in GCP, AWS and Azure cloudshell. Used to determine if cli is running on cloudshell.
View Source
const ConfigBackupDir = "cfg_backups"
The name of the directory we will store backups of configuration files before migrating them
View Source
const MaxCacheSize = 1024 * 1024 * 1024
Variables ¶
View Source
var ( // HoneyApiKey is a variable that is injected at build time via // the cross-platform directive inside the Makefile, this key is // used to send events to Honeycomb so that we can understand how // our customers use the Lacework CLI HoneyApiKey = "unknown" // HoneyDataset is the dataset in Honeycomb that we send tracing // data this variable will be set depending on the environment we // are running on. During development, we send all events and // tracing data to a default dataset. HoneyDataset = "lacework-cli-dev" )
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" // The name of the version cache file needed for daily version checks VersionCacheFile = "version_cache" )
View Source
var SupportedPackageManagers = []string{"dpkg-query", "rpm"} // @afiune can we support yum and apk?
Functions ¶
func CacheTransform ¶ added in v0.10.0
func CacheTransform(key string) *diskv.PathKey
func Execute ¶
func Execute() (err error)
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 GenerateMarkdownDocs ¶ added in v0.2.4
func GenerateMarkdownDocs()
func InverseCacheTransform ¶ added in v0.10.0
func InverseCacheTransform(pathKey *diskv.PathKey) string
func NewDefaultState ¶ added in v0.1.3
func NewDefaultState() *cliState
NewDefaultState creates a new cliState with some defaults
func NewVulnerabilityPolicyError ¶ added in v0.4.0
func NewVulnerabilityPolicyError( assessment api.VulnerabilityAssessment, failOnSeverity string, failOnFixable bool, ) *vulnerabilityPolicyError
Types ¶
type AgentHost ¶ added in v0.2.10
type AgentHost struct { MachineHostname string `json:"MACHINE_HOSTNAME"` Name string `json:"NAME"` MachineIP string `json:"MACHINE_IP_ADDR"` Status string `json:"STATUS"` //CreatedTime int64 `json:"CREATED_TIME"` AgentVersion string `json:"AGENT_VERSION"` Mode string `json:"MODE"` Tags machineTags `json:"TAGS"` }
type AgentsResponse ¶ added in v0.2.10
type Honeyvent ¶ added in v0.2.12
type Honeyvent struct { Version string `json:"version"` CfgVersion int `json:"config_version"` Os string `json:"os"` Arch string `json:"arch"` Command string `json:"command,omitempty"` Args []string `json:"args,omitempty"` Account string `json:"account,omitempty"` Subaccount string `json:"subaccount,omitempty"` Profile string `json:"profile,omitempty"` ApiKey string `json:"api_key,omitempty"` Feature string `json:"feature,omitempty"` FeatureData interface{} `json:"feature.data,omitempty"` DurationMs int64 `json:"duration_ms,omitempty"` Error string `json:"error,omitempty"` InstallMethod string `json:"install_method,omitempty"` // tracing data for multiple events, this is useful for specific features // within the Lacework CLI such as daily version check, polling mechanism, etc. TraceID string `json:"trace.trace_id,omitempty"` SpanID string `json:"trace.span_id,omitempty"` ParentID string `json:"trace.parent_id,omitempty"` }
Honeyvent defines what a Honeycomb event looks like for the Lacework CLI
func (*Honeyvent) AddFeatureField ¶ added in v0.2.13
Source Files ¶
- access_token.go
- account.go
- agent.go
- agent_install.go
- agent_list_poc.go
- api.go
- cache.go
- cli_state.go
- cli_unix.go
- compliance.go
- compliance_aws.go
- compliance_azure.go
- compliance_gcp.go
- configure.go
- docs.go
- emoji.go
- emoji_unix.go
- errors.go
- event.go
- file.go
- flags.go
- honeyvent.go
- integration.go
- integration_aws.go
- integration_aws_cloudwatch.go
- integration_aws_govcloud.go
- integration_aws_s3_channel.go
- integration_azure.go
- integration_cisco_webex.go
- integration_ctr_reg_limits.go
- integration_datadog.go
- integration_docker_hub.go
- integration_docker_v2.go
- integration_ecr.go
- integration_email.go
- integration_gar.go
- integration_gcp.go
- integration_gcp_pub_sub_channel.go
- integration_gcr.go
- integration_ghcr.go
- integration_jira.go
- integration_microsoft_teams.go
- integration_new_relic_channel.go
- integration_pagerduty.go
- integration_qradar_channel.go
- integration_service_now_channel.go
- integration_slack_channel.go
- integration_splunk.go
- integration_victorops.go
- integration_webhook.go
- lql.go
- lql_create.go
- lql_delete.go
- lql_describe.go
- lql_list.go
- lql_show.go
- lql_sources.go
- lql_update.go
- lql_validate.go
- migration.go
- outputs.go
- package_manifest.go
- policy.go
- policy_create.go
- policy_update.go
- prompt.go
- root.go
- table_render.go
- version.go
- vuln_container.go
- vuln_host.go
- vuln_html.go
- vulnerability.go
Click to show internal directories.
Click to hide internal directories.