package
0.46.0
Repository: https://github.com/lacework/go-sdk.git
Documentation: pkg.go.dev

# README

Go API Client

A Golang API client for interacting with the Lacework API.

Usage

Download the library into your $GOPATH:

$ go get github.com/lacework/go-sdk/api

Import the library into your tool:

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

Requirements

To interact with Lacework's API you need to have:

  1. A Lacework account
  2. Either API access keys or token for authentication

Examples

Create a new Lacework client that will automatically generate a new access token from the provided set of API keys, then hit the /external/integrations endpoint to list all available integrations from your account:

package main

import (
	"fmt"
	"log"

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

func main() {
	lacework, err := api.NewClient("account",
		api.WithTokenFromKeys("KEY", "SECRET"),
	)
	if err != nil {
		log.Fatal(err)
	}

	integrations, err := lacework.Integrations.List()
	if err != nil {
		log.Fatal(err)
	}

	// Output:
	// CUSTOMER_123456B DATADOG
	// CUSTOMER_123456A CONT_VULN_CFG
	// CUSTOMER_123456C PAGER_DUTY_API
	fmt.Println(integrations.String())
}

Look at the _examples/ folder for more examples.

# Functions

CopyClient generates a copy of the provider Lacework API Go client Example of basic usage client, err := api.NewClient("demo") if err == nil { client.Integrations.List() } clientCopy, err := api.CopyClient(client, api.WithOrgAccess()) if err == nil { clientCopy.Integrations.List() }.
DatadogService returns the datadogService type for the corresponding string input.
DatadogSite returns the datadogSite type for the corresponding string input.
FindAlertChannelType looks up inside the list of available alert channel types the matching type from the provided string, if none, returns NoneAlertChannelType.
FindCloudAccountType looks up inside the list of available cloud account types the matching type from the provided string, if none, returns NoneCloudAccount.
FindContainerRegistryType looks up inside the list of available container registry types the matching type from the provided string, if none, returns NoneContainerRegistry.
FindIntegrationType looks up inside the list of available integration types the matching type from the provided string, if none, returns NoneIntegration.
FindResourceGroupType looks up inside the list of available resource group types the matching type from the provided string, if none, returns NoneResourceGroup.
NewAlertChannel returns an instance of the AlertChannelRaw struct with the provided Alert Channel integration type, name and raw data as an interface{}.
NewAlertProfile returns an instance of the AlertProfileConfig struct Basic usage: Initialize a new AlertProfileConfig struct, then use the new instance to do CRUD operations client, err := api.NewClient("account") if err != nil { return err } alertProfile := api.NewAlertProfile( "CUSTOM_PROFILE_NAME", "LW_HE_FILES_DEFAULT_PROFILE" []api.AlertTemplate{{ ..
NewAlertRule returns an instance of the AlertRule struct Basic usage: Initialize a new AlertRule struct, then use the new instance to do CRUD operations client, err := api.NewClient("account") if err != nil { return err } alertRule := api.NewAlertRule( "Foo", api.AlertRuleConfig{ Description: "My Alert Rule" Severities: api.AlertRuleSeverities{api.AlertRuleSeverityHigh, Channels: []string{"TECHALLY_000000000000AAAAAAAAAAAAAAAAAAAA"}, ResourceGroups: []string{"TECHALLY_111111111111AAAAAAAAAAAAAAAAAAAA"} }, }, ) client.V2.AlertRules.Create(alertRule) .
No description provided by the author
No description provided by the author
NewAwsCfgIntegration returns an instance of AwsIntegration of type AWS_CFG.
NewAwsCloudTrailIntegration returns an instance of AwsIntegration of type AWS_CT_SQS.
NewAwsCloudWatchAlertChannel returns an instance of AwsCloudWatchAlertChannel with the provided name and data.
No description provided by the author
No description provided by the author
NewAwsIntegration returns an instance of AwsIntegration with the provided integration type, name and data.
No description provided by the author
NewAwsS3AlertChannel returns an instance of AwsS3AlertChannel with the provided name and data.
NewAzureActivityLogIntegration returns an instance of AzureIntegration of type AZURE_AL_SEQ.
NewAzureCfgIntegration returns an instance of AzureIntegration of type AZURE_CFG.
NewAzureIntegration returns an instance of AzureIntegration with the provided integration type, name and data.
No description provided by the author
NewCiscoWebexAlertChannel returns an instance of CiscoWebexAlertChannel with the provided name and data.
New generates a new Lacework API client Example of basic usage lacework, err := api.NewClient("demo") if err == nil { lacework.Integrations.List() }.
NewCloudAccount returns an instance of the CloudAccountRaw struct with the provided Cloud Account integration type, name and raw data as an interface{}.
NewContainerRegIntegration returns an instance of ContainerRegIntegration with the provided name and data.
NewContainerRegistry returns an instance of the ContainerRegistryRaw struct with the provided Container Registry integration type, name and raw data as an interface{}.
NewDatadogAlertChannel returns an instance of DatadogAlertChannel with the provided name and data.
No description provided by the author
No description provided by the author
NewGcpAuditLogIntegration returns an instance of GcpIntegration of type GCP_AT_SES.
NewGcpCfgIntegration returns an instance of GcpIntegration of type GCP_CFG.
NewGcpIntegration returns an instance of GcpIntegration with the provided integration type, name and data.
NewGcpPubSubAlertChannel returns an instance of GcpPubSubAlertChannel with the provided name and data.
No description provided by the author
No description provided by the author
NewJiraAlertChannel returns an instance of JiraAlertChannel with the provided name and data.
NewJiraCloudAlertChannel returns a JiraAlertChannel instance preconfigured as a JIRA_CLOUD type.
NewJiraServerAlertChannel returns a JiraAlertChannel instance preconfigured as a JIRA_SERVER type.
NewMicrosoftTeamsAlertChannel returns an instance of MicrosoftTeamsAlertChannel with the provided name and data.
NewNewRelicAlertChannel returns an instance of NewRelicAlertChannel with the provided name and data.
NewPagerDutyAlertChannel returns an instance of PagerDutyAlertChannel with the provided name and data.
NewQRadarAlertChannel returns an instance of QRadarAlertChannel with the provided name and data.
No description provided by the author
No description provided by the author
NewReportRule returns an instance of the ReportRule struct Basic usage: Initialize a new ReportRule struct, then use the new instance to do CRUD operations client, err := api.NewClient("account") if err != nil { return err } reportRule := api.NewReportRule( "Foo", api.ReportRuleConfig{ Description: "My Report Rule" Severities: api.ReportRuleSeverities{api.ReportRuleSeverityHigh, EmailAlertChannels: []string{"TECHALLY_000000000000AAAAAAAAAAAAAAAAAAAA"}, ResourceGroups: []string{"TECHALLY_111111111111AAAAAAAAAAAAAAAAAAAA"} ReportNotificationTypes: api.WeeklyEventsReportRuleNotifications{TrendReport: true}, }, }, ) client.V2.ReportRules.Create(reportRule) .
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewResourceGroup returns an instance of the ResourceGroupData struct with the provided ResourceGroup type, name and the props field as an interface{}.
NewServiceNowAlertChannel returns an instance of ServiceNowAlertChannel with the provided name and data.
NewSlackAlertChannel returns an instance of SlackAlertChannel with the provided name and data.
NewSplunkAlertChannel returns an instance of SplunkAlertChannel with the provided name and data.
NewTeamMember returns an instance of the Team Member struct Basic usage: Initialize a new TeamMember struct and then use the new instance to perform CRUD operations.
NewTeamMemberOrg returns an instance of the team member org struct Basic usage: Initialize a new TeamMemberOrg struct and then use the new instance to perform CRUD operations.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewVictorOpsAlertChannel returns an instance of VictorOpsAlertChannel with the provided name and data.
NewVulnerabilityException returns an instance of the VulnerabilityException struct Basic usage: Initialize a new VulnerabilityException struct, then use the new instance to do CRUD operations client, err := api.NewClient("account") if err != nil { return err } exception := api.VulnerabilityExceptionConfig{ Type: api.VulnerabilityExceptionTypeHost, Description: "This is a vuln exception", ExceptionReason: api.VulnerabilityExceptionReasonCompensatingControls, Severities: api.VulnerabilityExceptionSeverities{api.VulnerabilityExceptionSeverityCritical}, Fixable: true, ResourceScope: api.VulnerabilityExceptionContainerResourceScope{ ImageID: []string{""}, ImageTag: []string{""}, Registry: []string{""}, Repository: []string{""}, Namespace: []string{""}, }, ExpiryTime: time.Now().AddDate(0, 1, 0), } vulnerabilityException := api.NewVulnerabilityException("vulnerabilityException", exception) client.V2.VulnerabilityExceptions.Create(vulnerabilityException) .
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewWebhookAlertChannel returns an instance of WebhookAlertChannel with the provided name and data.
No description provided by the author
No description provided by the author
No description provided by the author
QRadarComm returns the qradarComm type for the corresponding string input.
No description provided by the author
VictorOpsService returns the datadogService type for the corresponding string input.
VictorOpsSite returns the datadogSite type for the corresponding string input.
WithApiKeys sets the key_id and secret used to generate API access tokens.
WithApiV2 configures the client to use the API version 2 (/api/v2) for common API endpoints.
WithExpirationTime configures the token expiration time.
WithHeader configures a HTTP Header to pass to every request.
WithLifecycleCallbacks will configure the lifecycle callback functions.
WithLogFile configures the client to write messages to the provided file.
WithLogLevel sets the log level of the client, available: info or debug.
WithLogLevelAndFile sets the log level of the client and writes the log messages to the provided file.
WithLogLevelAndWriter sets the log level of the client and writes the log messages to the provided io.Writer.
WithLogWriter configures the client to log messages to the provided io.Writer.
WithOrgAccess sets the Org-Access Header to access the organization level data sets.
WithSubaccount sets a subaccount into an API client.
WithTimeout changes the default client timeout.
WithToken sets the token used to authenticate the API requests.
WithTokenAndExpiration sets the token used to authenticate the API requests and additionally configures the expiration of the token.
WithTokenFromKeys sets the API access keys and triggers a new token generation NOTE: Order matters when using this option, use it at the end of a NewClient() func.
WithURL sets the base URL, this options is only available for test purposes.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Info and above (which is All of them).
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
AWS Config integration type.
AWS CloudTrail integration type.
AWS CloudWatch integration type.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
AWS Gov Cloud Config integration type.
AWS GovCloud CloudTrail integration type.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
AWS S3 channel integration type.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Azure Activity Log integration type.
No description provided by the author
No description provided by the author
Azure Config integration type.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Cisco Webex integration type.
No description provided by the author
No description provided by the author
No description provided by the author
Container registry integration type.
No description provided by the author
Critical only.
No description provided by the author
Datadog channel integration type.
No description provided by the author
The list of valid inputs for DatadogService field.
No description provided by the author
No description provided by the author
The list of valid inputs for DatadogSite field.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Email integration type.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
GCP Audit Log integration type.
No description provided by the author
GCP Config integration type.
No description provided by the author
No description provided by the author
No description provided by the author
Organization level integration with GCP.
Project level integration with GCP.
No description provided by the author
GCP Pub Sub alert channel integration type.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
High and above.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Jira integration type.
No description provided by the author
Low and above.
No description provided by the author
requires Org Access account client.WithOrgAccess().
No description provided by the author
No description provided by the author
Medium and above.
No description provided by the author
Microsoft Teams channel integration type.
New Relic Insights alert channel integration type.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NoneAlertChannelType type that defines a non-existing Alert Channel integration.
type that defines a non-existing Cloud Account integration.
type that defines a non-existing Container Registry integration.
No description provided by the author
type that defines a non-existing integration.
No description provided by the author
type that defines a non-existing registry.
type that defines a non-existing Resource Group.
No description provided by the author
Pager Duty integration type.
No description provided by the author
QRadar channel integration type.
The list of valid inputs for QRadar Communication Type field.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Sevice Now alert channel integration type.
No description provided by the author
No description provided by the author
Slack channel integration type.
No description provided by the author
No description provided by the author
Splunk channel integration type.
No description provided by the author
No description provided by the author
Version is the semver coming from the VERSION file.
No description provided by the author
VictorOps channel integration type.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Webhook channel integration type.

# Variables

AlertChannelTypes is the list of available Alert Channel integration types.
AlertLevels is the list of available alert levels.
Enable all Aws report rules.
Enable all Azure report rules.
Enable all Daily report rules.
Enable all Gcp report rules.
Enable all report rules.
Enable all Weekly report rules.
AwsEcrAuthTypes is the list of available ECR auth types.
Wildcard values for selecting all aws accounts.
Wildcard values for selecting all azure subscriptions.
CloudAccountTypes is the list of available Cloud Account integration types.
ContainerRegistryTypes is the list of available Container Registry integration types.
Wildcard values for selecting all labels/tags.
Wildcard values for selecting all labels/tags.
EntityTypes is the list of available entity types.
Wildcard values for selecting all gcp projects.
IntegrationTypes is the list of available integration types.
No description provided by the author
No description provided by the author
Wildcard values for selecting all lacework accounts.
Wildcard values for selecting all machine tags.
RegistryTypes is the list of available registry types.
ResourceGroupTypes is the list of available Resource Group types.
ValidComplianceStatus is a list of all valid compliance status.
ValidEventSeverities is a list of all valid event severities.
ValidPolicySeverities is a list of all valid policy severities.
ValidVulnSeverities is a list of all valid severities in a vulnerability report.
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
AccountService is a service that interacts with Account related endpoints from the Lacework Server.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
AgentAccessTokensService is the service that interacts with the AgentAccessTokens schema from the Lacework APIv2 Server.
No description provided by the author
No description provided by the author
AgentInfoService is the service that interacts with the AgentInfo schema from the Lacework APIv2 Server.
AgentsService is a service that interacts with the Agent Access Tokens endpoints from the Lacework Server.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
AlertChannelsService is the service that interacts with the AlertChannels schema from the Lacework APIv2 Server.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
AlertRulesService is the service that interacts with the AlertRules schema from the Lacework APIv2 Server.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
AwsRecommendationsV1 is a service that interacts with the V1 Recommendations endpoints from the Lacework Server.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Workaround for props being returned as a json string.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
AzureRecommendationsV1 is a service that interacts with the V1 Recommendations endpoints from the Lacework Server.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Workaround for props being returned as a json string.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
CloudAccountsService is the service that interacts with the CloudAccounts schema from the Lacework APIv2 Server.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ComplianceService is a service that interacts with the compliance endpoints from the Lacework Server.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ContainerRegistriesService is the service that interacts with the ContainerRegistries schema from the Lacework APIv2 Server.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Workaround for props being returned as a json string.
No description provided by the author
ContainerVulnerabilityService is a service that interacts with the vulnerabilities endpoints for the container space from the Lacework Server.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
DataExportRulesService is a service that interacts with the DataExportRule endpoints from the Lacework Server.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
DatasourcesService is a service that interacts with the Datasources endpoints from the Lacework Server.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
EventsService is a service that interacts with the Events endpoints from the Lacework Server.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
GcpCredentials is already defined in api/integrations_gcp.go:163 so we need to add a "V2" at the end to make it clear that this is the Google Credentials struct for API v2.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
GcpRecommendationsV1 is a service that interacts with the V1 Recommendations endpoints from the Lacework Server.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Workaround for props being returned as a json string.
No description provided by the author
No description provided by the author
GcpCredentials is already defined in api/integrations_gcp.go:163 so we need to add a "V2" at the end to make it clear that this is the Google Credentials struct for API v2.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
HostVulnerabilityService is a service that interacts with the vulnerabilities endpoints for the host space from the Lacework Server.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
IntegrationsService is a service that interacts with the integrations endpoints from the Lacework Server.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Workaround for props being returned as a json string.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Workaround for props being returned as a json string.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
PackageManifest is the representation of a package manifest that the Lacework API server expects when executing a scan { "os_pkg_info_list": [ { "os":"Ubuntu", "os_ver":"18.04", "pkg": "openssl", "pkg_ver": "1.1.1-1ubuntu2.1~18.04.6" } ] }.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
PolicyService is a service that interacts with the Custom Policies endpoints from the Lacework Server.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
QueryService is a service that interacts with the Queries endpoints from the Lacework Server.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
RecommendationsServiceV1 is a service that interacts with the V1 Recommendations endpoints from the Lacework Server.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ReportRulesService is the service that interacts with the ReportRules schema from the Lacework APIv2 Server.
No description provided by the author
ReportsService is a service that interacts with the Reports endpoints from the Lacework APIv2 Server.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ResourceGroupsService is the service that interacts with the ResourceGroups schema from the Lacework APIv2 Server.
SchemasService is the service that retrieves schemas for v2.
SearchFilter is the representation of an advanced search payload for retrieving information out of the Lacework APIv2 Server An advanced example of a SearchFilter to search for an Agent Access Token that matches the provider token alias and return only the token found: SearchFilter{ Filters: []Filter{ Filter{ Field: "tokenAlias", Expression: "eq", Value: "k8s-deployment, }, }, Returns: []string{"accessToken"}, }.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
TeamMember is for a standalone team member without org access.
No description provided by the author
TeamMemberOrg is for an organizational team member.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
APIv2.
APIv1.
No description provided by the author
In order to properly PATCH we need to omit items that aren't specified.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
UserProfileService is the service that interacts with the UserProfile schema from the Lacework APIv2 Server.
No description provided by the author
No description provided by the author
V2Endpoints groups all APIv2 endpoints available, they are grouped by schema which matches with our service architecture.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
VulnerabilitiesService is a service that interacts with the vulnerabilities endpoints from the Lacework Server.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
VulnerabilityExceptionsService is the service that interacts with the VulnerabilityExceptions schema from the Lacework APIv2 Server.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

AlertChannel is an interface that helps us implement a few functions that any Alert Channel might use, there are some cases, like during Update, where we need to get the ID of the Alert Channel and its type, this will allow users to pass any Alert Channel that implements these methods.
CloudAccount is an interface that helps us implement a few functions that any Cloud Account might use, there are some cases, like during Update, where we need to get the ID of the Cloud Account and its type, this will allow users to pass any Cloud Account that implements these methods.
No description provided by the author
No description provided by the author
ContainerRegistry is an interface that helps us implement a few functions that any Container Registry might use, there are some cases, like during Update, where we need to get the ID of the Container Registry and its type, this will allow users to pass any Container Registry that implements these methods.
No description provided by the author
Pageable is the interface that structs should implement to become pageable and be able to use the client.NextPage() function.
No description provided by the author
No description provided by the author
V2RawType is the interface that should be implemented when a struct is a response that contains v2CommonIntegrationData.
No description provided by the author
VulnerabilityAssessment is used to provide common functions that are required by host or container vulnerability assessments, this is used to treat them both as equal.

# Type aliases

Enum for Alert Severity Levels.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author