From fb249cc7ce38d05b7c1a90b8f92f9d98715338d9 Mon Sep 17 00:00:00 2001 From: Lei Jin Date: Wed, 30 Oct 2024 21:03:53 +0000 Subject: [PATCH] chore: Change the reference path to v2 Signed-off-by: Lei Jin --- Makefile | 26 +++++++++---------- api/README.md | 6 ++--- api/_examples/active-containers/main.go | 4 +-- api/_examples/agent-access-token/main.go | 2 +- api/_examples/alert-channels-v2/main.go | 2 +- api/_examples/alert-profiles/main.go | 2 +- api/_examples/alert-rules/main.go | 2 +- .../aws-cloudwatch-alert-channel/main.go | 2 +- api/_examples/aws-s3-alert-channel/main.go | 2 +- .../cisco-webex-alert-channel/main.go | 2 +- .../aws-agentless-scanning-org/main.go | 2 +- .../aws-agentless-scanning/main.go | 2 +- api/_examples/cloud-accounts/aws-cfg/main.go | 2 +- .../cloud-accounts/aws-ct-sqs/main.go | 2 +- .../cloud-accounts/aws-eks-audit/main.go | 2 +- .../cloud-accounts/azure-ad-al/main.go | 2 +- .../cloud-accounts/gcp-al-pub-sub/main.go | 2 +- .../cloud-accounts/gcp-gke-audit/main.go | 2 +- api/_examples/cloud-accounts/oci-cfg/main.go | 2 +- api/_examples/components/main.go | 2 +- .../aws_ecr_access_key/main.go | 2 +- .../aws_ecr_iam_role/main.go | 2 +- .../inline_scanner/main.go | 2 +- .../proxy_scanner/main.go | 2 +- api/_examples/container-vuln-search/main.go | 2 +- api/_examples/data-export-rules/main.go | 2 +- api/_examples/datadog-alert-channel/main.go | 2 +- api/_examples/feature-flags/main.go | 2 +- .../gcp_pub_sub-alert-channel/main.go | 2 +- api/_examples/host-vuln-list-cves/main.go | 2 +- .../main.go | 2 +- .../microsoft-teams-alert-channel/main.go | 2 +- api/_examples/new-relic-alert-channel/main.go | 2 +- api/_examples/pagerduty-alert-channel/main.go | 2 +- api/_examples/pagination/main.go | 2 +- api/_examples/policy-exceptions/main.go | 2 +- api/_examples/policy/main.go | 4 +-- api/_examples/qradar-alert-channel/main.go | 2 +- api/_examples/report-definitions/main.go | 2 +- api/_examples/report-distributions/main.go | 2 +- api/_examples/report-rules/main.go | 2 +- api/_examples/reports/aws/main.go | 2 +- api/_examples/reports/azure/main.go | 2 +- api/_examples/reports/gcp/main.go | 2 +- api/_examples/resource-groups/main.go | 2 +- .../service-now-alert-channel/main.go | 2 +- api/_examples/slack-alert-channel/main.go | 2 +- api/_examples/splunk-alert-channel/main.go | 2 +- api/_examples/team-members-org/main.go | 2 +- api/_examples/team-members/main.go | 2 +- api/_examples/token-generation/main.go | 2 +- api/_examples/victorops-alert-channel/main.go | 2 +- .../vulnerability-exceptions/main.go | 2 +- api/_examples/webhook-alert-channel/main.go | 2 +- api/agent_access_tokens_test.go | 4 +-- api/agent_info_test.go | 4 +-- api/alert_channel_datadog_test.go | 6 ++--- api/alert_channels_aws_cloudwatch_test.go | 6 ++--- api/alert_channels_aws_s3_test.go | 6 ++--- ...alert_channels_cisco_spark_webhook_test.go | 6 ++--- api/alert_channels_email_user_test.go | 6 ++--- api/alert_channels_gcp_pub_sub_test.go | 6 ++--- api/alert_channels_ibm_qradar_test.go | 6 ++--- api/alert_channels_jira_cloud_server_test.go | 6 ++--- api/alert_channels_microsoft_teams_test.go | 6 ++--- api/alert_channels_new_relic_test.go | 6 ++--- api/alert_channels_pager_duty_test.go | 6 ++--- api/alert_channels_service_now_rest_test.go | 6 ++--- api/alert_channels_slack_channel_test.go | 6 ++--- api/alert_channels_splunk_test.go | 6 ++--- api/alert_channels_test.go | 6 ++--- api/alert_channels_victorops_test.go | 6 ++--- api/alert_channels_webhook_test.go | 6 ++--- api/alert_profiles_test.go | 4 +-- api/alert_rules_test.go | 6 ++--- api/alerts.go | 4 +-- api/alerts_close_test.go | 4 +-- api/alerts_comment_test.go | 4 +-- api/alerts_details_events_test.go | 4 +-- api/alerts_details_integrations_test.go | 4 +-- api/alerts_details_investigation_test.go | 4 +-- api/alerts_details_related_test.go | 4 +-- api/alerts_details_test.go | 4 +-- api/alerts_details_timeline_test.go | 4 +-- api/alerts_search_test.go | 4 +-- api/alerts_test.go | 4 +-- api/auth.go | 2 +- api/auth_test.go | 4 +-- api/callbacks_test.go | 4 +-- api/client.go | 2 +- api/client_test.go | 4 +-- api/cloud_accounts.go | 2 +- api/cloud_accounts_aws_cfg_test.go | 6 ++--- api/cloud_accounts_aws_ct_sqs_test.go | 6 ++--- api/cloud_accounts_aws_eks_audit_test.go | 6 ++--- api/cloud_accounts_aws_gov_cfg_test.go | 6 ++--- api/cloud_accounts_aws_gov_ct_test.go | 6 ++--- api/cloud_accounts_aws_sidekick_org_test.go | 6 ++--- api/cloud_accounts_aws_sidekick_test.go | 6 ++--- api/cloud_accounts_az_al_test.go | 6 ++--- api/cloud_accounts_az_cfg_test.go | 6 ++--- api/cloud_accounts_azure_ad_al_test.go | 6 ++--- api/cloud_accounts_azure_sidekick_test.go | 6 ++--- api/cloud_accounts_gcp_al_pubsub_test.go | 6 ++--- api/cloud_accounts_gcp_at_test.go | 6 ++--- api/cloud_accounts_gcp_cfg_test.go | 6 ++--- api/cloud_accounts_gcp_gke_audit_test.go | 6 ++--- api/cloud_accounts_gcp_sidekick_test.go | 6 ++--- api/cloud_accounts_oci_cfg_test.go | 6 ++--- api/cloud_accounts_test.go | 6 ++--- api/component_data_test.go | 4 +-- api/components_test.go | 4 +-- ...iner_registries_aws_ecr_access_key_test.go | 6 ++--- ...tainer_registries_aws_ecr_iam_role_test.go | 6 ++--- api/container_registries_dockerhub_test.go | 6 ++--- api/container_registries_gcp_gar_test.go | 6 ++--- api/container_registries_ghcr_test.go | 6 ++--- api/container_registries_test.go | 6 ++--- api/datasources_test.go | 4 +-- api/entities_containers.go | 2 +- api/entities_images_test.go | 4 +-- api/entities_machine_details_test.go | 4 +-- api/entities_test.go | 4 +-- api/entities_users_test.go | 4 +-- api/errors_test.go | 4 +-- api/feature_flags_test.go | 4 +-- api/http_test.go | 4 +-- api/inventory_aws_test.go | 4 +-- api/inventory_test.go | 4 +-- api/logging.go | 2 +- api/logging_test.go | 6 ++--- api/lql_delete_test.go | 4 +-- api/lql_execute.go | 2 +- api/lql_execute_test.go | 4 +-- api/lql_test.go | 4 +-- api/lql_update_test.go | 4 +-- api/lql_validate_test.go | 4 +-- api/metrics_test.go | 4 +-- api/organization_info.go | 2 +- api/organization_info_test.go | 4 +-- api/policy.go | 2 +- api/policy_exceptions_test.go | 6 ++--- api/policy_parse_test.go | 2 +- api/policy_test.go | 6 ++--- api/report_definitions_test.go | 6 ++--- api/report_distributions_test.go | 6 ++--- api/report_rule_notification_types_test.go | 2 +- api/report_rules_test.go | 6 ++--- api/reports_test.go | 4 +-- api/resource_groups_test.go | 6 ++--- api/team_members_test.go | 6 ++--- api/user_profile.go | 2 +- api/user_profile_test.go | 4 +-- api/v2_recommendations_aws.go | 2 +- api/v2_recommendations_aws_test.go | 4 +-- api/v2_recommendations_azure.go | 2 +- api/v2_recommendations_azure_test.go | 4 +-- api/v2_recommendations_gcp.go | 2 +- api/v2_recommendations_gcp_test.go | 4 +-- api/v2_recommendations_test.go | 4 +-- api/v2_search_filters_test.go | 2 +- api/v2_suppressions_test.go | 4 +-- api/v2_test.go | 4 +-- api/v2_vulnerabilities.go | 4 +-- api/v2_vulnerabilities_test.go | 4 +-- api/version_test.go | 2 +- api/vulnerability_exceptions_test.go | 6 ++--- cli/cdk/client/go/client.go | 4 +-- cli/cmd/access_token.go | 2 +- cli/cmd/agent.go | 2 +- cli/cmd/agent_aws-install_ec2ssm.go | 2 +- cli/cmd/agent_install.go | 2 +- cli/cmd/agent_list.go | 2 +- cli/cmd/alert_channel.go | 2 +- cli/cmd/alert_close.go | 2 +- cli/cmd/alert_list.go | 8 +++--- cli/cmd/alert_list_fixable.go | 2 +- cli/cmd/alert_list_fixable_internal_test.go | 2 +- cli/cmd/alert_profiles.go | 2 +- cli/cmd/alert_profiles_test.go | 2 +- cli/cmd/alert_rules.go | 2 +- cli/cmd/alert_show.go | 2 +- cli/cmd/alert_show_details.go | 2 +- cli/cmd/alert_show_integrations.go | 2 +- cli/cmd/alert_show_investigation.go | 2 +- cli/cmd/alert_show_related.go | 2 +- cli/cmd/alert_show_timeline.go | 2 +- cli/cmd/api.go | 2 +- cli/cmd/aws.go | 2 +- cli/cmd/awsiam.go | 2 +- cli/cmd/cache.go | 4 +-- cli/cmd/cdk.go | 2 +- cli/cmd/cdk_test.go | 2 +- cli/cmd/cli_state.go | 12 ++++----- cli/cmd/cloud_account.go | 6 ++--- cli/cmd/cloud_account_test.go | 2 +- cli/cmd/compliance.go | 6 ++--- cli/cmd/compliance_aws.go | 6 ++--- cli/cmd/compliance_aws_test.go | 4 +-- cli/cmd/compliance_azure.go | 6 ++--- cli/cmd/compliance_azure_test.go | 6 ++--- cli/cmd/compliance_gcp.go | 6 ++--- cli/cmd/compliance_gcp_test.go | 4 +-- cli/cmd/compliance_test.go | 2 +- cli/cmd/component.go | 2 +- cli/cmd/component_dev.go | 4 +-- cli/cmd/configure.go | 6 ++--- cli/cmd/container_registry.go | 2 +- cli/cmd/container_registry_test.go | 2 +- cli/cmd/content_library.go | 2 +- cli/cmd/content_library_internal_test.go | 2 +- cli/cmd/errors.go | 4 +-- cli/cmd/errors_lql.go | 2 +- cli/cmd/gcp.go | 6 ++--- cli/cmd/generate_aws.go | 4 +-- cli/cmd/generate_aws_controltower.go | 2 +- cli/cmd/generate_aws_controltower_test.go | 2 +- cli/cmd/generate_aws_eks_audit.go | 2 +- cli/cmd/generate_aws_eks_audit_test.go | 2 +- cli/cmd/generate_aws_test.go | 2 +- cli/cmd/generate_azure.go | 2 +- cli/cmd/generate_azure_test.go | 2 +- cli/cmd/generate_gcp.go | 2 +- cli/cmd/generate_gcp_test.go | 2 +- cli/cmd/generate_gke.go | 2 +- cli/cmd/generate_gke_test.go | 2 +- cli/cmd/generate_oci.go | 4 +-- cli/cmd/honeyvent.go | 4 +-- cli/cmd/honeyvent_test.go | 4 +-- cli/cmd/integration_aws.go | 2 +- cli/cmd/integration_aws_cloudwatch.go | 2 +- cli/cmd/integration_aws_govcloud.go | 2 +- cli/cmd/integration_aws_s3_channel.go | 2 +- cli/cmd/integration_azure.go | 2 +- cli/cmd/integration_cisco_webex.go | 2 +- cli/cmd/integration_datadog.go | 2 +- cli/cmd/integration_docker_hub.go | 2 +- cli/cmd/integration_docker_v2.go | 2 +- cli/cmd/integration_ecr.go | 2 +- cli/cmd/integration_email.go | 2 +- cli/cmd/integration_gar.go | 2 +- cli/cmd/integration_gcp.go | 2 +- cli/cmd/integration_gcp_pub_sub_audit.go | 2 +- cli/cmd/integration_gcp_pub_sub_channel.go | 2 +- cli/cmd/integration_gcr.go | 2 +- cli/cmd/integration_ghcr.go | 2 +- cli/cmd/integration_inline_scanner.go | 2 +- cli/cmd/integration_jira.go | 2 +- cli/cmd/integration_microsoft_teams.go | 2 +- cli/cmd/integration_new_relic_channel.go | 2 +- cli/cmd/integration_oci.go | 2 +- cli/cmd/integration_pagerduty.go | 2 +- cli/cmd/integration_proxy_scanner.go | 2 +- cli/cmd/integration_qradar_channel.go | 2 +- cli/cmd/integration_service_now_channel.go | 2 +- cli/cmd/integration_slack_channel.go | 2 +- cli/cmd/integration_splunk.go | 2 +- cli/cmd/integration_victorops.go | 2 +- cli/cmd/integration_webhook.go | 2 +- cli/cmd/lql.go | 6 ++--- cli/cmd/lql_create.go | 2 +- cli/cmd/lql_internal_test.go | 4 +-- cli/cmd/lql_library.go | 2 +- cli/cmd/lql_list.go | 2 +- cli/cmd/lql_list_internal_test.go | 2 +- cli/cmd/lql_preview.go | 4 +-- cli/cmd/lql_show.go | 2 +- cli/cmd/lql_sources.go | 2 +- cli/cmd/lql_sources_internal_test.go | 2 +- cli/cmd/lql_update.go | 2 +- cli/cmd/lql_validate.go | 2 +- cli/cmd/migration.go | 6 ++--- cli/cmd/package_manifest.go | 4 +-- cli/cmd/package_manifest_test.go | 4 +-- cli/cmd/policy.go | 6 ++--- cli/cmd/policy_create.go | 2 +- cli/cmd/policy_delete.go | 2 +- cli/cmd/policy_exceptions.go | 4 +-- cli/cmd/policy_exceptions_test.go | 2 +- cli/cmd/policy_internal_test.go | 2 +- cli/cmd/policy_library.go | 4 +-- cli/cmd/policy_update.go | 4 +-- cli/cmd/report_definitions.go | 4 +-- cli/cmd/report_definitions_create.go | 2 +- cli/cmd/report_definitions_create_test.go | 2 +- cli/cmd/report_definitions_test.go | 2 +- cli/cmd/report_definitions_update.go | 2 +- cli/cmd/report_distributions.go | 2 +- cli/cmd/report_distributions_create.go | 4 +-- cli/cmd/report_distributions_update.go | 4 +-- cli/cmd/report_rules.go | 2 +- cli/cmd/report_rules_test.go | 2 +- cli/cmd/resource_group_v2.go | 2 +- cli/cmd/resource_groups.go | 2 +- cli/cmd/root.go | 4 +-- cli/cmd/suppressions.go | 2 +- cli/cmd/suppressions_aws.go | 2 +- cli/cmd/suppressions_aws_test.go | 4 +-- cli/cmd/suppressions_azure.go | 2 +- cli/cmd/suppressions_azure_test.go | 4 +-- cli/cmd/suppressions_gcp.go | 2 +- cli/cmd/suppressions_gcp_test.go | 4 +-- cli/cmd/team_members.go | 2 +- cli/cmd/team_members_test.go | 2 +- cli/cmd/telemetry.go | 2 +- cli/cmd/version.go | 10 +++---- cli/cmd/vuln_container.go | 2 +- cli/cmd/vuln_container_list_assessments.go | 6 ++--- .../vuln_container_list_assessments_test.go | 2 +- cli/cmd/vuln_container_scan.go | 2 +- cli/cmd/vuln_container_show_assessments.go | 6 ++--- cli/cmd/vuln_container_test.go | 4 +-- cli/cmd/vuln_host.go | 4 +-- cli/cmd/vuln_host_list_cves.go | 8 +++--- cli/cmd/vuln_host_list_hosts.go | 4 +-- cli/cmd/vuln_host_scan_package_manifest.go | 2 +- .../vuln_host_scan_package_manifest_test.go | 2 +- cli/cmd/vuln_host_show_assessment.go | 2 +- cli/cmd/vuln_host_show_assessment_test.go | 2 +- cli/cmd/vuln_host_test.go | 4 +-- cli/cmd/vuln_html.go | 4 +-- cli/cmd/vulnerability.go | 2 +- cli/cmd/vulnerability_exception_container.go | 2 +- cli/cmd/vulnerability_exception_host.go | 2 +- cli/cmd/vulnerability_exceptions_test.go | 2 +- cli/cmd/vulnerability_test.go | 4 +-- cli/cmd/vulnerabilty_exceptions.go | 4 +-- cli/main.go | 2 +- go.mod | 2 +- integration/alert_list_test.go | 2 +- integration/alert_rules_test.go | 2 +- .../aws_controltower_generation_test.go | 4 +-- integration/aws_eks_audit_generation_test.go | 4 +-- integration/aws_generation_test.go | 4 +-- integration/azure_generation_test.go | 4 +-- integration/compliance_aws_test.go | 2 +- integration/context/ctx_cfg.go | 2 +- integration/framework_test.go | 6 ++--- integration/gcp_generation_test.go | 4 +-- integration/generate_oci_test.go | 4 +-- integration/gke_generation_test.go | 4 +-- integration/host_vulnerability_test.go | 4 +-- integration/lwupdater_test.go | 2 +- integration/report_definitions_create_test.go | 2 +- integration/report_definitions_test.go | 2 +- integration/report_definitions_update_test.go | 4 +-- integration/resource_groups_test.go | 2 +- .../test_resources/cdk/go-component/client.go | 2 +- .../test_resources/cdk/go-component/main.go | 6 ++--- integration/version_test.go | 2 +- .../golang/internal/logger/logger.go | 2 +- .../golang/internal/metric/metric.go | 2 +- internal/file/file_test.go | 2 +- internal/format/secret_test.go | 2 +- internal/pointer/bool_test.go | 2 +- internal/validate/email_test.go | 2 +- lwcloud/gcp/resources/folders/folders.go | 2 +- lwcloud/gcp/resources/instances/instances.go | 6 ++--- lwcloud/gcp/resources/projects/projects.go | 4 +-- lwcomponent/api_info_test.go | 2 +- lwcomponent/catalog.go | 4 +-- lwcomponent/catalog_test.go | 8 +++--- lwcomponent/cdk_component.go | 2 +- lwcomponent/cdk_component_test.go | 2 +- lwcomponent/component.go | 8 +++--- lwcomponent/component_internal_test.go | 2 +- lwcomponent/component_test.go | 8 +++--- lwcomponent/error_test.go | 2 +- lwcomponent/host_info.go | 2 +- lwcomponent/http.go | 2 +- lwcomponent/http_test.go | 4 +-- lwcomponent/staging.go | 2 +- lwcomponent/staging_test.go | 2 +- lwconfig/README.md | 6 ++--- lwconfig/_examples/main.go | 2 +- lwdomain/README.md | 6 ++--- lwdomain/domain_test.go | 2 +- lwgenerate/_examples/aws/main.go | 2 +- lwgenerate/_examples/aws_controltower/main.go | 2 +- lwgenerate/_examples/azure/main.go | 2 +- lwgenerate/_examples/gcp/main.go | 2 +- lwgenerate/_examples/hcl/main.go | 2 +- lwgenerate/aws/aws.go | 2 +- lwgenerate/aws/aws_test.go | 2 +- .../aws_controltower/aws_controltower.go | 2 +- lwgenerate/aws_eks_audit/aws_eks_audit.go | 2 +- lwgenerate/azure/azure.go | 2 +- lwgenerate/azure/azure_test.go | 4 +-- lwgenerate/gcp/gcp.go | 4 +-- lwgenerate/gcp/gcp_test.go | 4 +-- lwgenerate/gcp/gke.go | 2 +- lwgenerate/gcp/gke_test.go | 2 +- lwgenerate/gcp/service_account.go | 2 +- lwgenerate/hcl_test.go | 2 +- lwgenerate/oci/oci.go | 2 +- lwlogger/README.md | 6 ++--- lwlogger/_examples/io-writer/main.go | 2 +- lwlogger/_examples/simple-usage/main.go | 2 +- lwlogger/logger_test.go | 4 +-- lwrunner/runner.go | 2 +- lwrunner/runner_test.go | 2 +- lwseverity/severity_test.go | 2 +- lwtime/README.md | 8 +++--- lwtime/_examples/natural-time/main.go | 2 +- lwtime/_examples/relative-time/main.go | 2 +- lwtime/nattime_test.go | 2 +- lwtime/reltime_test.go | 2 +- lwupdater/README.md | 6 ++--- lwupdater/_examples/main.go | 2 +- lwupdater/updater.go | 2 +- scripts/codefresh.ps1 | 4 +-- scripts/docs/doc_gen.go | 2 +- scripts/integration_test_ctx.sh | 2 +- scripts/prepare_test_resources.sh | 2 +- 414 files changed, 693 insertions(+), 693 deletions(-) diff --git a/Makefile b/Makefile index 8636b4e49..8708867fd 100644 --- a/Makefile +++ b/Makefile @@ -19,10 +19,10 @@ PACKAGENAME?=lacework-cli CLINAME?=lacework # Honeycomb variables HONEYDATASET?=lacework-cli-dev -GO_LDFLAGS="-X github.com/lacework/go-sdk/cli/cmd.Version=$(shell cat VERSION) \ - -X github.com/lacework/go-sdk/cli/cmd.GitSHA=$(shell git rev-parse HEAD) \ - -X github.com/lacework/go-sdk/cli/cmd.HoneyDataset=$(HONEYDATASET) \ - -X github.com/lacework/go-sdk/cli/cmd.BuildTime=$(shell date +%Y%m%d%H%M%S)" +GO_LDFLAGS="-X github.com/lacework/go-sdk/v2/cli/cmd.Version=$(shell cat VERSION) \ + -X github.com/lacework/go-sdk/v2/cli/cmd.GitSHA=$(shell git rev-parse HEAD) \ + -X github.com/lacework/go-sdk/v2/cli/cmd.HoneyDataset=$(HONEYDATASET) \ + -X github.com/lacework/go-sdk/v2/cli/cmd.BuildTime=$(shell date +%Y%m%d%H%M%S)" GOFLAGS=-mod=vendor CGO_ENABLED?=0 export GOFLAGS GO_LDFLAGS CGO_ENABLED @@ -81,12 +81,12 @@ integration-context-tests: install-tools ## Run integration tests with build tag .PHONY: integration-generation-only integration-generation-only: ## Run integration tests - PATH="$(PWD)/bin:${PATH}" go test -v github.com/lacework/go-sdk/integration -timeout 30m -run "^TestGeneration" -tags="generation" + PATH="$(PWD)/bin:${PATH}" go test -v github.com/lacework/go-sdk/v2/integration -timeout 30m -run "^TestGeneration" -tags="generation" .PHONY: integration-only integration-only: install-tools ## Run integration tests - PATH="$(PWD)/bin:${PATH}" gotestsum -f testname --rerun-fails=3 --packages="github.com/lacework/go-sdk/integration" \ - -- -v github.com/lacework/go-sdk/integration -timeout 30m -tags="$(INTEGRATION_TEST_TAGS)" -run=$(regex) + PATH="$(PWD)/bin:${PATH}" gotestsum -f testname --rerun-fails=3 --packages="github.com/lacework/go-sdk/v2/integration" \ + -- -v github.com/lacework/go-sdk/v2/integration -timeout 30m -tags="$(INTEGRATION_TEST_TAGS)" -run=$(regex) .PHONY: integration-only-subset integration-only-subset: install-tools ## Run a subset of integration tests @@ -94,8 +94,8 @@ integration-only-subset: install-tools ## Run a subset of integration tests $(eval END := $(shell echo 5+$(index)*5 | bc)) $(eval LENGTH := ${words $(INTEGRATION_TEST_TAGS)}) if [ ${START} -le ${LENGTH} ]; then \ - PATH="$(PWD)/bin:${PATH}" gotestsum -f testname --rerun-fails=3 --packages="github.com/lacework/go-sdk/integration" \ - -- -v github.com/lacework/go-sdk/integration -timeout 30m \ + PATH="$(PWD)/bin:${PATH}" gotestsum -f testname --rerun-fails=3 --packages="github.com/lacework/go-sdk/v2/integration" \ + -- -v github.com/lacework/go-sdk/v2/integration -timeout 30m \ -tags="${wordlist $(START), $(END), $(INTEGRATION_TEST_TAGS)}" -run=$(regex) \ exit 1; \ fi @@ -105,14 +105,14 @@ integration-lql: build-cli-cross-platform integration-lql-only ## Build and run .PHONY: integration-lql-only integration-lql-only: ## Run lql integration tests - PATH=$(PWD)/bin:${PATH} gotestsum -- -v github.com/lacework/go-sdk/integration -timeout 30m -tags="query" + PATH=$(PWD)/bin:${PATH} gotestsum -- -v github.com/lacework/go-sdk/v2/integration -timeout 30m -tags="query" .PHONY: integration-policy integration-policy: build-cli-cross-platform integration-policy-only ## Build and run lql policy tests .PHONY: integration-policy-only integration-policy-only: ## Run lql policy tests - PATH=$(PWD)/bin:${PATH} gotestsum -- -v github.com/lacework/go-sdk/integration -timeout 30m -tags="policy" + PATH=$(PWD)/bin:${PATH} gotestsum -- -v github.com/lacework/go-sdk/v2/integration -timeout 30m -tags="policy" .PHONY: coverage coverage: test ## Output coverage profile information for each function @@ -175,7 +175,7 @@ run-api-example: ## Run an API example like 'make run-api-example example=api/_e .PHONY: build build: ## Compiles binary for the running workstation - go build -o bin/lacework -ldflags=$(GO_LDFLAGS) github.com/lacework/go-sdk/cli + go build -o bin/lacework -ldflags=$(GO_LDFLAGS) github.com/lacework/go-sdk/v2/cli .PHONY: build-cli-cross-platform build-cli-cross-platform: ## Compiles the Lacework CLI for all supported platforms @@ -184,7 +184,7 @@ build-cli-cross-platform: ## Compiles the Lacework CLI for all supported platfor -arch="amd64 386" \ -osarch="darwin/amd64 darwin/arm64 linux/arm linux/arm64" \ -ldflags=$(GO_LDFLAGS) \ - github.com/lacework/go-sdk/cli + github.com/lacework/go-sdk/v2/cli .PHONY: generate-databox generate-databox: ## *CI ONLY* Generates in memory representation of template files diff --git a/api/README.md b/api/README.md index 4e3267824..2bbb5da95 100644 --- a/api/README.md +++ b/api/README.md @@ -6,12 +6,12 @@ A Golang API client for interacting with [Lacework APIs](https://docs.lacework.n Download the library into your `$GOPATH`: - $ go get github.com/lacework/go-sdk/api + $ go get github.com/lacework/go-sdk/v2/api Import the library into your tool: ```go -import "github.com/lacework/go-sdk/api" +import "github.com/lacework/go-sdk/v2/api" ``` ## Requirements @@ -33,7 +33,7 @@ import ( "fmt" "log" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func main() { diff --git a/api/_examples/active-containers/main.go b/api/_examples/active-containers/main.go index 6d69a3f5c..da0025778 100644 --- a/api/_examples/active-containers/main.go +++ b/api/_examples/active-containers/main.go @@ -6,8 +6,8 @@ import ( "os" "time" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/array" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/array" "github.com/pkg/errors" ) diff --git a/api/_examples/agent-access-token/main.go b/api/_examples/agent-access-token/main.go index ed178b22a..b1554fb89 100644 --- a/api/_examples/agent-access-token/main.go +++ b/api/_examples/agent-access-token/main.go @@ -5,7 +5,7 @@ import ( "log" "os" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func main() { diff --git a/api/_examples/alert-channels-v2/main.go b/api/_examples/alert-channels-v2/main.go index 7420f3217..1d19ccb0a 100644 --- a/api/_examples/alert-channels-v2/main.go +++ b/api/_examples/alert-channels-v2/main.go @@ -5,7 +5,7 @@ import ( "log" "os" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func main() { diff --git a/api/_examples/alert-profiles/main.go b/api/_examples/alert-profiles/main.go index b3304afff..16ac8a859 100644 --- a/api/_examples/alert-profiles/main.go +++ b/api/_examples/alert-profiles/main.go @@ -5,7 +5,7 @@ import ( "log" "os" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func main() { diff --git a/api/_examples/alert-rules/main.go b/api/_examples/alert-rules/main.go index a3347dccf..8f523f114 100644 --- a/api/_examples/alert-rules/main.go +++ b/api/_examples/alert-rules/main.go @@ -5,7 +5,7 @@ import ( "log" "os" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func main() { diff --git a/api/_examples/aws-cloudwatch-alert-channel/main.go b/api/_examples/aws-cloudwatch-alert-channel/main.go index 81921f667..a155ab5a2 100644 --- a/api/_examples/aws-cloudwatch-alert-channel/main.go +++ b/api/_examples/aws-cloudwatch-alert-channel/main.go @@ -5,7 +5,7 @@ import ( "log" "os" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func main() { diff --git a/api/_examples/aws-s3-alert-channel/main.go b/api/_examples/aws-s3-alert-channel/main.go index b1ec38272..342effa6c 100644 --- a/api/_examples/aws-s3-alert-channel/main.go +++ b/api/_examples/aws-s3-alert-channel/main.go @@ -5,7 +5,7 @@ import ( "log" "os" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func main() { diff --git a/api/_examples/cisco-webex-alert-channel/main.go b/api/_examples/cisco-webex-alert-channel/main.go index a7ef7c38e..671b6aa32 100644 --- a/api/_examples/cisco-webex-alert-channel/main.go +++ b/api/_examples/cisco-webex-alert-channel/main.go @@ -5,7 +5,7 @@ import ( "log" "os" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func main() { diff --git a/api/_examples/cloud-accounts/aws-agentless-scanning-org/main.go b/api/_examples/cloud-accounts/aws-agentless-scanning-org/main.go index e50d25c6c..9a645471c 100644 --- a/api/_examples/cloud-accounts/aws-agentless-scanning-org/main.go +++ b/api/_examples/cloud-accounts/aws-agentless-scanning-org/main.go @@ -5,7 +5,7 @@ import ( "log" "os" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func main() { diff --git a/api/_examples/cloud-accounts/aws-agentless-scanning/main.go b/api/_examples/cloud-accounts/aws-agentless-scanning/main.go index b22852eea..02ecdbaaa 100644 --- a/api/_examples/cloud-accounts/aws-agentless-scanning/main.go +++ b/api/_examples/cloud-accounts/aws-agentless-scanning/main.go @@ -5,7 +5,7 @@ import ( "log" "os" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func main() { diff --git a/api/_examples/cloud-accounts/aws-cfg/main.go b/api/_examples/cloud-accounts/aws-cfg/main.go index 5c4ec3828..604d656f1 100644 --- a/api/_examples/cloud-accounts/aws-cfg/main.go +++ b/api/_examples/cloud-accounts/aws-cfg/main.go @@ -5,7 +5,7 @@ import ( "log" "os" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func main() { diff --git a/api/_examples/cloud-accounts/aws-ct-sqs/main.go b/api/_examples/cloud-accounts/aws-ct-sqs/main.go index 3cec05ca6..b9e8e1d9c 100644 --- a/api/_examples/cloud-accounts/aws-ct-sqs/main.go +++ b/api/_examples/cloud-accounts/aws-ct-sqs/main.go @@ -5,7 +5,7 @@ import ( "log" "os" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func main() { diff --git a/api/_examples/cloud-accounts/aws-eks-audit/main.go b/api/_examples/cloud-accounts/aws-eks-audit/main.go index 4e808d8c8..adb012e17 100644 --- a/api/_examples/cloud-accounts/aws-eks-audit/main.go +++ b/api/_examples/cloud-accounts/aws-eks-audit/main.go @@ -5,7 +5,7 @@ import ( "log" "os" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func main() { diff --git a/api/_examples/cloud-accounts/azure-ad-al/main.go b/api/_examples/cloud-accounts/azure-ad-al/main.go index 0a3fee634..407253867 100644 --- a/api/_examples/cloud-accounts/azure-ad-al/main.go +++ b/api/_examples/cloud-accounts/azure-ad-al/main.go @@ -5,7 +5,7 @@ import ( "log" "os" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func main() { diff --git a/api/_examples/cloud-accounts/gcp-al-pub-sub/main.go b/api/_examples/cloud-accounts/gcp-al-pub-sub/main.go index 646a74a16..5b11ba370 100644 --- a/api/_examples/cloud-accounts/gcp-al-pub-sub/main.go +++ b/api/_examples/cloud-accounts/gcp-al-pub-sub/main.go @@ -5,7 +5,7 @@ import ( "log" "os" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func main() { diff --git a/api/_examples/cloud-accounts/gcp-gke-audit/main.go b/api/_examples/cloud-accounts/gcp-gke-audit/main.go index e7ea0b08b..567eb9d80 100644 --- a/api/_examples/cloud-accounts/gcp-gke-audit/main.go +++ b/api/_examples/cloud-accounts/gcp-gke-audit/main.go @@ -5,7 +5,7 @@ import ( "log" "os" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func main() { diff --git a/api/_examples/cloud-accounts/oci-cfg/main.go b/api/_examples/cloud-accounts/oci-cfg/main.go index 030e953dc..3a93a5387 100644 --- a/api/_examples/cloud-accounts/oci-cfg/main.go +++ b/api/_examples/cloud-accounts/oci-cfg/main.go @@ -5,7 +5,7 @@ import ( "log" "os" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func main() { diff --git a/api/_examples/components/main.go b/api/_examples/components/main.go index cbe5a76e1..38130896d 100644 --- a/api/_examples/components/main.go +++ b/api/_examples/components/main.go @@ -5,7 +5,7 @@ import ( "log" "os" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func main() { diff --git a/api/_examples/container-registries/aws_ecr_access_key/main.go b/api/_examples/container-registries/aws_ecr_access_key/main.go index e808a4157..bc3bb840b 100644 --- a/api/_examples/container-registries/aws_ecr_access_key/main.go +++ b/api/_examples/container-registries/aws_ecr_access_key/main.go @@ -5,7 +5,7 @@ import ( "log" "os" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func main() { diff --git a/api/_examples/container-registries/aws_ecr_iam_role/main.go b/api/_examples/container-registries/aws_ecr_iam_role/main.go index f4423e4a3..3a9e4b76d 100644 --- a/api/_examples/container-registries/aws_ecr_iam_role/main.go +++ b/api/_examples/container-registries/aws_ecr_iam_role/main.go @@ -5,7 +5,7 @@ import ( "log" "os" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func main() { diff --git a/api/_examples/container-registries/inline_scanner/main.go b/api/_examples/container-registries/inline_scanner/main.go index 5e4468022..e1867e26b 100644 --- a/api/_examples/container-registries/inline_scanner/main.go +++ b/api/_examples/container-registries/inline_scanner/main.go @@ -5,7 +5,7 @@ import ( "log" "os" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func main() { diff --git a/api/_examples/container-registries/proxy_scanner/main.go b/api/_examples/container-registries/proxy_scanner/main.go index d73f94d6b..62044f868 100644 --- a/api/_examples/container-registries/proxy_scanner/main.go +++ b/api/_examples/container-registries/proxy_scanner/main.go @@ -5,7 +5,7 @@ import ( "log" "os" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func main() { diff --git a/api/_examples/container-vuln-search/main.go b/api/_examples/container-vuln-search/main.go index dcac94f24..5a43cf93e 100644 --- a/api/_examples/container-vuln-search/main.go +++ b/api/_examples/container-vuln-search/main.go @@ -6,7 +6,7 @@ import ( "os" "time" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func main() { diff --git a/api/_examples/data-export-rules/main.go b/api/_examples/data-export-rules/main.go index 9da73c2ab..bdb421814 100644 --- a/api/_examples/data-export-rules/main.go +++ b/api/_examples/data-export-rules/main.go @@ -5,7 +5,7 @@ import ( "log" "os" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func main() { diff --git a/api/_examples/datadog-alert-channel/main.go b/api/_examples/datadog-alert-channel/main.go index 4c63ab263..2a647a48c 100644 --- a/api/_examples/datadog-alert-channel/main.go +++ b/api/_examples/datadog-alert-channel/main.go @@ -5,7 +5,7 @@ import ( "log" "os" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func main() { diff --git a/api/_examples/feature-flags/main.go b/api/_examples/feature-flags/main.go index 9d6a30df5..0e8ffdce9 100644 --- a/api/_examples/feature-flags/main.go +++ b/api/_examples/feature-flags/main.go @@ -5,7 +5,7 @@ import ( "log" "os" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func main() { diff --git a/api/_examples/gcp_pub_sub-alert-channel/main.go b/api/_examples/gcp_pub_sub-alert-channel/main.go index 6463d4156..2dcd8b23d 100644 --- a/api/_examples/gcp_pub_sub-alert-channel/main.go +++ b/api/_examples/gcp_pub_sub-alert-channel/main.go @@ -5,7 +5,7 @@ import ( "log" "os" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func main() { diff --git a/api/_examples/host-vuln-list-cves/main.go b/api/_examples/host-vuln-list-cves/main.go index dee963ce9..9804a04fa 100644 --- a/api/_examples/host-vuln-list-cves/main.go +++ b/api/_examples/host-vuln-list-cves/main.go @@ -5,7 +5,7 @@ import ( "fmt" "log" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) var ( diff --git a/api/_examples/jira-cloud-with-custom-template-alert-channel/main.go b/api/_examples/jira-cloud-with-custom-template-alert-channel/main.go index 4b2e95c16..efd32d73d 100644 --- a/api/_examples/jira-cloud-with-custom-template-alert-channel/main.go +++ b/api/_examples/jira-cloud-with-custom-template-alert-channel/main.go @@ -5,7 +5,7 @@ import ( "log" "os" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func main() { diff --git a/api/_examples/microsoft-teams-alert-channel/main.go b/api/_examples/microsoft-teams-alert-channel/main.go index 833a3ec40..ba4996dd2 100644 --- a/api/_examples/microsoft-teams-alert-channel/main.go +++ b/api/_examples/microsoft-teams-alert-channel/main.go @@ -5,7 +5,7 @@ import ( "log" "os" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func main() { diff --git a/api/_examples/new-relic-alert-channel/main.go b/api/_examples/new-relic-alert-channel/main.go index a320ae1fb..ca646bdc0 100644 --- a/api/_examples/new-relic-alert-channel/main.go +++ b/api/_examples/new-relic-alert-channel/main.go @@ -5,7 +5,7 @@ import ( "log" "os" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func main() { diff --git a/api/_examples/pagerduty-alert-channel/main.go b/api/_examples/pagerduty-alert-channel/main.go index 827adb8dd..16c916bd0 100644 --- a/api/_examples/pagerduty-alert-channel/main.go +++ b/api/_examples/pagerduty-alert-channel/main.go @@ -5,7 +5,7 @@ import ( "log" "os" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func main() { diff --git a/api/_examples/pagination/main.go b/api/_examples/pagination/main.go index b03067ba4..2ce9c2d47 100644 --- a/api/_examples/pagination/main.go +++ b/api/_examples/pagination/main.go @@ -5,7 +5,7 @@ import ( "log" "os" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func main() { diff --git a/api/_examples/policy-exceptions/main.go b/api/_examples/policy-exceptions/main.go index 833984c7f..8d308a586 100644 --- a/api/_examples/policy-exceptions/main.go +++ b/api/_examples/policy-exceptions/main.go @@ -5,7 +5,7 @@ import ( "log" "os" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func main() { diff --git a/api/_examples/policy/main.go b/api/_examples/policy/main.go index 3b182e853..6479e354a 100644 --- a/api/_examples/policy/main.go +++ b/api/_examples/policy/main.go @@ -5,8 +5,8 @@ import ( "log" "os" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/lwseverity" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/lwseverity" ) func main() { diff --git a/api/_examples/qradar-alert-channel/main.go b/api/_examples/qradar-alert-channel/main.go index 6a4e5c4ee..3dec36cda 100644 --- a/api/_examples/qradar-alert-channel/main.go +++ b/api/_examples/qradar-alert-channel/main.go @@ -5,7 +5,7 @@ import ( "log" "os" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func main() { diff --git a/api/_examples/report-definitions/main.go b/api/_examples/report-definitions/main.go index e983740b7..2b4a60427 100644 --- a/api/_examples/report-definitions/main.go +++ b/api/_examples/report-definitions/main.go @@ -5,7 +5,7 @@ import ( "log" "os" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func main() { diff --git a/api/_examples/report-distributions/main.go b/api/_examples/report-distributions/main.go index df1618be2..9bb31cbac 100644 --- a/api/_examples/report-distributions/main.go +++ b/api/_examples/report-distributions/main.go @@ -5,7 +5,7 @@ import ( "log" "os" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func main() { diff --git a/api/_examples/report-rules/main.go b/api/_examples/report-rules/main.go index 545c92334..6b3a99562 100644 --- a/api/_examples/report-rules/main.go +++ b/api/_examples/report-rules/main.go @@ -5,7 +5,7 @@ import ( "log" "os" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func main() { diff --git a/api/_examples/reports/aws/main.go b/api/_examples/reports/aws/main.go index 723c71333..1b269c053 100644 --- a/api/_examples/reports/aws/main.go +++ b/api/_examples/reports/aws/main.go @@ -5,7 +5,7 @@ import ( "log" "os" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func main() { diff --git a/api/_examples/reports/azure/main.go b/api/_examples/reports/azure/main.go index c5152040b..afe17c362 100644 --- a/api/_examples/reports/azure/main.go +++ b/api/_examples/reports/azure/main.go @@ -5,7 +5,7 @@ import ( "log" "os" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func main() { diff --git a/api/_examples/reports/gcp/main.go b/api/_examples/reports/gcp/main.go index 1bafb503a..1db6a8a39 100644 --- a/api/_examples/reports/gcp/main.go +++ b/api/_examples/reports/gcp/main.go @@ -5,7 +5,7 @@ import ( "log" "os" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func main() { diff --git a/api/_examples/resource-groups/main.go b/api/_examples/resource-groups/main.go index c1bce30f6..6b28d1b8f 100644 --- a/api/_examples/resource-groups/main.go +++ b/api/_examples/resource-groups/main.go @@ -5,7 +5,7 @@ import ( "log" "os" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func main() { diff --git a/api/_examples/service-now-alert-channel/main.go b/api/_examples/service-now-alert-channel/main.go index 671fdfff6..8f5f3ba03 100644 --- a/api/_examples/service-now-alert-channel/main.go +++ b/api/_examples/service-now-alert-channel/main.go @@ -5,7 +5,7 @@ import ( "log" "os" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func main() { diff --git a/api/_examples/slack-alert-channel/main.go b/api/_examples/slack-alert-channel/main.go index 20cd68fc6..92c87dcdd 100644 --- a/api/_examples/slack-alert-channel/main.go +++ b/api/_examples/slack-alert-channel/main.go @@ -5,7 +5,7 @@ import ( "log" "os" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func main() { diff --git a/api/_examples/splunk-alert-channel/main.go b/api/_examples/splunk-alert-channel/main.go index a9e8b8b14..1d58f53ab 100644 --- a/api/_examples/splunk-alert-channel/main.go +++ b/api/_examples/splunk-alert-channel/main.go @@ -5,7 +5,7 @@ import ( "log" "os" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func main() { diff --git a/api/_examples/team-members-org/main.go b/api/_examples/team-members-org/main.go index 553f0ba1c..1a075e718 100644 --- a/api/_examples/team-members-org/main.go +++ b/api/_examples/team-members-org/main.go @@ -5,7 +5,7 @@ import ( "log" "os" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func main() { diff --git a/api/_examples/team-members/main.go b/api/_examples/team-members/main.go index e7c741bd7..2030e2e63 100644 --- a/api/_examples/team-members/main.go +++ b/api/_examples/team-members/main.go @@ -5,7 +5,7 @@ import ( "log" "os" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func main() { diff --git a/api/_examples/token-generation/main.go b/api/_examples/token-generation/main.go index 3a7a3a389..4f0c59e11 100644 --- a/api/_examples/token-generation/main.go +++ b/api/_examples/token-generation/main.go @@ -4,7 +4,7 @@ import ( "fmt" "log" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func main() { diff --git a/api/_examples/victorops-alert-channel/main.go b/api/_examples/victorops-alert-channel/main.go index 1f290d8a9..ad60c6def 100644 --- a/api/_examples/victorops-alert-channel/main.go +++ b/api/_examples/victorops-alert-channel/main.go @@ -4,7 +4,7 @@ import ( "fmt" "log" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func main() { diff --git a/api/_examples/vulnerability-exceptions/main.go b/api/_examples/vulnerability-exceptions/main.go index 94eff5afe..231046215 100644 --- a/api/_examples/vulnerability-exceptions/main.go +++ b/api/_examples/vulnerability-exceptions/main.go @@ -6,7 +6,7 @@ import ( "os" "time" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func main() { diff --git a/api/_examples/webhook-alert-channel/main.go b/api/_examples/webhook-alert-channel/main.go index 0ccab9d1a..d7f6e9805 100644 --- a/api/_examples/webhook-alert-channel/main.go +++ b/api/_examples/webhook-alert-channel/main.go @@ -5,7 +5,7 @@ import ( "log" "os" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func main() { diff --git a/api/agent_access_tokens_test.go b/api/agent_access_tokens_test.go index b0f0a0da9..27431da80 100644 --- a/api/agent_access_tokens_test.go +++ b/api/agent_access_tokens_test.go @@ -27,8 +27,8 @@ import ( "testing" "time" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/lacework" "github.com/stretchr/testify/assert" ) diff --git a/api/agent_info_test.go b/api/agent_info_test.go index 011529012..60d59618f 100644 --- a/api/agent_info_test.go +++ b/api/agent_info_test.go @@ -25,8 +25,8 @@ import ( "github.com/stretchr/testify/assert" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/lacework" ) func TestAgentInfoSearch(t *testing.T) { diff --git a/api/alert_channel_datadog_test.go b/api/alert_channel_datadog_test.go index 0936a0086..9336932fd 100644 --- a/api/alert_channel_datadog_test.go +++ b/api/alert_channel_datadog_test.go @@ -25,9 +25,9 @@ import ( "github.com/stretchr/testify/assert" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/intgguid" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/intgguid" + "github.com/lacework/go-sdk/v2/internal/lacework" ) func TestAlertChannelsService_GetDatadog(t *testing.T) { diff --git a/api/alert_channels_aws_cloudwatch_test.go b/api/alert_channels_aws_cloudwatch_test.go index 29e33f7a3..180e22e93 100644 --- a/api/alert_channels_aws_cloudwatch_test.go +++ b/api/alert_channels_aws_cloudwatch_test.go @@ -25,9 +25,9 @@ import ( "github.com/stretchr/testify/assert" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/intgguid" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/intgguid" + "github.com/lacework/go-sdk/v2/internal/lacework" ) func TestAlertChannelsService_GetCloudwatchEb(t *testing.T) { diff --git a/api/alert_channels_aws_s3_test.go b/api/alert_channels_aws_s3_test.go index d22a69317..de787e231 100644 --- a/api/alert_channels_aws_s3_test.go +++ b/api/alert_channels_aws_s3_test.go @@ -25,9 +25,9 @@ import ( "github.com/stretchr/testify/assert" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/intgguid" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/intgguid" + "github.com/lacework/go-sdk/v2/internal/lacework" ) func TestAlertChannelsGetAwsS3(t *testing.T) { diff --git a/api/alert_channels_cisco_spark_webhook_test.go b/api/alert_channels_cisco_spark_webhook_test.go index 5bbdd1b33..8bf6d3b62 100644 --- a/api/alert_channels_cisco_spark_webhook_test.go +++ b/api/alert_channels_cisco_spark_webhook_test.go @@ -25,9 +25,9 @@ import ( "github.com/stretchr/testify/assert" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/intgguid" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/intgguid" + "github.com/lacework/go-sdk/v2/internal/lacework" ) func TestAlertChannelsService_GetCiscoSparkWebhook(t *testing.T) { diff --git a/api/alert_channels_email_user_test.go b/api/alert_channels_email_user_test.go index 2100fae0a..e9e293fc4 100644 --- a/api/alert_channels_email_user_test.go +++ b/api/alert_channels_email_user_test.go @@ -25,9 +25,9 @@ import ( "github.com/stretchr/testify/assert" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/intgguid" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/intgguid" + "github.com/lacework/go-sdk/v2/internal/lacework" ) func TestAlertChannelsGetEmailUser(t *testing.T) { diff --git a/api/alert_channels_gcp_pub_sub_test.go b/api/alert_channels_gcp_pub_sub_test.go index 12880abc9..cf9a2dd12 100644 --- a/api/alert_channels_gcp_pub_sub_test.go +++ b/api/alert_channels_gcp_pub_sub_test.go @@ -25,9 +25,9 @@ import ( "github.com/stretchr/testify/assert" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/intgguid" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/intgguid" + "github.com/lacework/go-sdk/v2/internal/lacework" ) func TestAlertChannelsService_GetGcpPubSub(t *testing.T) { diff --git a/api/alert_channels_ibm_qradar_test.go b/api/alert_channels_ibm_qradar_test.go index b5ce096da..226ed3ef2 100644 --- a/api/alert_channels_ibm_qradar_test.go +++ b/api/alert_channels_ibm_qradar_test.go @@ -25,9 +25,9 @@ import ( "github.com/stretchr/testify/assert" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/intgguid" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/intgguid" + "github.com/lacework/go-sdk/v2/internal/lacework" ) func TestAlertChannelsGetIbmQRadar(t *testing.T) { diff --git a/api/alert_channels_jira_cloud_server_test.go b/api/alert_channels_jira_cloud_server_test.go index 9e4423112..1de806de5 100644 --- a/api/alert_channels_jira_cloud_server_test.go +++ b/api/alert_channels_jira_cloud_server_test.go @@ -25,9 +25,9 @@ import ( "github.com/stretchr/testify/assert" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/intgguid" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/intgguid" + "github.com/lacework/go-sdk/v2/internal/lacework" ) func TestAlertChannelsService_GetJira(t *testing.T) { diff --git a/api/alert_channels_microsoft_teams_test.go b/api/alert_channels_microsoft_teams_test.go index 1009ba74f..b8e60ede7 100644 --- a/api/alert_channels_microsoft_teams_test.go +++ b/api/alert_channels_microsoft_teams_test.go @@ -25,9 +25,9 @@ import ( "github.com/stretchr/testify/assert" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/intgguid" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/intgguid" + "github.com/lacework/go-sdk/v2/internal/lacework" ) func TestAlertChannelsGetMicrosoftTeams(t *testing.T) { diff --git a/api/alert_channels_new_relic_test.go b/api/alert_channels_new_relic_test.go index cf1ad20ce..4f4bbacfc 100644 --- a/api/alert_channels_new_relic_test.go +++ b/api/alert_channels_new_relic_test.go @@ -25,9 +25,9 @@ import ( "github.com/stretchr/testify/assert" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/intgguid" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/intgguid" + "github.com/lacework/go-sdk/v2/internal/lacework" ) func TestAlertChannelsGetNewRelic(t *testing.T) { diff --git a/api/alert_channels_pager_duty_test.go b/api/alert_channels_pager_duty_test.go index cd9f75bf2..0fd98981c 100644 --- a/api/alert_channels_pager_duty_test.go +++ b/api/alert_channels_pager_duty_test.go @@ -25,9 +25,9 @@ import ( "github.com/stretchr/testify/assert" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/intgguid" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/intgguid" + "github.com/lacework/go-sdk/v2/internal/lacework" ) func TestAlertChannelsGetPagerDuty(t *testing.T) { diff --git a/api/alert_channels_service_now_rest_test.go b/api/alert_channels_service_now_rest_test.go index 802cbe1c4..8050e41e0 100644 --- a/api/alert_channels_service_now_rest_test.go +++ b/api/alert_channels_service_now_rest_test.go @@ -25,9 +25,9 @@ import ( "github.com/stretchr/testify/assert" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/intgguid" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/intgguid" + "github.com/lacework/go-sdk/v2/internal/lacework" ) func TestAlertChannelsGetServiceNowRest(t *testing.T) { diff --git a/api/alert_channels_slack_channel_test.go b/api/alert_channels_slack_channel_test.go index 3cd8b88eb..f67141d78 100644 --- a/api/alert_channels_slack_channel_test.go +++ b/api/alert_channels_slack_channel_test.go @@ -25,9 +25,9 @@ import ( "github.com/stretchr/testify/assert" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/intgguid" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/intgguid" + "github.com/lacework/go-sdk/v2/internal/lacework" ) func TestAlertChannelsGetSlackChannel(t *testing.T) { diff --git a/api/alert_channels_splunk_test.go b/api/alert_channels_splunk_test.go index fff86805b..15e7bdb5d 100644 --- a/api/alert_channels_splunk_test.go +++ b/api/alert_channels_splunk_test.go @@ -28,9 +28,9 @@ import ( "github.com/stretchr/testify/assert" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/intgguid" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/intgguid" + "github.com/lacework/go-sdk/v2/internal/lacework" ) func TestAlertChannelsGetSplunk(t *testing.T) { diff --git a/api/alert_channels_test.go b/api/alert_channels_test.go index 2b0a47af7..fa3355230 100644 --- a/api/alert_channels_test.go +++ b/api/alert_channels_test.go @@ -26,9 +26,9 @@ import ( "github.com/stretchr/testify/assert" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/intgguid" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/intgguid" + "github.com/lacework/go-sdk/v2/internal/lacework" ) func TestAlertChannelTypes(t *testing.T) { diff --git a/api/alert_channels_victorops_test.go b/api/alert_channels_victorops_test.go index a282fed83..b4c8ceb38 100644 --- a/api/alert_channels_victorops_test.go +++ b/api/alert_channels_victorops_test.go @@ -25,9 +25,9 @@ import ( "github.com/stretchr/testify/assert" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/intgguid" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/intgguid" + "github.com/lacework/go-sdk/v2/internal/lacework" ) func TestAlertChannelsGetVictorOps(t *testing.T) { diff --git a/api/alert_channels_webhook_test.go b/api/alert_channels_webhook_test.go index c9ef614a7..bcaf54fba 100644 --- a/api/alert_channels_webhook_test.go +++ b/api/alert_channels_webhook_test.go @@ -25,9 +25,9 @@ import ( "github.com/stretchr/testify/assert" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/intgguid" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/intgguid" + "github.com/lacework/go-sdk/v2/internal/lacework" ) func TestAlertChannelsGetWebhook(t *testing.T) { diff --git a/api/alert_profiles_test.go b/api/alert_profiles_test.go index 9bece7207..f071b61a2 100644 --- a/api/alert_profiles_test.go +++ b/api/alert_profiles_test.go @@ -26,8 +26,8 @@ import ( "github.com/stretchr/testify/assert" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/lacework" ) func TestAlertProfilesGet(t *testing.T) { diff --git a/api/alert_rules_test.go b/api/alert_rules_test.go index a75d1cb1f..e72497477 100644 --- a/api/alert_rules_test.go +++ b/api/alert_rules_test.go @@ -26,9 +26,9 @@ import ( "github.com/stretchr/testify/assert" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/intgguid" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/intgguid" + "github.com/lacework/go-sdk/v2/internal/lacework" ) func TestAlertRulesGet(t *testing.T) { diff --git a/api/alerts.go b/api/alerts.go index 3181b4acd..a442baaf9 100644 --- a/api/alerts.go +++ b/api/alerts.go @@ -23,8 +23,8 @@ import ( "sort" "time" - "github.com/lacework/go-sdk/lwseverity" - "github.com/lacework/go-sdk/lwtime" + "github.com/lacework/go-sdk/v2/lwseverity" + "github.com/lacework/go-sdk/v2/lwtime" ) // AlertsService is a service that interacts with the Alerts diff --git a/api/alerts_close_test.go b/api/alerts_close_test.go index e75061bad..b34866081 100644 --- a/api/alerts_close_test.go +++ b/api/alerts_close_test.go @@ -23,8 +23,8 @@ import ( "net/http" "testing" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/lacework" "github.com/stretchr/testify/assert" ) diff --git a/api/alerts_comment_test.go b/api/alerts_comment_test.go index c75d27991..b997e2164 100644 --- a/api/alerts_comment_test.go +++ b/api/alerts_comment_test.go @@ -24,8 +24,8 @@ import ( "net/http" "testing" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/lacework" "github.com/stretchr/testify/assert" ) diff --git a/api/alerts_details_events_test.go b/api/alerts_details_events_test.go index 0a2389cce..0d3352621 100644 --- a/api/alerts_details_events_test.go +++ b/api/alerts_details_events_test.go @@ -24,8 +24,8 @@ import ( "net/http" "testing" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/lacework" "github.com/stretchr/testify/assert" ) diff --git a/api/alerts_details_integrations_test.go b/api/alerts_details_integrations_test.go index 5f8040cfe..bd475996a 100644 --- a/api/alerts_details_integrations_test.go +++ b/api/alerts_details_integrations_test.go @@ -24,8 +24,8 @@ import ( "net/http" "testing" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/lacework" "github.com/stretchr/testify/assert" ) diff --git a/api/alerts_details_investigation_test.go b/api/alerts_details_investigation_test.go index 49e73a62c..521b8decd 100644 --- a/api/alerts_details_investigation_test.go +++ b/api/alerts_details_investigation_test.go @@ -24,8 +24,8 @@ import ( "net/http" "testing" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/lacework" "github.com/stretchr/testify/assert" ) diff --git a/api/alerts_details_related_test.go b/api/alerts_details_related_test.go index 805fb145d..3bc7f36f5 100644 --- a/api/alerts_details_related_test.go +++ b/api/alerts_details_related_test.go @@ -24,8 +24,8 @@ import ( "net/http" "testing" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/lacework" "github.com/stretchr/testify/assert" ) diff --git a/api/alerts_details_test.go b/api/alerts_details_test.go index 291bd6209..13fd8bf1d 100644 --- a/api/alerts_details_test.go +++ b/api/alerts_details_test.go @@ -24,8 +24,8 @@ import ( "net/http" "testing" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/lacework" "github.com/stretchr/testify/assert" ) diff --git a/api/alerts_details_timeline_test.go b/api/alerts_details_timeline_test.go index c7d2c4c9b..6e3a14342 100644 --- a/api/alerts_details_timeline_test.go +++ b/api/alerts_details_timeline_test.go @@ -24,8 +24,8 @@ import ( "net/http" "testing" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/lacework" "github.com/stretchr/testify/assert" ) diff --git a/api/alerts_search_test.go b/api/alerts_search_test.go index c889f5df2..d754d8eb2 100644 --- a/api/alerts_search_test.go +++ b/api/alerts_search_test.go @@ -24,8 +24,8 @@ import ( "net/http" "testing" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/lacework" "github.com/stretchr/testify/assert" ) diff --git a/api/alerts_test.go b/api/alerts_test.go index 3e1bf232a..19b99090a 100644 --- a/api/alerts_test.go +++ b/api/alerts_test.go @@ -25,8 +25,8 @@ import ( "testing" "time" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/lacework" "github.com/stretchr/testify/assert" ) diff --git a/api/auth.go b/api/auth.go index 4b02cb92b..0d7501b18 100644 --- a/api/auth.go +++ b/api/auth.go @@ -24,7 +24,7 @@ import ( "go.uber.org/zap" - "github.com/lacework/go-sdk/internal/format" + "github.com/lacework/go-sdk/v2/internal/format" ) const DefaultTokenExpiryTime = 3600 diff --git a/api/auth_test.go b/api/auth_test.go index cc307f38d..e8af4692a 100644 --- a/api/auth_test.go +++ b/api/auth_test.go @@ -23,8 +23,8 @@ import ( "github.com/stretchr/testify/assert" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/lacework" ) func TestWithToken(t *testing.T) { diff --git a/api/callbacks_test.go b/api/callbacks_test.go index b34385a7d..1ae99744f 100644 --- a/api/callbacks_test.go +++ b/api/callbacks_test.go @@ -23,8 +23,8 @@ import ( "testing" "time" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/lacework" "github.com/stretchr/testify/assert" ) diff --git a/api/client.go b/api/client.go index 37d41b669..3fc5841b6 100644 --- a/api/client.go +++ b/api/client.go @@ -30,7 +30,7 @@ import ( "time" "github.com/cenkalti/backoff/v4" - "github.com/lacework/go-sdk/lwdomain" + "github.com/lacework/go-sdk/v2/lwdomain" "github.com/pkg/errors" "go.uber.org/zap" ) diff --git a/api/client_test.go b/api/client_test.go index 7012663df..316955f93 100644 --- a/api/client_test.go +++ b/api/client_test.go @@ -28,8 +28,8 @@ import ( "github.com/cenkalti/backoff/v4" "github.com/stretchr/testify/assert" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/lacework" ) func TestNewClient(t *testing.T) { diff --git a/api/cloud_accounts.go b/api/cloud_accounts.go index 4ad222120..b6cb1e344 100644 --- a/api/cloud_accounts.go +++ b/api/cloud_accounts.go @@ -24,7 +24,7 @@ import ( "github.com/pkg/errors" - "github.com/lacework/go-sdk/lwtime" + "github.com/lacework/go-sdk/v2/lwtime" ) // CloudAccountsService is the service that interacts with diff --git a/api/cloud_accounts_aws_cfg_test.go b/api/cloud_accounts_aws_cfg_test.go index cf5fa9943..00516cd73 100644 --- a/api/cloud_accounts_aws_cfg_test.go +++ b/api/cloud_accounts_aws_cfg_test.go @@ -25,9 +25,9 @@ import ( "github.com/stretchr/testify/assert" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/intgguid" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/intgguid" + "github.com/lacework/go-sdk/v2/internal/lacework" ) func TestCloudAccountsNewAwsCfgWithCustomTemplateFile(t *testing.T) { diff --git a/api/cloud_accounts_aws_ct_sqs_test.go b/api/cloud_accounts_aws_ct_sqs_test.go index 477bd46db..a8ac10f8c 100644 --- a/api/cloud_accounts_aws_ct_sqs_test.go +++ b/api/cloud_accounts_aws_ct_sqs_test.go @@ -25,9 +25,9 @@ import ( "github.com/stretchr/testify/assert" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/intgguid" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/intgguid" + "github.com/lacework/go-sdk/v2/internal/lacework" ) func TestCloudAccountsNewAwsCtSqsWithCustomTemplateFile(t *testing.T) { diff --git a/api/cloud_accounts_aws_eks_audit_test.go b/api/cloud_accounts_aws_eks_audit_test.go index c7b818915..ddc023e9e 100644 --- a/api/cloud_accounts_aws_eks_audit_test.go +++ b/api/cloud_accounts_aws_eks_audit_test.go @@ -25,9 +25,9 @@ import ( "github.com/stretchr/testify/assert" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/intgguid" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/intgguid" + "github.com/lacework/go-sdk/v2/internal/lacework" ) func TestCloudAccountsAwsEksAuditGet(t *testing.T) { diff --git a/api/cloud_accounts_aws_gov_cfg_test.go b/api/cloud_accounts_aws_gov_cfg_test.go index fc1351225..95489a6c7 100644 --- a/api/cloud_accounts_aws_gov_cfg_test.go +++ b/api/cloud_accounts_aws_gov_cfg_test.go @@ -23,9 +23,9 @@ import ( "net/http" "testing" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/intgguid" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/intgguid" + "github.com/lacework/go-sdk/v2/internal/lacework" "github.com/stretchr/testify/assert" ) diff --git a/api/cloud_accounts_aws_gov_ct_test.go b/api/cloud_accounts_aws_gov_ct_test.go index 4f36b2a9f..7bfe78020 100644 --- a/api/cloud_accounts_aws_gov_ct_test.go +++ b/api/cloud_accounts_aws_gov_ct_test.go @@ -23,9 +23,9 @@ import ( "net/http" "testing" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/intgguid" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/intgguid" + "github.com/lacework/go-sdk/v2/internal/lacework" "github.com/stretchr/testify/assert" ) diff --git a/api/cloud_accounts_aws_sidekick_org_test.go b/api/cloud_accounts_aws_sidekick_org_test.go index 86aa07b6b..6b9154916 100644 --- a/api/cloud_accounts_aws_sidekick_org_test.go +++ b/api/cloud_accounts_aws_sidekick_org_test.go @@ -23,9 +23,9 @@ import ( "net/http" "testing" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/intgguid" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/intgguid" + "github.com/lacework/go-sdk/v2/internal/lacework" "github.com/stretchr/testify/assert" ) diff --git a/api/cloud_accounts_aws_sidekick_test.go b/api/cloud_accounts_aws_sidekick_test.go index cf2334868..4945297c0 100644 --- a/api/cloud_accounts_aws_sidekick_test.go +++ b/api/cloud_accounts_aws_sidekick_test.go @@ -23,9 +23,9 @@ import ( "net/http" "testing" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/intgguid" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/intgguid" + "github.com/lacework/go-sdk/v2/internal/lacework" "github.com/stretchr/testify/assert" ) diff --git a/api/cloud_accounts_az_al_test.go b/api/cloud_accounts_az_al_test.go index fb1eb06a0..fe0cef8f0 100644 --- a/api/cloud_accounts_az_al_test.go +++ b/api/cloud_accounts_az_al_test.go @@ -23,9 +23,9 @@ import ( "net/http" "testing" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/intgguid" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/intgguid" + "github.com/lacework/go-sdk/v2/internal/lacework" "github.com/stretchr/testify/assert" ) diff --git a/api/cloud_accounts_az_cfg_test.go b/api/cloud_accounts_az_cfg_test.go index 5d46c4452..0f11fe413 100644 --- a/api/cloud_accounts_az_cfg_test.go +++ b/api/cloud_accounts_az_cfg_test.go @@ -23,9 +23,9 @@ import ( "net/http" "testing" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/intgguid" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/intgguid" + "github.com/lacework/go-sdk/v2/internal/lacework" "github.com/stretchr/testify/assert" ) diff --git a/api/cloud_accounts_azure_ad_al_test.go b/api/cloud_accounts_azure_ad_al_test.go index c10fb63b1..6e37f17c7 100644 --- a/api/cloud_accounts_azure_ad_al_test.go +++ b/api/cloud_accounts_azure_ad_al_test.go @@ -23,9 +23,9 @@ import ( "net/http" "testing" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/intgguid" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/intgguid" + "github.com/lacework/go-sdk/v2/internal/lacework" "github.com/stretchr/testify/assert" ) diff --git a/api/cloud_accounts_azure_sidekick_test.go b/api/cloud_accounts_azure_sidekick_test.go index 6bb57156d..6a74e0667 100644 --- a/api/cloud_accounts_azure_sidekick_test.go +++ b/api/cloud_accounts_azure_sidekick_test.go @@ -23,9 +23,9 @@ import ( "net/http" "testing" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/intgguid" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/intgguid" + "github.com/lacework/go-sdk/v2/internal/lacework" "github.com/stretchr/testify/assert" ) diff --git a/api/cloud_accounts_gcp_al_pubsub_test.go b/api/cloud_accounts_gcp_al_pubsub_test.go index fcb68f68d..766a69b8d 100644 --- a/api/cloud_accounts_gcp_al_pubsub_test.go +++ b/api/cloud_accounts_gcp_al_pubsub_test.go @@ -23,9 +23,9 @@ import ( "net/http" "testing" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/intgguid" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/intgguid" + "github.com/lacework/go-sdk/v2/internal/lacework" "github.com/stretchr/testify/assert" ) diff --git a/api/cloud_accounts_gcp_at_test.go b/api/cloud_accounts_gcp_at_test.go index 2a5ed1ba1..371d32528 100644 --- a/api/cloud_accounts_gcp_at_test.go +++ b/api/cloud_accounts_gcp_at_test.go @@ -23,9 +23,9 @@ import ( "net/http" "testing" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/intgguid" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/intgguid" + "github.com/lacework/go-sdk/v2/internal/lacework" "github.com/stretchr/testify/assert" ) diff --git a/api/cloud_accounts_gcp_cfg_test.go b/api/cloud_accounts_gcp_cfg_test.go index 8e2452433..a8a4df428 100644 --- a/api/cloud_accounts_gcp_cfg_test.go +++ b/api/cloud_accounts_gcp_cfg_test.go @@ -23,9 +23,9 @@ import ( "net/http" "testing" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/intgguid" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/intgguid" + "github.com/lacework/go-sdk/v2/internal/lacework" "github.com/stretchr/testify/assert" ) diff --git a/api/cloud_accounts_gcp_gke_audit_test.go b/api/cloud_accounts_gcp_gke_audit_test.go index d6ae13023..061d317e6 100644 --- a/api/cloud_accounts_gcp_gke_audit_test.go +++ b/api/cloud_accounts_gcp_gke_audit_test.go @@ -25,9 +25,9 @@ import ( "github.com/stretchr/testify/assert" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/intgguid" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/intgguid" + "github.com/lacework/go-sdk/v2/internal/lacework" ) func TestCloudAccountsGcpGkeAuditProjectLevelGet(t *testing.T) { diff --git a/api/cloud_accounts_gcp_sidekick_test.go b/api/cloud_accounts_gcp_sidekick_test.go index 71ab63163..69b1ff06a 100644 --- a/api/cloud_accounts_gcp_sidekick_test.go +++ b/api/cloud_accounts_gcp_sidekick_test.go @@ -23,9 +23,9 @@ import ( "net/http" "testing" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/intgguid" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/intgguid" + "github.com/lacework/go-sdk/v2/internal/lacework" "github.com/stretchr/testify/assert" ) diff --git a/api/cloud_accounts_oci_cfg_test.go b/api/cloud_accounts_oci_cfg_test.go index db97f3323..a898bf0ca 100644 --- a/api/cloud_accounts_oci_cfg_test.go +++ b/api/cloud_accounts_oci_cfg_test.go @@ -23,9 +23,9 @@ import ( "net/http" "testing" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/intgguid" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/intgguid" + "github.com/lacework/go-sdk/v2/internal/lacework" "github.com/stretchr/testify/assert" ) diff --git a/api/cloud_accounts_test.go b/api/cloud_accounts_test.go index e11642820..ff31fecd1 100644 --- a/api/cloud_accounts_test.go +++ b/api/cloud_accounts_test.go @@ -26,9 +26,9 @@ import ( "github.com/stretchr/testify/assert" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/intgguid" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/intgguid" + "github.com/lacework/go-sdk/v2/internal/lacework" ) func TestCloudAccountTypeAwsCtsSqs(t *testing.T) { diff --git a/api/component_data_test.go b/api/component_data_test.go index 8074e6b8d..9718a88f7 100644 --- a/api/component_data_test.go +++ b/api/component_data_test.go @@ -6,8 +6,8 @@ import ( "net/http" "testing" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/lacework" "github.com/stretchr/testify/assert" ) diff --git a/api/components_test.go b/api/components_test.go index 6c67638b7..6c181bc93 100644 --- a/api/components_test.go +++ b/api/components_test.go @@ -25,8 +25,8 @@ import ( "github.com/stretchr/testify/assert" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/lacework" ) func TestListComponents(t *testing.T) { diff --git a/api/container_registries_aws_ecr_access_key_test.go b/api/container_registries_aws_ecr_access_key_test.go index 52441748b..470307d46 100644 --- a/api/container_registries_aws_ecr_access_key_test.go +++ b/api/container_registries_aws_ecr_access_key_test.go @@ -23,9 +23,9 @@ import ( "net/http" "testing" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/intgguid" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/intgguid" + "github.com/lacework/go-sdk/v2/internal/lacework" "github.com/stretchr/testify/assert" ) diff --git a/api/container_registries_aws_ecr_iam_role_test.go b/api/container_registries_aws_ecr_iam_role_test.go index 4d48b5543..b319050a8 100644 --- a/api/container_registries_aws_ecr_iam_role_test.go +++ b/api/container_registries_aws_ecr_iam_role_test.go @@ -23,9 +23,9 @@ import ( "net/http" "testing" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/intgguid" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/intgguid" + "github.com/lacework/go-sdk/v2/internal/lacework" "github.com/stretchr/testify/assert" ) diff --git a/api/container_registries_dockerhub_test.go b/api/container_registries_dockerhub_test.go index 31390e284..a48648e36 100644 --- a/api/container_registries_dockerhub_test.go +++ b/api/container_registries_dockerhub_test.go @@ -26,9 +26,9 @@ import ( "github.com/stretchr/testify/assert" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/intgguid" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/intgguid" + "github.com/lacework/go-sdk/v2/internal/lacework" ) func TestContainerRegistriesNewDockerhub(t *testing.T) { diff --git a/api/container_registries_gcp_gar_test.go b/api/container_registries_gcp_gar_test.go index 9c8bb86ef..eb98e1a1a 100644 --- a/api/container_registries_gcp_gar_test.go +++ b/api/container_registries_gcp_gar_test.go @@ -25,9 +25,9 @@ import ( "github.com/stretchr/testify/assert" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/intgguid" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/intgguid" + "github.com/lacework/go-sdk/v2/internal/lacework" ) func TestContainerRegistriesNewGcpGar(t *testing.T) { diff --git a/api/container_registries_ghcr_test.go b/api/container_registries_ghcr_test.go index 1fc1d3a6a..dcbe3cd0b 100644 --- a/api/container_registries_ghcr_test.go +++ b/api/container_registries_ghcr_test.go @@ -26,9 +26,9 @@ import ( "github.com/stretchr/testify/assert" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/intgguid" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/intgguid" + "github.com/lacework/go-sdk/v2/internal/lacework" ) func TestContainerRegistriesNewGhcr(t *testing.T) { diff --git a/api/container_registries_test.go b/api/container_registries_test.go index b0a1b1e0b..caae8197b 100644 --- a/api/container_registries_test.go +++ b/api/container_registries_test.go @@ -26,9 +26,9 @@ import ( "github.com/stretchr/testify/assert" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/intgguid" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/intgguid" + "github.com/lacework/go-sdk/v2/internal/lacework" ) func TestNewContainerRegistry(t *testing.T) { diff --git a/api/datasources_test.go b/api/datasources_test.go index cc252a19d..19816dda3 100644 --- a/api/datasources_test.go +++ b/api/datasources_test.go @@ -24,8 +24,8 @@ import ( "net/http" "testing" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/lacework" "github.com/stretchr/testify/assert" ) diff --git a/api/entities_containers.go b/api/entities_containers.go index 78904e16b..48846daf9 100644 --- a/api/entities_containers.go +++ b/api/entities_containers.go @@ -21,7 +21,7 @@ package api import ( "time" - "github.com/lacework/go-sdk/internal/array" + "github.com/lacework/go-sdk/v2/internal/array" ) // ListContainers returns a list of Active Containers from the last 7 days diff --git a/api/entities_images_test.go b/api/entities_images_test.go index 4e82668ce..de94350a5 100644 --- a/api/entities_images_test.go +++ b/api/entities_images_test.go @@ -26,8 +26,8 @@ import ( "github.com/stretchr/testify/assert" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/lacework" ) func TestEntities_Images_Search(t *testing.T) { diff --git a/api/entities_machine_details_test.go b/api/entities_machine_details_test.go index e3c2bbed3..ee9ce426d 100644 --- a/api/entities_machine_details_test.go +++ b/api/entities_machine_details_test.go @@ -26,8 +26,8 @@ import ( "github.com/stretchr/testify/assert" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/lacework" ) func TestEntities_MachineDetails_Search(t *testing.T) { diff --git a/api/entities_test.go b/api/entities_test.go index feefd4cad..1902f2500 100644 --- a/api/entities_test.go +++ b/api/entities_test.go @@ -25,8 +25,8 @@ import ( "github.com/stretchr/testify/assert" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/lacework" ) func TestEntities_Search(t *testing.T) { diff --git a/api/entities_users_test.go b/api/entities_users_test.go index 37014dd27..3ab6feadf 100644 --- a/api/entities_users_test.go +++ b/api/entities_users_test.go @@ -25,8 +25,8 @@ import ( "github.com/stretchr/testify/assert" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/lacework" ) func TestEntities_Users_List(t *testing.T) { diff --git a/api/errors_test.go b/api/errors_test.go index 79086a8df..28887ce0f 100644 --- a/api/errors_test.go +++ b/api/errors_test.go @@ -24,8 +24,8 @@ import ( "github.com/stretchr/testify/assert" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/lacework" ) func TestErrorWithV2Message(t *testing.T) { diff --git a/api/feature_flags_test.go b/api/feature_flags_test.go index e88f67a99..143252e51 100644 --- a/api/feature_flags_test.go +++ b/api/feature_flags_test.go @@ -5,8 +5,8 @@ import ( "net/http" "testing" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/lacework" "github.com/stretchr/testify/assert" ) diff --git a/api/http_test.go b/api/http_test.go index 05acb2716..b05387dfd 100644 --- a/api/http_test.go +++ b/api/http_test.go @@ -27,8 +27,8 @@ import ( "github.com/stretchr/testify/assert" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/lacework" ) func TestNewRequest(t *testing.T) { diff --git a/api/inventory_aws_test.go b/api/inventory_aws_test.go index 215b20359..30335fa58 100644 --- a/api/inventory_aws_test.go +++ b/api/inventory_aws_test.go @@ -25,8 +25,8 @@ import ( "github.com/stretchr/testify/assert" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/lacework" ) func TestInventoryAwsSearch(t *testing.T) { diff --git a/api/inventory_test.go b/api/inventory_test.go index 353ece366..7a0a882db 100644 --- a/api/inventory_test.go +++ b/api/inventory_test.go @@ -25,8 +25,8 @@ import ( "github.com/stretchr/testify/assert" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/lacework" ) func TestInventorySearch(t *testing.T) { diff --git a/api/logging.go b/api/logging.go index 56dfe2d1c..79dc5f5e8 100644 --- a/api/logging.go +++ b/api/logging.go @@ -27,7 +27,7 @@ import ( "github.com/pkg/errors" "go.uber.org/zap" - "github.com/lacework/go-sdk/lwlogger" + "github.com/lacework/go-sdk/v2/lwlogger" ) // WithLogLevel sets the log level of the client, available: info, debug, or error diff --git a/api/logging_test.go b/api/logging_test.go index 449b90125..5ca05c31e 100644 --- a/api/logging_test.go +++ b/api/logging_test.go @@ -26,9 +26,9 @@ import ( "github.com/stretchr/testify/assert" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/capturer" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/capturer" + "github.com/lacework/go-sdk/v2/internal/lacework" ) func TestNewClientWithLogLevel(t *testing.T) { diff --git a/api/lql_delete_test.go b/api/lql_delete_test.go index a8aeb3c5b..8c702a88c 100644 --- a/api/lql_delete_test.go +++ b/api/lql_delete_test.go @@ -24,8 +24,8 @@ import ( "net/http" "testing" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/lacework" "github.com/stretchr/testify/assert" ) diff --git a/api/lql_execute.go b/api/lql_execute.go index 178bdb980..f1807de54 100644 --- a/api/lql_execute.go +++ b/api/lql_execute.go @@ -25,7 +25,7 @@ import ( "net/url" "time" - "github.com/lacework/go-sdk/lwtime" + "github.com/lacework/go-sdk/v2/lwtime" "github.com/pkg/errors" ) diff --git a/api/lql_execute_test.go b/api/lql_execute_test.go index 963961242..b70c66872 100644 --- a/api/lql_execute_test.go +++ b/api/lql_execute_test.go @@ -25,8 +25,8 @@ import ( "strconv" "testing" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/lacework" "github.com/stretchr/testify/assert" ) diff --git a/api/lql_test.go b/api/lql_test.go index aff7b9f8c..c70bea5b9 100644 --- a/api/lql_test.go +++ b/api/lql_test.go @@ -27,8 +27,8 @@ import ( "github.com/pkg/errors" "github.com/stretchr/testify/assert" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/lacework" ) var ( diff --git a/api/lql_update_test.go b/api/lql_update_test.go index 79d2eac15..36e529a33 100644 --- a/api/lql_update_test.go +++ b/api/lql_update_test.go @@ -24,8 +24,8 @@ import ( "net/http" "testing" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/lacework" "github.com/stretchr/testify/assert" ) diff --git a/api/lql_validate_test.go b/api/lql_validate_test.go index f9377118a..415b69786 100644 --- a/api/lql_validate_test.go +++ b/api/lql_validate_test.go @@ -26,8 +26,8 @@ import ( "github.com/stretchr/testify/assert" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/lacework" ) var ( diff --git a/api/metrics_test.go b/api/metrics_test.go index 28df08099..7f07d6001 100644 --- a/api/metrics_test.go +++ b/api/metrics_test.go @@ -4,8 +4,8 @@ import ( "os" "testing" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/lacework" "github.com/stretchr/testify/assert" ) diff --git a/api/organization_info.go b/api/organization_info.go index c15f77521..8c30107fc 100644 --- a/api/organization_info.go +++ b/api/organization_info.go @@ -18,7 +18,7 @@ package api -import "github.com/lacework/go-sdk/lwdomain" +import "github.com/lacework/go-sdk/v2/lwdomain" // OrganizationInfoService is the service that interacts with // the OrganizationInfo schema from the Lacework APIv2 Server diff --git a/api/organization_info_test.go b/api/organization_info_test.go index e41caf415..c27e51598 100644 --- a/api/organization_info_test.go +++ b/api/organization_info_test.go @@ -23,8 +23,8 @@ import ( "net/http" "testing" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/lacework" "github.com/stretchr/testify/assert" ) diff --git a/api/policy.go b/api/policy.go index e5a832332..0d9e58290 100644 --- a/api/policy.go +++ b/api/policy.go @@ -25,7 +25,7 @@ import ( "reflect" "time" - "github.com/lacework/go-sdk/internal/array" + "github.com/lacework/go-sdk/v2/internal/array" "github.com/pkg/errors" "gopkg.in/yaml.v3" ) diff --git a/api/policy_exceptions_test.go b/api/policy_exceptions_test.go index 068c02d33..e5ecb87f9 100644 --- a/api/policy_exceptions_test.go +++ b/api/policy_exceptions_test.go @@ -26,9 +26,9 @@ import ( "github.com/stretchr/testify/assert" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/intgguid" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/intgguid" + "github.com/lacework/go-sdk/v2/internal/lacework" ) func TestPolicyExceptionsGet(t *testing.T) { diff --git a/api/policy_parse_test.go b/api/policy_parse_test.go index cbb51b741..a50dcb30d 100644 --- a/api/policy_parse_test.go +++ b/api/policy_parse_test.go @@ -25,7 +25,7 @@ import ( "github.com/pkg/errors" "github.com/stretchr/testify/assert" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) var ( diff --git a/api/policy_test.go b/api/policy_test.go index bdc46c773..5e81c251f 100644 --- a/api/policy_test.go +++ b/api/policy_test.go @@ -25,11 +25,11 @@ import ( "testing" "github.com/aws/smithy-go/ptr" - "github.com/lacework/go-sdk/lwseverity" + "github.com/lacework/go-sdk/v2/lwseverity" "github.com/stretchr/testify/assert" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/lacework" ) var ( diff --git a/api/report_definitions_test.go b/api/report_definitions_test.go index 623b0a7f3..ee8d3065c 100644 --- a/api/report_definitions_test.go +++ b/api/report_definitions_test.go @@ -26,9 +26,9 @@ import ( "github.com/stretchr/testify/assert" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/intgguid" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/intgguid" + "github.com/lacework/go-sdk/v2/internal/lacework" ) func TestReportDefinitionsGet(t *testing.T) { diff --git a/api/report_distributions_test.go b/api/report_distributions_test.go index afe379080..035ddfe30 100644 --- a/api/report_distributions_test.go +++ b/api/report_distributions_test.go @@ -26,9 +26,9 @@ import ( "github.com/stretchr/testify/assert" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/intgguid" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/intgguid" + "github.com/lacework/go-sdk/v2/internal/lacework" ) func TestReportDistributionsGet(t *testing.T) { diff --git a/api/report_rule_notification_types_test.go b/api/report_rule_notification_types_test.go index 45404244f..0c32c0bc7 100644 --- a/api/report_rule_notification_types_test.go +++ b/api/report_rule_notification_types_test.go @@ -23,7 +23,7 @@ import ( "github.com/stretchr/testify/assert" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func TestNewNotificationType(t *testing.T) { diff --git a/api/report_rules_test.go b/api/report_rules_test.go index d95fe29f1..f6e3775fa 100644 --- a/api/report_rules_test.go +++ b/api/report_rules_test.go @@ -26,9 +26,9 @@ import ( "github.com/stretchr/testify/assert" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/intgguid" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/intgguid" + "github.com/lacework/go-sdk/v2/internal/lacework" ) func TestReportRulesGet(t *testing.T) { diff --git a/api/reports_test.go b/api/reports_test.go index 1643ab5fa..00dcf2424 100644 --- a/api/reports_test.go +++ b/api/reports_test.go @@ -5,8 +5,8 @@ import ( "net/http" "testing" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/lacework" "github.com/stretchr/testify/assert" ) diff --git a/api/resource_groups_test.go b/api/resource_groups_test.go index 8b38dbee5..a87a23c6d 100644 --- a/api/resource_groups_test.go +++ b/api/resource_groups_test.go @@ -24,12 +24,12 @@ import ( "strings" "testing" - "github.com/lacework/go-sdk/internal/intgguid" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/internal/intgguid" + "github.com/lacework/go-sdk/v2/internal/lacework" "github.com/stretchr/testify/assert" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func TestResourceGroupTypes(t *testing.T) { diff --git a/api/team_members_test.go b/api/team_members_test.go index cd092dc61..cc5da1ce1 100644 --- a/api/team_members_test.go +++ b/api/team_members_test.go @@ -27,9 +27,9 @@ import ( "github.com/stretchr/testify/assert" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/intgguid" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/intgguid" + "github.com/lacework/go-sdk/v2/internal/lacework" ) func TestTeamMembers_List(t *testing.T) { diff --git a/api/user_profile.go b/api/user_profile.go index cba37c3bf..3853d94b0 100644 --- a/api/user_profile.go +++ b/api/user_profile.go @@ -21,7 +21,7 @@ package api import ( "strings" - "github.com/lacework/go-sdk/lwdomain" + "github.com/lacework/go-sdk/v2/lwdomain" ) // UserProfileService is the service that interacts with the UserProfile diff --git a/api/user_profile_test.go b/api/user_profile_test.go index d548f00f9..5dafdab03 100644 --- a/api/user_profile_test.go +++ b/api/user_profile_test.go @@ -25,8 +25,8 @@ import ( "github.com/stretchr/testify/assert" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/lacework" ) func TestV2UserProfile(t *testing.T) { diff --git a/api/v2_recommendations_aws.go b/api/v2_recommendations_aws.go index 6542e84a6..a55b30573 100644 --- a/api/v2_recommendations_aws.go +++ b/api/v2_recommendations_aws.go @@ -22,7 +22,7 @@ import ( "encoding/json" "errors" - "github.com/lacework/go-sdk/internal/databox" + "github.com/lacework/go-sdk/v2/internal/databox" ) // AwsRecommendationsV2 is a service that interacts with the V2 Recommendations diff --git a/api/v2_recommendations_aws_test.go b/api/v2_recommendations_aws_test.go index 4009d14b0..4e43f03ed 100644 --- a/api/v2_recommendations_aws_test.go +++ b/api/v2_recommendations_aws_test.go @@ -23,8 +23,8 @@ import ( "net/http" "testing" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/lacework" "github.com/stretchr/testify/assert" ) diff --git a/api/v2_recommendations_azure.go b/api/v2_recommendations_azure.go index c08a79eae..a25634675 100644 --- a/api/v2_recommendations_azure.go +++ b/api/v2_recommendations_azure.go @@ -23,7 +23,7 @@ import ( "errors" "fmt" - "github.com/lacework/go-sdk/internal/databox" + "github.com/lacework/go-sdk/v2/internal/databox" ) // AzureRecommendationsV2 is a service that interacts with the V2 Recommendations diff --git a/api/v2_recommendations_azure_test.go b/api/v2_recommendations_azure_test.go index 8ee3bc561..b9c5d6055 100644 --- a/api/v2_recommendations_azure_test.go +++ b/api/v2_recommendations_azure_test.go @@ -23,8 +23,8 @@ import ( "net/http" "testing" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/lacework" "github.com/stretchr/testify/assert" ) diff --git a/api/v2_recommendations_gcp.go b/api/v2_recommendations_gcp.go index 495ce9b7f..8e3b3f6f1 100644 --- a/api/v2_recommendations_gcp.go +++ b/api/v2_recommendations_gcp.go @@ -23,7 +23,7 @@ import ( "errors" "fmt" - "github.com/lacework/go-sdk/internal/databox" + "github.com/lacework/go-sdk/v2/internal/databox" ) // GcpRecommendationsV2 is a service that interacts with the V2 Recommendations diff --git a/api/v2_recommendations_gcp_test.go b/api/v2_recommendations_gcp_test.go index 7c6833486..217bb678c 100644 --- a/api/v2_recommendations_gcp_test.go +++ b/api/v2_recommendations_gcp_test.go @@ -23,8 +23,8 @@ import ( "net/http" "testing" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/lacework" "github.com/stretchr/testify/assert" ) diff --git a/api/v2_recommendations_test.go b/api/v2_recommendations_test.go index fd2906ab5..17bb4ac73 100644 --- a/api/v2_recommendations_test.go +++ b/api/v2_recommendations_test.go @@ -23,11 +23,11 @@ import ( "net/http" "testing" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/internal/lacework" "github.com/stretchr/testify/assert" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func TestRecommendationsAwsList(t *testing.T) { diff --git a/api/v2_search_filters_test.go b/api/v2_search_filters_test.go index f808ba582..dd5600c0c 100644 --- a/api/v2_search_filters_test.go +++ b/api/v2_search_filters_test.go @@ -6,7 +6,7 @@ import ( "testing" "time" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" "github.com/stretchr/testify/assert" ) diff --git a/api/v2_suppressions_test.go b/api/v2_suppressions_test.go index 1d834b67c..c4a17c7c5 100644 --- a/api/v2_suppressions_test.go +++ b/api/v2_suppressions_test.go @@ -24,11 +24,11 @@ import ( "sort" "testing" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/internal/lacework" "github.com/stretchr/testify/assert" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func TestSuppressionsAwsList(t *testing.T) { diff --git a/api/v2_test.go b/api/v2_test.go index a206a9645..7b64bfe4d 100644 --- a/api/v2_test.go +++ b/api/v2_test.go @@ -25,8 +25,8 @@ import ( "github.com/stretchr/testify/assert" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/lacework" ) func TestPagination(t *testing.T) { diff --git a/api/v2_vulnerabilities.go b/api/v2_vulnerabilities.go index 0c9085b8c..300755163 100644 --- a/api/v2_vulnerabilities.go +++ b/api/v2_vulnerabilities.go @@ -25,8 +25,8 @@ import ( "strings" "time" - "github.com/lacework/go-sdk/internal/array" - "github.com/lacework/go-sdk/lwseverity" + "github.com/lacework/go-sdk/v2/internal/array" + "github.com/lacework/go-sdk/v2/lwseverity" ) // v2VulnerabilitiesService is a service that interacts with the Vulnerabilities diff --git a/api/v2_vulnerabilities_test.go b/api/v2_vulnerabilities_test.go index 6700c5085..f65820cad 100644 --- a/api/v2_vulnerabilities_test.go +++ b/api/v2_vulnerabilities_test.go @@ -26,8 +26,8 @@ import ( "github.com/stretchr/testify/assert" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/lacework" ) func TestV2Vulnerabilities_Containers_SearchAllPages_EmptyData(t *testing.T) { diff --git a/api/version_test.go b/api/version_test.go index abe91af8d..f39db3db9 100644 --- a/api/version_test.go +++ b/api/version_test.go @@ -25,7 +25,7 @@ import ( "github.com/stretchr/testify/assert" - subject "github.com/lacework/go-sdk/api" + subject "github.com/lacework/go-sdk/v2/api" ) func TestVersionMatchVERSIONfile(t *testing.T) { diff --git a/api/vulnerability_exceptions_test.go b/api/vulnerability_exceptions_test.go index 582cd0c59..fddddbb97 100644 --- a/api/vulnerability_exceptions_test.go +++ b/api/vulnerability_exceptions_test.go @@ -29,9 +29,9 @@ import ( "github.com/aws/smithy-go/ptr" "github.com/stretchr/testify/assert" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/intgguid" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/intgguid" + "github.com/lacework/go-sdk/v2/internal/lacework" ) func TestNewVulnerabilityException(t *testing.T) { diff --git a/cli/cdk/client/go/client.go b/cli/cdk/client/go/client.go index 1cf57c744..2b5e2cec5 100644 --- a/cli/cdk/client/go/client.go +++ b/cli/cdk/client/go/client.go @@ -6,8 +6,8 @@ import ( "os" "time" - cdk "github.com/lacework/go-sdk/cli/cdk/go/proto/v1" - "github.com/lacework/go-sdk/lwlogger" + cdk "github.com/lacework/go-sdk/v2/cli/cdk/go/proto/v1" + "github.com/lacework/go-sdk/v2/lwlogger" "github.com/pkg/errors" "go.uber.org/zap" "google.golang.org/grpc" diff --git a/cli/cmd/access_token.go b/cli/cmd/access_token.go index c1e77b673..b1077b395 100644 --- a/cli/cmd/access_token.go +++ b/cli/cmd/access_token.go @@ -24,7 +24,7 @@ import ( "github.com/pkg/errors" "github.com/spf13/cobra" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) var ( diff --git a/cli/cmd/agent.go b/cli/cmd/agent.go index 5fa523475..0bc4367ae 100644 --- a/cli/cmd/agent.go +++ b/cli/cmd/agent.go @@ -25,7 +25,7 @@ import ( "github.com/pkg/errors" "github.com/spf13/cobra" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) var ( diff --git a/cli/cmd/agent_aws-install_ec2ssm.go b/cli/cmd/agent_aws-install_ec2ssm.go index 3d1804675..5b526d68a 100644 --- a/cli/cmd/agent_aws-install_ec2ssm.go +++ b/cli/cmd/agent_aws-install_ec2ssm.go @@ -31,7 +31,7 @@ import ( "github.com/aws/aws-sdk-go-v2/service/ssm" ssmtypes "github.com/aws/aws-sdk-go-v2/service/ssm/types" "github.com/gammazero/workerpool" - "github.com/lacework/go-sdk/lwrunner" + "github.com/lacework/go-sdk/v2/lwrunner" "github.com/pkg/errors" "github.com/spf13/cobra" ) diff --git a/cli/cmd/agent_install.go b/cli/cmd/agent_install.go index 99ed24955..78c0b12da 100644 --- a/cli/cmd/agent_install.go +++ b/cli/cmd/agent_install.go @@ -31,7 +31,7 @@ import ( "github.com/spf13/cobra" "golang.org/x/crypto/ssh" - "github.com/lacework/go-sdk/lwrunner" + "github.com/lacework/go-sdk/v2/lwrunner" ) // Official download url for installing Lacework agents diff --git a/cli/cmd/agent_list.go b/cli/cmd/agent_list.go index 218301267..fbea41f29 100644 --- a/cli/cmd/agent_list.go +++ b/cli/cmd/agent_list.go @@ -27,7 +27,7 @@ import ( "github.com/pkg/errors" "github.com/spf13/cobra" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) var ( diff --git a/cli/cmd/alert_channel.go b/cli/cmd/alert_channel.go index 48f6f91a9..ec4a33193 100644 --- a/cli/cmd/alert_channel.go +++ b/cli/cmd/alert_channel.go @@ -4,7 +4,7 @@ import ( "time" "github.com/AlecAivazis/survey/v2" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" "github.com/pkg/errors" "github.com/spf13/cobra" ) diff --git a/cli/cmd/alert_close.go b/cli/cmd/alert_close.go index 86affdc36..12c1be4e3 100644 --- a/cli/cmd/alert_close.go +++ b/cli/cmd/alert_close.go @@ -26,7 +26,7 @@ import ( "github.com/pkg/errors" "github.com/spf13/cobra" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) const ( diff --git a/cli/cmd/alert_list.go b/cli/cmd/alert_list.go index ac93fc93a..5e8c5c080 100644 --- a/cli/cmd/alert_list.go +++ b/cli/cmd/alert_list.go @@ -24,10 +24,10 @@ import ( "strings" "time" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/array" - "github.com/lacework/go-sdk/lwseverity" - "github.com/lacework/go-sdk/lwtime" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/array" + "github.com/lacework/go-sdk/v2/lwseverity" + "github.com/lacework/go-sdk/v2/lwtime" "github.com/olekukonko/tablewriter" "github.com/pkg/errors" "github.com/spf13/cobra" diff --git a/cli/cmd/alert_list_fixable.go b/cli/cmd/alert_list_fixable.go index 3b7787866..aab1d4a04 100644 --- a/cli/cmd/alert_list_fixable.go +++ b/cli/cmd/alert_list_fixable.go @@ -6,7 +6,7 @@ import ( "regexp" "strings" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" "github.com/pkg/errors" ) diff --git a/cli/cmd/alert_list_fixable_internal_test.go b/cli/cmd/alert_list_fixable_internal_test.go index 815519bf1..6f94c384b 100644 --- a/cli/cmd/alert_list_fixable_internal_test.go +++ b/cli/cmd/alert_list_fixable_internal_test.go @@ -3,7 +3,7 @@ package cmd import ( "testing" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" "github.com/stretchr/testify/assert" ) diff --git a/cli/cmd/alert_profiles.go b/cli/cmd/alert_profiles.go index 5e1b7472f..6646ec1d8 100644 --- a/cli/cmd/alert_profiles.go +++ b/cli/cmd/alert_profiles.go @@ -29,7 +29,7 @@ import ( "github.com/spf13/cobra" "gopkg.in/yaml.v3" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) var ( diff --git a/cli/cmd/alert_profiles_test.go b/cli/cmd/alert_profiles_test.go index 53fea17ed..46ee792ad 100644 --- a/cli/cmd/alert_profiles_test.go +++ b/cli/cmd/alert_profiles_test.go @@ -22,7 +22,7 @@ import ( "github.com/stretchr/testify/assert" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func TestBuildAlertProfilesTable(t *testing.T) { diff --git a/cli/cmd/alert_rules.go b/cli/cmd/alert_rules.go index 85bf30338..f4f56b14e 100644 --- a/cli/cmd/alert_rules.go +++ b/cli/cmd/alert_rules.go @@ -29,7 +29,7 @@ import ( "github.com/pkg/errors" "github.com/spf13/cobra" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) var ( diff --git a/cli/cmd/alert_show.go b/cli/cmd/alert_show.go index 8d780fb01..935dfdb52 100644 --- a/cli/cmd/alert_show.go +++ b/cli/cmd/alert_show.go @@ -22,7 +22,7 @@ import ( "fmt" "strconv" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" "github.com/pkg/errors" "github.com/spf13/cobra" ) diff --git a/cli/cmd/alert_show_details.go b/cli/cmd/alert_show_details.go index 2e8b8f00f..a1e8f250f 100644 --- a/cli/cmd/alert_show_details.go +++ b/cli/cmd/alert_show_details.go @@ -3,7 +3,7 @@ package cmd import ( "fmt" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" "github.com/olekukonko/tablewriter" "github.com/pkg/errors" ) diff --git a/cli/cmd/alert_show_integrations.go b/cli/cmd/alert_show_integrations.go index a216f2547..713d71fac 100644 --- a/cli/cmd/alert_show_integrations.go +++ b/cli/cmd/alert_show_integrations.go @@ -1,7 +1,7 @@ package cmd import ( - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" "github.com/olekukonko/tablewriter" "github.com/pkg/errors" ) diff --git a/cli/cmd/alert_show_investigation.go b/cli/cmd/alert_show_investigation.go index 7fe5d9777..29f9d1d1e 100644 --- a/cli/cmd/alert_show_investigation.go +++ b/cli/cmd/alert_show_investigation.go @@ -1,7 +1,7 @@ package cmd import ( - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" "github.com/olekukonko/tablewriter" "github.com/pkg/errors" ) diff --git a/cli/cmd/alert_show_related.go b/cli/cmd/alert_show_related.go index 5eff3145c..1a569f481 100644 --- a/cli/cmd/alert_show_related.go +++ b/cli/cmd/alert_show_related.go @@ -3,7 +3,7 @@ package cmd import ( "strconv" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" "github.com/olekukonko/tablewriter" "github.com/pkg/errors" ) diff --git a/cli/cmd/alert_show_timeline.go b/cli/cmd/alert_show_timeline.go index 71b16ce09..483cc9f5e 100644 --- a/cli/cmd/alert_show_timeline.go +++ b/cli/cmd/alert_show_timeline.go @@ -3,7 +3,7 @@ package cmd import ( "strconv" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" "github.com/olekukonko/tablewriter" "github.com/pkg/errors" ) diff --git a/cli/cmd/api.go b/cli/cmd/api.go index 202f1bff4..df7b43f63 100644 --- a/cli/cmd/api.go +++ b/cli/cmd/api.go @@ -25,7 +25,7 @@ import ( "github.com/pkg/errors" "github.com/spf13/cobra" - "github.com/lacework/go-sdk/internal/array" + "github.com/lacework/go-sdk/v2/internal/array" ) var ( diff --git a/cli/cmd/aws.go b/cli/cmd/aws.go index 1a528e66d..44a42057e 100644 --- a/cli/cmd/aws.go +++ b/cli/cmd/aws.go @@ -27,7 +27,7 @@ import ( "github.com/aws/aws-sdk-go-v2/service/ec2" "github.com/aws/aws-sdk-go-v2/service/ec2/types" "github.com/gammazero/workerpool" - "github.com/lacework/go-sdk/lwrunner" + "github.com/lacework/go-sdk/v2/lwrunner" ) func awsDescribeInstances(filterSSH bool) ([]*lwrunner.AWSRunner, error) { diff --git a/cli/cmd/awsiam.go b/cli/cmd/awsiam.go index de7b263fa..6363575d5 100644 --- a/cli/cmd/awsiam.go +++ b/cli/cmd/awsiam.go @@ -26,7 +26,7 @@ import ( "github.com/aws/aws-sdk-go-v2/service/iam" "github.com/aws/aws-sdk-go-v2/service/iam/types" "github.com/google/uuid" - "github.com/lacework/go-sdk/lwrunner" + "github.com/lacework/go-sdk/v2/lwrunner" ) // setupSSMAccess sets up an IAM role for SSM and attaches it to diff --git a/cli/cmd/cache.go b/cli/cmd/cache.go index 4b81f8a7a..85855f2b6 100644 --- a/cli/cmd/cache.go +++ b/cli/cmd/cache.go @@ -24,8 +24,8 @@ import ( "strings" "time" - "github.com/lacework/go-sdk/internal/cache" - "github.com/lacework/go-sdk/internal/format" + "github.com/lacework/go-sdk/v2/internal/cache" + "github.com/lacework/go-sdk/v2/internal/format" "github.com/mitchellh/hashstructure/v2" "github.com/peterbourgon/diskv/v3" "github.com/pkg/errors" diff --git a/cli/cmd/cdk.go b/cli/cmd/cdk.go index 684d1299d..54220248f 100644 --- a/cli/cmd/cdk.go +++ b/cli/cmd/cdk.go @@ -24,7 +24,7 @@ import ( "net" "os" - cdk "github.com/lacework/go-sdk/cli/cdk/go/proto/v1" + cdk "github.com/lacework/go-sdk/v2/cli/cdk/go/proto/v1" "github.com/pkg/errors" "google.golang.org/grpc" ) diff --git a/cli/cmd/cdk_test.go b/cli/cmd/cdk_test.go index 0ae9a5c79..13eadf0f4 100644 --- a/cli/cmd/cdk_test.go +++ b/cli/cmd/cdk_test.go @@ -24,7 +24,7 @@ import ( "testing" "time" - cdk "github.com/lacework/go-sdk/cli/cdk/go/proto/v1" + cdk "github.com/lacework/go-sdk/v2/cli/cdk/go/proto/v1" "github.com/stretchr/testify/assert" "google.golang.org/grpc" "google.golang.org/grpc/credentials/insecure" diff --git a/cli/cmd/cli_state.go b/cli/cmd/cli_state.go index ec7499932..d8f80c4d2 100644 --- a/cli/cmd/cli_state.go +++ b/cli/cmd/cli_state.go @@ -39,12 +39,12 @@ import ( "go.uber.org/zap" "google.golang.org/grpc" - "github.com/lacework/go-sdk/api" - cdk "github.com/lacework/go-sdk/cli/cdk/go/proto/v1" - "github.com/lacework/go-sdk/internal/format" - "github.com/lacework/go-sdk/lwcomponent" - "github.com/lacework/go-sdk/lwconfig" - "github.com/lacework/go-sdk/lwlogger" + "github.com/lacework/go-sdk/v2/api" + cdk "github.com/lacework/go-sdk/v2/cli/cdk/go/proto/v1" + "github.com/lacework/go-sdk/v2/internal/format" + "github.com/lacework/go-sdk/v2/lwcomponent" + "github.com/lacework/go-sdk/v2/lwconfig" + "github.com/lacework/go-sdk/v2/lwlogger" ) // cliState holds the state of the entire Lacework CLI diff --git a/cli/cmd/cloud_account.go b/cli/cmd/cloud_account.go index 7246a1dfe..6b4af27cf 100644 --- a/cli/cmd/cloud_account.go +++ b/cli/cmd/cloud_account.go @@ -8,9 +8,9 @@ import ( "time" "github.com/AlecAivazis/survey/v2" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/array" - "github.com/lacework/go-sdk/internal/format" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/array" + "github.com/lacework/go-sdk/v2/internal/format" "github.com/olekukonko/tablewriter" "github.com/pkg/errors" "github.com/spf13/cobra" diff --git a/cli/cmd/cloud_account_test.go b/cli/cmd/cloud_account_test.go index 1c92f0ff7..e93b4f972 100644 --- a/cli/cmd/cloud_account_test.go +++ b/cli/cmd/cloud_account_test.go @@ -5,7 +5,7 @@ import ( "strings" "testing" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" "github.com/stretchr/testify/assert" ) diff --git a/cli/cmd/compliance.go b/cli/cmd/compliance.go index 1ccd84052..088ab775e 100644 --- a/cli/cmd/compliance.go +++ b/cli/cmd/compliance.go @@ -29,9 +29,9 @@ import ( "github.com/pkg/errors" "github.com/spf13/cobra" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/array" - "github.com/lacework/go-sdk/lwseverity" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/array" + "github.com/lacework/go-sdk/v2/lwseverity" ) var ( diff --git a/cli/cmd/compliance_aws.go b/cli/cmd/compliance_aws.go index d9181a96c..5bf592b64 100644 --- a/cli/cmd/compliance_aws.go +++ b/cli/cmd/compliance_aws.go @@ -30,9 +30,9 @@ import ( "github.com/pkg/errors" "github.com/spf13/cobra" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/array" - "github.com/lacework/go-sdk/lwseverity" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/array" + "github.com/lacework/go-sdk/v2/lwseverity" ) var ( diff --git a/cli/cmd/compliance_aws_test.go b/cli/cmd/compliance_aws_test.go index fb1a3dcb6..09c74b40f 100644 --- a/cli/cmd/compliance_aws_test.go +++ b/cli/cmd/compliance_aws_test.go @@ -27,8 +27,8 @@ import ( "github.com/stretchr/testify/assert" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/capturer" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/capturer" ) func TestCliListAwsAccountsWithNoAccounts(t *testing.T) { diff --git a/cli/cmd/compliance_azure.go b/cli/cmd/compliance_azure.go index c2fd18dc6..8e7ef989a 100644 --- a/cli/cmd/compliance_azure.go +++ b/cli/cmd/compliance_azure.go @@ -31,9 +31,9 @@ import ( "github.com/pkg/errors" "github.com/spf13/cobra" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/array" - "github.com/lacework/go-sdk/lwseverity" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/array" + "github.com/lacework/go-sdk/v2/lwseverity" ) var ( diff --git a/cli/cmd/compliance_azure_test.go b/cli/cmd/compliance_azure_test.go index e192443c1..8b45dd264 100644 --- a/cli/cmd/compliance_azure_test.go +++ b/cli/cmd/compliance_azure_test.go @@ -29,9 +29,9 @@ import ( "github.com/stretchr/testify/assert" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/capturer" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/capturer" + "github.com/lacework/go-sdk/v2/internal/lacework" ) func TestSplitAzureSubscriptionsApiResponse(t *testing.T) { diff --git a/cli/cmd/compliance_gcp.go b/cli/cmd/compliance_gcp.go index f950045bd..1873e975d 100644 --- a/cli/cmd/compliance_gcp.go +++ b/cli/cmd/compliance_gcp.go @@ -33,9 +33,9 @@ import ( "github.com/pkg/errors" "github.com/spf13/cobra" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/array" - "github.com/lacework/go-sdk/lwseverity" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/array" + "github.com/lacework/go-sdk/v2/lwseverity" ) var ( diff --git a/cli/cmd/compliance_gcp_test.go b/cli/cmd/compliance_gcp_test.go index 6875ae153..bf48f7b4e 100644 --- a/cli/cmd/compliance_gcp_test.go +++ b/cli/cmd/compliance_gcp_test.go @@ -28,8 +28,8 @@ import ( "github.com/stretchr/testify/assert" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/capturer" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/capturer" ) func TestSplitIDAndAlias(t *testing.T) { diff --git a/cli/cmd/compliance_test.go b/cli/cmd/compliance_test.go index 502e1f61c..1b5d1d58d 100644 --- a/cli/cmd/compliance_test.go +++ b/cli/cmd/compliance_test.go @@ -24,7 +24,7 @@ import ( "github.com/stretchr/testify/assert" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func TestComplianceRecommendationsFilterNoResults(t *testing.T) { diff --git a/cli/cmd/component.go b/cli/cmd/component.go index c1c2e0b91..893b384b0 100644 --- a/cli/cmd/component.go +++ b/cli/cmd/component.go @@ -29,7 +29,7 @@ import ( "github.com/pkg/errors" "github.com/spf13/cobra" - "github.com/lacework/go-sdk/lwcomponent" + "github.com/lacework/go-sdk/v2/lwcomponent" ) const ( diff --git a/cli/cmd/component_dev.go b/cli/cmd/component_dev.go index 23007dfe9..19593bfb0 100644 --- a/cli/cmd/component_dev.go +++ b/cli/cmd/component_dev.go @@ -37,8 +37,8 @@ import ( "github.com/pkg/errors" "github.com/spf13/cobra" - "github.com/lacework/go-sdk/internal/databox" - "github.com/lacework/go-sdk/lwcomponent" + "github.com/lacework/go-sdk/v2/internal/databox" + "github.com/lacework/go-sdk/v2/lwcomponent" ) var cdkDevState = struct { diff --git a/cli/cmd/configure.go b/cli/cmd/configure.go index 420c5d822..fbd426ffb 100644 --- a/cli/cmd/configure.go +++ b/cli/cmd/configure.go @@ -31,9 +31,9 @@ import ( "github.com/spf13/cobra" "github.com/spf13/viper" - "github.com/lacework/go-sdk/internal/format" - "github.com/lacework/go-sdk/lwconfig" - "github.com/lacework/go-sdk/lwdomain" + "github.com/lacework/go-sdk/v2/internal/format" + "github.com/lacework/go-sdk/v2/lwconfig" + "github.com/lacework/go-sdk/v2/lwdomain" ) var ( diff --git a/cli/cmd/container_registry.go b/cli/cmd/container_registry.go index 17ad68e61..6a7e000ce 100644 --- a/cli/cmd/container_registry.go +++ b/cli/cmd/container_registry.go @@ -2,7 +2,7 @@ package cmd import ( "github.com/AlecAivazis/survey/v2" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" "github.com/pkg/errors" "github.com/spf13/cobra" ) diff --git a/cli/cmd/container_registry_test.go b/cli/cmd/container_registry_test.go index fac50d561..4450b795c 100644 --- a/cli/cmd/container_registry_test.go +++ b/cli/cmd/container_registry_test.go @@ -22,7 +22,7 @@ import ( "fmt" "testing" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" "github.com/stretchr/testify/assert" ) diff --git a/cli/cmd/content_library.go b/cli/cmd/content_library.go index b274de98a..e2623311a 100644 --- a/cli/cmd/content_library.go +++ b/cli/cmd/content_library.go @@ -23,7 +23,7 @@ import ( "github.com/pkg/errors" - "github.com/lacework/go-sdk/lwcomponent" + "github.com/lacework/go-sdk/v2/lwcomponent" ) const ( diff --git a/cli/cmd/content_library_internal_test.go b/cli/cmd/content_library_internal_test.go index 1b22fb780..577daa350 100644 --- a/cli/cmd/content_library_internal_test.go +++ b/cli/cmd/content_library_internal_test.go @@ -30,7 +30,7 @@ import ( "github.com/pkg/errors" "github.com/stretchr/testify/assert" - "github.com/lacework/go-sdk/lwcomponent" + "github.com/lacework/go-sdk/v2/lwcomponent" ) var ( diff --git a/cli/cmd/errors.go b/cli/cmd/errors.go index 5b318c695..f2b3bf964 100644 --- a/cli/cmd/errors.go +++ b/cli/cmd/errors.go @@ -21,8 +21,8 @@ package cmd import ( "fmt" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/lwseverity" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/lwseverity" "github.com/pkg/errors" ) diff --git a/cli/cmd/errors_lql.go b/cli/cmd/errors_lql.go index 2d5c02b50..b3021cc7b 100644 --- a/cli/cmd/errors_lql.go +++ b/cli/cmd/errors_lql.go @@ -21,7 +21,7 @@ package cmd import ( "fmt" - "github.com/lacework/go-sdk/internal/failon" + "github.com/lacework/go-sdk/v2/internal/failon" ) type queryFailonError struct { diff --git a/cli/cmd/gcp.go b/cli/cmd/gcp.go index 1e2057584..d475021d0 100644 --- a/cli/cmd/gcp.go +++ b/cli/cmd/gcp.go @@ -24,9 +24,9 @@ import ( "net/http" "cloud.google.com/go/compute/metadata" - instances "github.com/lacework/go-sdk/lwcloud/gcp/resources/instances" - resources "github.com/lacework/go-sdk/lwcloud/gcp/resources/models" - "github.com/lacework/go-sdk/lwrunner" + instances "github.com/lacework/go-sdk/v2/lwcloud/gcp/resources/instances" + resources "github.com/lacework/go-sdk/v2/lwcloud/gcp/resources/models" + "github.com/lacework/go-sdk/v2/lwrunner" ) // gcpDescribeInstancesInProject takes a GCP project ID and the username of an IAM username in the diff --git a/cli/cmd/generate_aws.go b/cli/cmd/generate_aws.go index 9ac57d32e..92cb5bd17 100644 --- a/cli/cmd/generate_aws.go +++ b/cli/cmd/generate_aws.go @@ -11,8 +11,8 @@ import ( "github.com/spf13/cobra" "github.com/AlecAivazis/survey/v2" - "github.com/lacework/go-sdk/internal/format" - "github.com/lacework/go-sdk/lwgenerate/aws" + "github.com/lacework/go-sdk/v2/internal/format" + "github.com/lacework/go-sdk/v2/lwgenerate/aws" "github.com/pkg/errors" ) diff --git a/cli/cmd/generate_aws_controltower.go b/cli/cmd/generate_aws_controltower.go index 8eede5f4e..761e95fdd 100644 --- a/cli/cmd/generate_aws_controltower.go +++ b/cli/cmd/generate_aws_controltower.go @@ -6,7 +6,7 @@ import ( "strings" "time" - "github.com/lacework/go-sdk/lwgenerate/aws_controltower" + "github.com/lacework/go-sdk/v2/lwgenerate/aws_controltower" "github.com/imdario/mergo" "github.com/spf13/cobra" diff --git a/cli/cmd/generate_aws_controltower_test.go b/cli/cmd/generate_aws_controltower_test.go index 3125576e0..4d562abd1 100644 --- a/cli/cmd/generate_aws_controltower_test.go +++ b/cli/cmd/generate_aws_controltower_test.go @@ -3,7 +3,7 @@ package cmd import ( "testing" - "github.com/lacework/go-sdk/lwgenerate/aws_controltower" + "github.com/lacework/go-sdk/v2/lwgenerate/aws_controltower" "github.com/stretchr/testify/assert" ) diff --git a/cli/cmd/generate_aws_eks_audit.go b/cli/cmd/generate_aws_eks_audit.go index e992fa2b1..7c6f95e62 100644 --- a/cli/cmd/generate_aws_eks_audit.go +++ b/cli/cmd/generate_aws_eks_audit.go @@ -6,7 +6,7 @@ import ( "strings" "time" - "github.com/lacework/go-sdk/lwgenerate/aws_eks_audit" + "github.com/lacework/go-sdk/v2/lwgenerate/aws_eks_audit" "github.com/imdario/mergo" "github.com/spf13/cobra" diff --git a/cli/cmd/generate_aws_eks_audit_test.go b/cli/cmd/generate_aws_eks_audit_test.go index 99590dd6e..7c3aca985 100644 --- a/cli/cmd/generate_aws_eks_audit_test.go +++ b/cli/cmd/generate_aws_eks_audit_test.go @@ -7,7 +7,7 @@ import ( "regexp" "testing" - "github.com/lacework/go-sdk/lwgenerate/aws_eks_audit" + "github.com/lacework/go-sdk/v2/lwgenerate/aws_eks_audit" "github.com/stretchr/testify/assert" ) diff --git a/cli/cmd/generate_aws_test.go b/cli/cmd/generate_aws_test.go index 1e842b16e..f2d90a47a 100644 --- a/cli/cmd/generate_aws_test.go +++ b/cli/cmd/generate_aws_test.go @@ -7,7 +7,7 @@ import ( "regexp" "testing" - "github.com/lacework/go-sdk/lwgenerate/aws" + "github.com/lacework/go-sdk/v2/lwgenerate/aws" "github.com/stretchr/testify/assert" ) diff --git a/cli/cmd/generate_azure.go b/cli/cmd/generate_azure.go index 34724f39d..8fe5881b0 100644 --- a/cli/cmd/generate_azure.go +++ b/cli/cmd/generate_azure.go @@ -9,7 +9,7 @@ import ( "github.com/imdario/mergo" "github.com/spf13/cobra" - "github.com/lacework/go-sdk/lwgenerate/azure" + "github.com/lacework/go-sdk/v2/lwgenerate/azure" "github.com/pkg/errors" ) diff --git a/cli/cmd/generate_azure_test.go b/cli/cmd/generate_azure_test.go index 069fbc5f9..9576cfb2d 100644 --- a/cli/cmd/generate_azure_test.go +++ b/cli/cmd/generate_azure_test.go @@ -6,7 +6,7 @@ import ( "path/filepath" "testing" - "github.com/lacework/go-sdk/lwgenerate/azure" + "github.com/lacework/go-sdk/v2/lwgenerate/azure" "github.com/stretchr/testify/assert" ) diff --git a/cli/cmd/generate_gcp.go b/cli/cmd/generate_gcp.go index e2fecb48a..9a2a15dd0 100644 --- a/cli/cmd/generate_gcp.go +++ b/cli/cmd/generate_gcp.go @@ -11,7 +11,7 @@ import ( "github.com/AlecAivazis/survey/v2" "github.com/pkg/errors" - "github.com/lacework/go-sdk/lwgenerate/gcp" + "github.com/lacework/go-sdk/v2/lwgenerate/gcp" ) var ( diff --git a/cli/cmd/generate_gcp_test.go b/cli/cmd/generate_gcp_test.go index a18672f8e..c1799fafe 100644 --- a/cli/cmd/generate_gcp_test.go +++ b/cli/cmd/generate_gcp_test.go @@ -7,7 +7,7 @@ import ( "regexp" "testing" - "github.com/lacework/go-sdk/lwgenerate/gcp" + "github.com/lacework/go-sdk/v2/lwgenerate/gcp" "github.com/stretchr/testify/assert" ) diff --git a/cli/cmd/generate_gke.go b/cli/cmd/generate_gke.go index e2cdc0d2d..4db869605 100644 --- a/cli/cmd/generate_gke.go +++ b/cli/cmd/generate_gke.go @@ -3,7 +3,7 @@ package cmd import ( "time" - "github.com/lacework/go-sdk/lwgenerate/gcp" + "github.com/lacework/go-sdk/v2/lwgenerate/gcp" "github.com/AlecAivazis/survey/v2" "github.com/imdario/mergo" diff --git a/cli/cmd/generate_gke_test.go b/cli/cmd/generate_gke_test.go index aeb801d92..982342cfb 100644 --- a/cli/cmd/generate_gke_test.go +++ b/cli/cmd/generate_gke_test.go @@ -6,7 +6,7 @@ import ( "path/filepath" "testing" - "github.com/lacework/go-sdk/lwgenerate/gcp" + "github.com/lacework/go-sdk/v2/lwgenerate/gcp" "github.com/stretchr/testify/assert" ) diff --git a/cli/cmd/generate_oci.go b/cli/cmd/generate_oci.go index 534064e5a..fd4adfa44 100644 --- a/cli/cmd/generate_oci.go +++ b/cli/cmd/generate_oci.go @@ -7,8 +7,8 @@ import ( "github.com/spf13/cobra" "github.com/AlecAivazis/survey/v2" - "github.com/lacework/go-sdk/internal/validate" - "github.com/lacework/go-sdk/lwgenerate/oci" + "github.com/lacework/go-sdk/v2/internal/validate" + "github.com/lacework/go-sdk/v2/lwgenerate/oci" "github.com/pkg/errors" ) diff --git a/cli/cmd/honeyvent.go b/cli/cmd/honeyvent.go index 407efcb7a..404912292 100644 --- a/cli/cmd/honeyvent.go +++ b/cli/cmd/honeyvent.go @@ -26,8 +26,8 @@ import ( "sync" "github.com/honeycombio/libhoney-go" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/lwdomain" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/lwdomain" ) var ( diff --git a/cli/cmd/honeyvent_test.go b/cli/cmd/honeyvent_test.go index 7d7f1a9f5..a02df87a2 100644 --- a/cli/cmd/honeyvent_test.go +++ b/cli/cmd/honeyvent_test.go @@ -24,8 +24,8 @@ import ( "runtime" "testing" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/lacework" "github.com/stretchr/testify/assert" ) diff --git a/cli/cmd/integration_aws.go b/cli/cmd/integration_aws.go index 8abde774c..4013982f7 100644 --- a/cli/cmd/integration_aws.go +++ b/cli/cmd/integration_aws.go @@ -21,7 +21,7 @@ package cmd import ( "github.com/AlecAivazis/survey/v2" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func createAwsConfigIntegration() error { diff --git a/cli/cmd/integration_aws_cloudwatch.go b/cli/cmd/integration_aws_cloudwatch.go index 114932c32..78cebfe53 100644 --- a/cli/cmd/integration_aws_cloudwatch.go +++ b/cli/cmd/integration_aws_cloudwatch.go @@ -21,7 +21,7 @@ package cmd import ( "github.com/AlecAivazis/survey/v2" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func createAwsCloudWatchAlertChannelIntegration() error { diff --git a/cli/cmd/integration_aws_govcloud.go b/cli/cmd/integration_aws_govcloud.go index 82dda964f..38845f9ed 100644 --- a/cli/cmd/integration_aws_govcloud.go +++ b/cli/cmd/integration_aws_govcloud.go @@ -21,7 +21,7 @@ package cmd import ( "github.com/AlecAivazis/survey/v2" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func createAwsGovCloudConfigIntegration() error { diff --git a/cli/cmd/integration_aws_s3_channel.go b/cli/cmd/integration_aws_s3_channel.go index cc7585cf4..92392cf1c 100644 --- a/cli/cmd/integration_aws_s3_channel.go +++ b/cli/cmd/integration_aws_s3_channel.go @@ -21,7 +21,7 @@ package cmd import ( "github.com/AlecAivazis/survey/v2" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func createAwsS3ChannelIntegration() error { diff --git a/cli/cmd/integration_azure.go b/cli/cmd/integration_azure.go index 6fa67c40b..455ef1e78 100644 --- a/cli/cmd/integration_azure.go +++ b/cli/cmd/integration_azure.go @@ -21,7 +21,7 @@ package cmd import ( "github.com/AlecAivazis/survey/v2" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func createAzureConfigIntegration() error { diff --git a/cli/cmd/integration_cisco_webex.go b/cli/cmd/integration_cisco_webex.go index 36759f6cc..0f7c6ab4c 100644 --- a/cli/cmd/integration_cisco_webex.go +++ b/cli/cmd/integration_cisco_webex.go @@ -21,7 +21,7 @@ package cmd import ( "github.com/AlecAivazis/survey/v2" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func createCiscoWebexChannelIntegration() error { diff --git a/cli/cmd/integration_datadog.go b/cli/cmd/integration_datadog.go index 7105f3867..797f5f178 100644 --- a/cli/cmd/integration_datadog.go +++ b/cli/cmd/integration_datadog.go @@ -21,7 +21,7 @@ package cmd import ( "github.com/AlecAivazis/survey/v2" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func createDatadogIntegration() error { diff --git a/cli/cmd/integration_docker_hub.go b/cli/cmd/integration_docker_hub.go index b927386a1..52427d84e 100644 --- a/cli/cmd/integration_docker_hub.go +++ b/cli/cmd/integration_docker_hub.go @@ -24,7 +24,7 @@ import ( "github.com/AlecAivazis/survey/v2" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func createDockerHubIntegration() error { diff --git a/cli/cmd/integration_docker_v2.go b/cli/cmd/integration_docker_v2.go index ba5ba8259..cf9ec3b35 100644 --- a/cli/cmd/integration_docker_v2.go +++ b/cli/cmd/integration_docker_v2.go @@ -23,7 +23,7 @@ import ( "github.com/AlecAivazis/survey/v2" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func createDockerV2Integration() error { diff --git a/cli/cmd/integration_ecr.go b/cli/cmd/integration_ecr.go index b6ce42ce3..117841923 100644 --- a/cli/cmd/integration_ecr.go +++ b/cli/cmd/integration_ecr.go @@ -25,7 +25,7 @@ import ( "github.com/AlecAivazis/survey/v2" "github.com/pkg/errors" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func createAwsEcrIntegration() error { diff --git a/cli/cmd/integration_email.go b/cli/cmd/integration_email.go index ee2273c27..5721979dd 100644 --- a/cli/cmd/integration_email.go +++ b/cli/cmd/integration_email.go @@ -23,7 +23,7 @@ import ( "github.com/AlecAivazis/survey/v2" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func createEmailAlertChannelIntegration() error { diff --git a/cli/cmd/integration_gar.go b/cli/cmd/integration_gar.go index 7ee1b93fb..6f6cf1beb 100644 --- a/cli/cmd/integration_gar.go +++ b/cli/cmd/integration_gar.go @@ -24,7 +24,7 @@ import ( "github.com/AlecAivazis/survey/v2" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func createGarIntegration() error { diff --git a/cli/cmd/integration_gcp.go b/cli/cmd/integration_gcp.go index 4936f84f3..54438b688 100644 --- a/cli/cmd/integration_gcp.go +++ b/cli/cmd/integration_gcp.go @@ -21,7 +21,7 @@ package cmd import ( "github.com/AlecAivazis/survey/v2" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func createGcpConfigIntegration() error { diff --git a/cli/cmd/integration_gcp_pub_sub_audit.go b/cli/cmd/integration_gcp_pub_sub_audit.go index 49414aade..1116dbf55 100644 --- a/cli/cmd/integration_gcp_pub_sub_audit.go +++ b/cli/cmd/integration_gcp_pub_sub_audit.go @@ -21,7 +21,7 @@ package cmd import ( "github.com/AlecAivazis/survey/v2" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func createGcpPubSubAuditLogIntegration() error { diff --git a/cli/cmd/integration_gcp_pub_sub_channel.go b/cli/cmd/integration_gcp_pub_sub_channel.go index 4936407e5..98570b443 100644 --- a/cli/cmd/integration_gcp_pub_sub_channel.go +++ b/cli/cmd/integration_gcp_pub_sub_channel.go @@ -21,7 +21,7 @@ package cmd import ( "github.com/AlecAivazis/survey/v2" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func createGcpPubSubChannelIntegration() error { diff --git a/cli/cmd/integration_gcr.go b/cli/cmd/integration_gcr.go index d412f42cc..218c874c9 100644 --- a/cli/cmd/integration_gcr.go +++ b/cli/cmd/integration_gcr.go @@ -24,7 +24,7 @@ import ( "github.com/AlecAivazis/survey/v2" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func createGcrIntegration() error { diff --git a/cli/cmd/integration_ghcr.go b/cli/cmd/integration_ghcr.go index ea48a5566..41ef82e33 100644 --- a/cli/cmd/integration_ghcr.go +++ b/cli/cmd/integration_ghcr.go @@ -24,7 +24,7 @@ import ( "github.com/AlecAivazis/survey/v2" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func createGhcrIntegration() error { diff --git a/cli/cmd/integration_inline_scanner.go b/cli/cmd/integration_inline_scanner.go index 7647a7d9d..5364963f9 100644 --- a/cli/cmd/integration_inline_scanner.go +++ b/cli/cmd/integration_inline_scanner.go @@ -23,7 +23,7 @@ import ( "github.com/AlecAivazis/survey/v2" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func createInlineScannerIntegration() error { diff --git a/cli/cmd/integration_jira.go b/cli/cmd/integration_jira.go index d84c8326d..4099e182e 100644 --- a/cli/cmd/integration_jira.go +++ b/cli/cmd/integration_jira.go @@ -23,7 +23,7 @@ import ( "github.com/AlecAivazis/survey/v2" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) type jiraAlertChannelIntegrationSurvey struct { diff --git a/cli/cmd/integration_microsoft_teams.go b/cli/cmd/integration_microsoft_teams.go index 3c1a3a9c3..2317975a1 100644 --- a/cli/cmd/integration_microsoft_teams.go +++ b/cli/cmd/integration_microsoft_teams.go @@ -21,7 +21,7 @@ package cmd import ( "github.com/AlecAivazis/survey/v2" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func createMicrosoftTeamsChannelIntegration() error { diff --git a/cli/cmd/integration_new_relic_channel.go b/cli/cmd/integration_new_relic_channel.go index 5e26d6705..f4c8f132f 100644 --- a/cli/cmd/integration_new_relic_channel.go +++ b/cli/cmd/integration_new_relic_channel.go @@ -21,7 +21,7 @@ package cmd import ( "github.com/AlecAivazis/survey/v2" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func createNewRelicAlertChannelIntegration() error { diff --git a/cli/cmd/integration_oci.go b/cli/cmd/integration_oci.go index abf6872cf..1d9f3f223 100644 --- a/cli/cmd/integration_oci.go +++ b/cli/cmd/integration_oci.go @@ -22,7 +22,7 @@ import ( "os" "github.com/AlecAivazis/survey/v2" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" "github.com/pkg/errors" ) diff --git a/cli/cmd/integration_pagerduty.go b/cli/cmd/integration_pagerduty.go index 95bbcca7c..dd2bc3c8d 100644 --- a/cli/cmd/integration_pagerduty.go +++ b/cli/cmd/integration_pagerduty.go @@ -21,7 +21,7 @@ package cmd import ( "github.com/AlecAivazis/survey/v2" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func createPagerDutyAlertChannelIntegration() error { diff --git a/cli/cmd/integration_proxy_scanner.go b/cli/cmd/integration_proxy_scanner.go index 3509e0cf1..ffb42a559 100644 --- a/cli/cmd/integration_proxy_scanner.go +++ b/cli/cmd/integration_proxy_scanner.go @@ -24,7 +24,7 @@ import ( "github.com/AlecAivazis/survey/v2" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func createProxyScannerIntegration() error { diff --git a/cli/cmd/integration_qradar_channel.go b/cli/cmd/integration_qradar_channel.go index 475c018ca..04b1efca2 100644 --- a/cli/cmd/integration_qradar_channel.go +++ b/cli/cmd/integration_qradar_channel.go @@ -21,7 +21,7 @@ package cmd import ( "github.com/AlecAivazis/survey/v2" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func createQRadarAlertChannelIntegration() error { diff --git a/cli/cmd/integration_service_now_channel.go b/cli/cmd/integration_service_now_channel.go index 7f3db8cde..4070d2510 100644 --- a/cli/cmd/integration_service_now_channel.go +++ b/cli/cmd/integration_service_now_channel.go @@ -21,7 +21,7 @@ package cmd import ( "github.com/AlecAivazis/survey/v2" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func createServiceNowAlertChannelIntegration() error { diff --git a/cli/cmd/integration_slack_channel.go b/cli/cmd/integration_slack_channel.go index 64a3f4a44..828ce65f5 100644 --- a/cli/cmd/integration_slack_channel.go +++ b/cli/cmd/integration_slack_channel.go @@ -21,7 +21,7 @@ package cmd import ( "github.com/AlecAivazis/survey/v2" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func createSlackAlertChannelIntegration() error { diff --git a/cli/cmd/integration_splunk.go b/cli/cmd/integration_splunk.go index c0eca6cea..4334c8aed 100644 --- a/cli/cmd/integration_splunk.go +++ b/cli/cmd/integration_splunk.go @@ -21,7 +21,7 @@ package cmd import ( "github.com/AlecAivazis/survey/v2" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func createSplunkIntegration() error { diff --git a/cli/cmd/integration_victorops.go b/cli/cmd/integration_victorops.go index 01c54f295..98a7d1885 100644 --- a/cli/cmd/integration_victorops.go +++ b/cli/cmd/integration_victorops.go @@ -21,7 +21,7 @@ package cmd import ( "github.com/AlecAivazis/survey/v2" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func createVictorOpsChannelIntegration() error { diff --git a/cli/cmd/integration_webhook.go b/cli/cmd/integration_webhook.go index 0a27b97a0..be67629c2 100644 --- a/cli/cmd/integration_webhook.go +++ b/cli/cmd/integration_webhook.go @@ -21,7 +21,7 @@ package cmd import ( "github.com/AlecAivazis/survey/v2" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func createWebhookIntegration() error { diff --git a/cli/cmd/lql.go b/cli/cmd/lql.go index e46f9a45f..cd811591b 100644 --- a/cli/cmd/lql.go +++ b/cli/cmd/lql.go @@ -31,9 +31,9 @@ import ( "github.com/pkg/errors" "github.com/spf13/cobra" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/failon" - "github.com/lacework/go-sdk/lwtime" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/failon" + "github.com/lacework/go-sdk/v2/lwtime" ) var ( diff --git a/cli/cmd/lql_create.go b/cli/cmd/lql_create.go index 1f6f00d04..75a0a8d2d 100644 --- a/cli/cmd/lql_create.go +++ b/cli/cmd/lql_create.go @@ -22,7 +22,7 @@ import ( "github.com/pkg/errors" "github.com/spf13/cobra" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) var ( diff --git a/cli/cmd/lql_internal_test.go b/cli/cmd/lql_internal_test.go index 78358dbb0..e127ab0d5 100644 --- a/cli/cmd/lql_internal_test.go +++ b/cli/cmd/lql_internal_test.go @@ -25,8 +25,8 @@ import ( "github.com/pkg/errors" "github.com/stretchr/testify/assert" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/lwtime" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/lwtime" ) var ( diff --git a/cli/cmd/lql_library.go b/cli/cmd/lql_library.go index 238f3b72d..61f44b839 100644 --- a/cli/cmd/lql_library.go +++ b/cli/cmd/lql_library.go @@ -21,7 +21,7 @@ package cmd import ( "sort" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" "github.com/pkg/errors" "github.com/spf13/cobra" ) diff --git a/cli/cmd/lql_list.go b/cli/cmd/lql_list.go index 013d63674..741fd1092 100644 --- a/cli/cmd/lql_list.go +++ b/cli/cmd/lql_list.go @@ -24,7 +24,7 @@ import ( "github.com/pkg/errors" "github.com/spf13/cobra" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) var ( diff --git a/cli/cmd/lql_list_internal_test.go b/cli/cmd/lql_list_internal_test.go index b3c942b67..14f6bcb78 100644 --- a/cli/cmd/lql_list_internal_test.go +++ b/cli/cmd/lql_list_internal_test.go @@ -21,7 +21,7 @@ package cmd import ( "testing" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" "github.com/stretchr/testify/assert" ) diff --git a/cli/cmd/lql_preview.go b/cli/cmd/lql_preview.go index 1f7309904..f40c2243c 100644 --- a/cli/cmd/lql_preview.go +++ b/cli/cmd/lql_preview.go @@ -25,8 +25,8 @@ import ( "github.com/pkg/errors" "github.com/spf13/cobra" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/lwtime" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/lwtime" ) var ( diff --git a/cli/cmd/lql_show.go b/cli/cmd/lql_show.go index 7528002df..2b5ba8956 100644 --- a/cli/cmd/lql_show.go +++ b/cli/cmd/lql_show.go @@ -22,7 +22,7 @@ import ( "github.com/pkg/errors" "github.com/spf13/cobra" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) var ( diff --git a/cli/cmd/lql_sources.go b/cli/cmd/lql_sources.go index 5f7c2070b..c8d9ec913 100644 --- a/cli/cmd/lql_sources.go +++ b/cli/cmd/lql_sources.go @@ -26,7 +26,7 @@ import ( "github.com/pkg/errors" "github.com/spf13/cobra" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) var ( diff --git a/cli/cmd/lql_sources_internal_test.go b/cli/cmd/lql_sources_internal_test.go index 586431cac..4053847db 100644 --- a/cli/cmd/lql_sources_internal_test.go +++ b/cli/cmd/lql_sources_internal_test.go @@ -21,7 +21,7 @@ package cmd import ( "testing" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" "github.com/stretchr/testify/assert" ) diff --git a/cli/cmd/lql_update.go b/cli/cmd/lql_update.go index e593776ae..0b1ddaee0 100644 --- a/cli/cmd/lql_update.go +++ b/cli/cmd/lql_update.go @@ -26,7 +26,7 @@ import ( "github.com/spf13/cobra" "gopkg.in/yaml.v2" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) var ( diff --git a/cli/cmd/lql_validate.go b/cli/cmd/lql_validate.go index 1b5a8000e..eb20ffa39 100644 --- a/cli/cmd/lql_validate.go +++ b/cli/cmd/lql_validate.go @@ -22,7 +22,7 @@ import ( "github.com/pkg/errors" "github.com/spf13/cobra" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) const ( diff --git a/cli/cmd/migration.go b/cli/cmd/migration.go index e158b3607..1139705ea 100644 --- a/cli/cmd/migration.go +++ b/cli/cmd/migration.go @@ -28,9 +28,9 @@ import ( "github.com/pkg/errors" "github.com/spf13/viper" - "github.com/lacework/go-sdk/internal/cache" - "github.com/lacework/go-sdk/internal/file" - "github.com/lacework/go-sdk/lwconfig" + "github.com/lacework/go-sdk/v2/internal/cache" + "github.com/lacework/go-sdk/v2/internal/file" + "github.com/lacework/go-sdk/v2/lwconfig" ) // The name of the directory we will store backups of configuration files before migrating them diff --git a/cli/cmd/package_manifest.go b/cli/cmd/package_manifest.go index 5fe900f5e..e9b630323 100644 --- a/cli/cmd/package_manifest.go +++ b/cli/cmd/package_manifest.go @@ -32,8 +32,8 @@ import ( "github.com/pkg/errors" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/file" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/file" ) var SupportedPackageManagers = []string{"dpkg-query", "rpm"} // @afiune can we support yum and apk? diff --git a/cli/cmd/package_manifest_test.go b/cli/cmd/package_manifest_test.go index d5280f242..c8b9c5ed8 100644 --- a/cli/cmd/package_manifest_test.go +++ b/cli/cmd/package_manifest_test.go @@ -26,8 +26,8 @@ import ( "github.com/stretchr/testify/assert" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/lacework" ) func TestRemoveInactivePackagesFromManifest(t *testing.T) { diff --git a/cli/cmd/policy.go b/cli/cmd/policy.go index 45714c80f..f61851a76 100644 --- a/cli/cmd/policy.go +++ b/cli/cmd/policy.go @@ -29,9 +29,9 @@ import ( "strings" "github.com/AlecAivazis/survey/v2" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/pointer" - "github.com/lacework/go-sdk/lwseverity" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/pointer" + "github.com/lacework/go-sdk/v2/lwseverity" "github.com/olekukonko/tablewriter" "github.com/pkg/errors" "github.com/spf13/cobra" diff --git a/cli/cmd/policy_create.go b/cli/cmd/policy_create.go index 172253ce3..f114273dc 100644 --- a/cli/cmd/policy_create.go +++ b/cli/cmd/policy_create.go @@ -25,7 +25,7 @@ import ( "github.com/pkg/errors" "github.com/spf13/cobra" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) var ( diff --git a/cli/cmd/policy_delete.go b/cli/cmd/policy_delete.go index 124fc6a24..ad3714f6e 100644 --- a/cli/cmd/policy_delete.go +++ b/cli/cmd/policy_delete.go @@ -21,7 +21,7 @@ import ( "github.com/pkg/errors" "github.com/spf13/cobra" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) var ( diff --git a/cli/cmd/policy_exceptions.go b/cli/cmd/policy_exceptions.go index 0f31255ec..9edfef520 100644 --- a/cli/cmd/policy_exceptions.go +++ b/cli/cmd/policy_exceptions.go @@ -28,8 +28,8 @@ import ( "github.com/pkg/errors" "github.com/spf13/cobra" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/array" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/array" ) var ( diff --git a/cli/cmd/policy_exceptions_test.go b/cli/cmd/policy_exceptions_test.go index cde50bcbf..319cb37e8 100644 --- a/cli/cmd/policy_exceptions_test.go +++ b/cli/cmd/policy_exceptions_test.go @@ -22,7 +22,7 @@ import ( "testing" "github.com/AlecAivazis/survey/v2" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" "github.com/stretchr/testify/assert" ) diff --git a/cli/cmd/policy_internal_test.go b/cli/cmd/policy_internal_test.go index 478f3c513..893b67c0e 100644 --- a/cli/cmd/policy_internal_test.go +++ b/cli/cmd/policy_internal_test.go @@ -21,7 +21,7 @@ package cmd import ( "testing" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" "github.com/stretchr/testify/assert" ) diff --git a/cli/cmd/policy_library.go b/cli/cmd/policy_library.go index 31bfea5c8..3ce138bbe 100644 --- a/cli/cmd/policy_library.go +++ b/cli/cmd/policy_library.go @@ -23,8 +23,8 @@ import ( "strings" "github.com/AlecAivazis/survey/v2" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/array" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/array" "github.com/olekukonko/tablewriter" "github.com/pkg/errors" "github.com/spf13/cobra" diff --git a/cli/cmd/policy_update.go b/cli/cmd/policy_update.go index 4342579ac..f1c055815 100644 --- a/cli/cmd/policy_update.go +++ b/cli/cmd/policy_update.go @@ -22,11 +22,11 @@ import ( "fmt" "strings" - "github.com/lacework/go-sdk/lwseverity" + "github.com/lacework/go-sdk/v2/lwseverity" "github.com/pkg/errors" "github.com/spf13/cobra" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) var ( diff --git a/cli/cmd/report_definitions.go b/cli/cmd/report_definitions.go index f69e113d0..031cd2ffd 100644 --- a/cli/cmd/report_definitions.go +++ b/cli/cmd/report_definitions.go @@ -23,8 +23,8 @@ import ( "strconv" "strings" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/array" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/array" "github.com/olekukonko/tablewriter" "github.com/pkg/errors" "github.com/spf13/cobra" diff --git a/cli/cmd/report_definitions_create.go b/cli/cmd/report_definitions_create.go index f07f21c61..407f77206 100644 --- a/cli/cmd/report_definitions_create.go +++ b/cli/cmd/report_definitions_create.go @@ -25,7 +25,7 @@ import ( "strings" "github.com/AlecAivazis/survey/v2" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" "github.com/pkg/errors" "github.com/spf13/cobra" "golang.org/x/exp/slices" diff --git a/cli/cmd/report_definitions_create_test.go b/cli/cmd/report_definitions_create_test.go index 1d1010b17..931f5c778 100644 --- a/cli/cmd/report_definitions_create_test.go +++ b/cli/cmd/report_definitions_create_test.go @@ -20,7 +20,7 @@ package cmd import ( "testing" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" "github.com/stretchr/testify/assert" ) diff --git a/cli/cmd/report_definitions_test.go b/cli/cmd/report_definitions_test.go index 99b59b5ae..7acf449a9 100644 --- a/cli/cmd/report_definitions_test.go +++ b/cli/cmd/report_definitions_test.go @@ -23,7 +23,7 @@ import ( "github.com/stretchr/testify/assert" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func TestBuildReportDefinitions(t *testing.T) { diff --git a/cli/cmd/report_definitions_update.go b/cli/cmd/report_definitions_update.go index 8bcd687fa..553f9b3e4 100644 --- a/cli/cmd/report_definitions_update.go +++ b/cli/cmd/report_definitions_update.go @@ -23,7 +23,7 @@ import ( "strings" "github.com/AlecAivazis/survey/v2" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" "github.com/pkg/errors" "github.com/spf13/cobra" "golang.org/x/exp/slices" diff --git a/cli/cmd/report_distributions.go b/cli/cmd/report_distributions.go index b97f2519b..c29583fbf 100644 --- a/cli/cmd/report_distributions.go +++ b/cli/cmd/report_distributions.go @@ -23,7 +23,7 @@ import ( "strings" "github.com/fatih/structs" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" "github.com/olekukonko/tablewriter" "github.com/pkg/errors" "github.com/spf13/cobra" diff --git a/cli/cmd/report_distributions_create.go b/cli/cmd/report_distributions_create.go index 5b8af9b22..4674b7e31 100644 --- a/cli/cmd/report_distributions_create.go +++ b/cli/cmd/report_distributions_create.go @@ -22,8 +22,8 @@ import ( "strings" "github.com/AlecAivazis/survey/v2" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/lwseverity" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/lwseverity" "github.com/pkg/errors" "github.com/spf13/cobra" ) diff --git a/cli/cmd/report_distributions_update.go b/cli/cmd/report_distributions_update.go index cc2020e5c..608232b9e 100644 --- a/cli/cmd/report_distributions_update.go +++ b/cli/cmd/report_distributions_update.go @@ -22,8 +22,8 @@ import ( "strings" "github.com/AlecAivazis/survey/v2" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/lwseverity" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/lwseverity" "github.com/pkg/errors" "github.com/spf13/cobra" ) diff --git a/cli/cmd/report_rules.go b/cli/cmd/report_rules.go index 77a8fa1fa..f1537e33b 100644 --- a/cli/cmd/report_rules.go +++ b/cli/cmd/report_rules.go @@ -27,7 +27,7 @@ import ( "github.com/AlecAivazis/survey/v2" "github.com/fatih/structs" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" "github.com/olekukonko/tablewriter" "github.com/pkg/errors" "github.com/spf13/cobra" diff --git a/cli/cmd/report_rules_test.go b/cli/cmd/report_rules_test.go index 6ed871791..69364eb06 100644 --- a/cli/cmd/report_rules_test.go +++ b/cli/cmd/report_rules_test.go @@ -22,7 +22,7 @@ import ( "github.com/stretchr/testify/assert" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func TestBuildReportRules(t *testing.T) { diff --git a/cli/cmd/resource_group_v2.go b/cli/cmd/resource_group_v2.go index 8002c82c7..724a6cac0 100644 --- a/cli/cmd/resource_group_v2.go +++ b/cli/cmd/resource_group_v2.go @@ -24,7 +24,7 @@ import ( "fmt" "github.com/AlecAivazis/survey/v2" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func createResourceGroup(resourceType string) error { diff --git a/cli/cmd/resource_groups.go b/cli/cmd/resource_groups.go index e3667c7fd..576ed5224 100644 --- a/cli/cmd/resource_groups.go +++ b/cli/cmd/resource_groups.go @@ -24,7 +24,7 @@ import ( "time" "github.com/AlecAivazis/survey/v2" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" "github.com/pkg/errors" "github.com/spf13/cobra" ) diff --git a/cli/cmd/root.go b/cli/cmd/root.go index 79b50f71f..2baf3eb2d 100644 --- a/cli/cmd/root.go +++ b/cli/cmd/root.go @@ -30,8 +30,8 @@ import ( "github.com/spf13/cobra" "github.com/spf13/viper" - "github.com/lacework/go-sdk/lwcomponent" - "github.com/lacework/go-sdk/lwlogger" + "github.com/lacework/go-sdk/v2/lwcomponent" + "github.com/lacework/go-sdk/v2/lwlogger" ) var ( diff --git a/cli/cmd/suppressions.go b/cli/cmd/suppressions.go index c9ad322f8..52ed59474 100644 --- a/cli/cmd/suppressions.go +++ b/cli/cmd/suppressions.go @@ -22,7 +22,7 @@ import ( "github.com/fatih/color" "github.com/aws/aws-sdk-go-v2/aws/arn" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" "github.com/spf13/cobra" "golang.org/x/exp/slices" ) diff --git a/cli/cmd/suppressions_aws.go b/cli/cmd/suppressions_aws.go index cded4d9c7..ab47913de 100644 --- a/cli/cmd/suppressions_aws.go +++ b/cli/cmd/suppressions_aws.go @@ -26,7 +26,7 @@ import ( "github.com/fatih/color" "github.com/AlecAivazis/survey/v2" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" "github.com/pkg/errors" "github.com/spf13/cobra" ) diff --git a/cli/cmd/suppressions_aws_test.go b/cli/cmd/suppressions_aws_test.go index 4a63226a8..c556c9b25 100644 --- a/cli/cmd/suppressions_aws_test.go +++ b/cli/cmd/suppressions_aws_test.go @@ -24,8 +24,8 @@ import ( "sort" "testing" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/lacework" "github.com/stretchr/testify/assert" ) diff --git a/cli/cmd/suppressions_azure.go b/cli/cmd/suppressions_azure.go index c90247456..9ad5804af 100644 --- a/cli/cmd/suppressions_azure.go +++ b/cli/cmd/suppressions_azure.go @@ -27,7 +27,7 @@ import ( "github.com/fatih/color" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" "github.com/pkg/errors" "github.com/spf13/cobra" ) diff --git a/cli/cmd/suppressions_azure_test.go b/cli/cmd/suppressions_azure_test.go index 84d1635f7..4c0a9a05f 100644 --- a/cli/cmd/suppressions_azure_test.go +++ b/cli/cmd/suppressions_azure_test.go @@ -24,8 +24,8 @@ import ( "sort" "testing" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/lacework" "github.com/stretchr/testify/assert" ) diff --git a/cli/cmd/suppressions_gcp.go b/cli/cmd/suppressions_gcp.go index 18836b0a8..c6d6bf73f 100644 --- a/cli/cmd/suppressions_gcp.go +++ b/cli/cmd/suppressions_gcp.go @@ -26,7 +26,7 @@ import ( "github.com/fatih/color" "github.com/AlecAivazis/survey/v2" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" "github.com/pkg/errors" "github.com/spf13/cobra" ) diff --git a/cli/cmd/suppressions_gcp_test.go b/cli/cmd/suppressions_gcp_test.go index 5fd15123d..209e146aa 100644 --- a/cli/cmd/suppressions_gcp_test.go +++ b/cli/cmd/suppressions_gcp_test.go @@ -24,8 +24,8 @@ import ( "sort" "testing" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/lacework" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/lacework" "github.com/stretchr/testify/assert" ) diff --git a/cli/cmd/team_members.go b/cli/cmd/team_members.go index 9a5d79463..50adebd05 100644 --- a/cli/cmd/team_members.go +++ b/cli/cmd/team_members.go @@ -29,7 +29,7 @@ import ( "github.com/pkg/errors" "github.com/spf13/cobra" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) var ( diff --git a/cli/cmd/team_members_test.go b/cli/cmd/team_members_test.go index 042280583..18938ef5e 100644 --- a/cli/cmd/team_members_test.go +++ b/cli/cmd/team_members_test.go @@ -22,7 +22,7 @@ import ( "github.com/stretchr/testify/assert" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func TestBuildTeamMembersTable(t *testing.T) { diff --git a/cli/cmd/telemetry.go b/cli/cmd/telemetry.go index b87aa10fe..e5343c894 100644 --- a/cli/cmd/telemetry.go +++ b/cli/cmd/telemetry.go @@ -9,7 +9,7 @@ import ( "github.com/spf13/cobra" - cdk "github.com/lacework/go-sdk/cli/cdk/go/proto/v1" + cdk "github.com/lacework/go-sdk/v2/cli/cdk/go/proto/v1" ) var ( diff --git a/cli/cmd/version.go b/cli/cmd/version.go index b7ab861c3..0fae2f0ab 100644 --- a/cli/cmd/version.go +++ b/cli/cmd/version.go @@ -25,10 +25,10 @@ import ( "strings" "time" - "github.com/lacework/go-sdk/internal/cache" - "github.com/lacework/go-sdk/internal/file" - "github.com/lacework/go-sdk/lwcomponent" - "github.com/lacework/go-sdk/lwupdater" + "github.com/lacework/go-sdk/v2/internal/cache" + "github.com/lacework/go-sdk/v2/internal/file" + "github.com/lacework/go-sdk/v2/lwcomponent" + "github.com/lacework/go-sdk/v2/lwupdater" "github.com/pkg/errors" "github.com/spf13/cobra" ) @@ -114,7 +114,7 @@ func init() { // versionCheck checks if the user is running the latest version of the cli, // if not, displays a friendly message about the new version available func versionCheck() (*lwupdater.Version, error) { - cli.Log.Debugw("check version of the lacework-cli", "repository", "github.com/lacework/go-sdk") + cli.Log.Debugw("check version of the lacework-cli", "repository", "github.com/lacework/go-sdk/v2") sdk, err := lwupdater.Check("go-sdk", fmt.Sprintf("v%s", Version)) if err != nil { return nil, errors.Wrap(err, "unable to check updates") diff --git a/cli/cmd/vuln_container.go b/cli/cmd/vuln_container.go index e0c855983..7b6e45991 100644 --- a/cli/cmd/vuln_container.go +++ b/cli/cmd/vuln_container.go @@ -19,7 +19,7 @@ package cmd import ( - "github.com/lacework/go-sdk/internal/array" + "github.com/lacework/go-sdk/v2/internal/array" "github.com/pkg/errors" flag "github.com/spf13/pflag" ) diff --git a/cli/cmd/vuln_container_list_assessments.go b/cli/cmd/vuln_container_list_assessments.go index be3a56ea6..91e683b1f 100644 --- a/cli/cmd/vuln_container_list_assessments.go +++ b/cli/cmd/vuln_container_list_assessments.go @@ -6,9 +6,9 @@ import ( "strings" "time" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/array" - "github.com/lacework/go-sdk/lwtime" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/array" + "github.com/lacework/go-sdk/v2/lwtime" "github.com/pkg/errors" "github.com/spf13/cobra" ) diff --git a/cli/cmd/vuln_container_list_assessments_test.go b/cli/cmd/vuln_container_list_assessments_test.go index 558f32a07..191f724d4 100644 --- a/cli/cmd/vuln_container_list_assessments_test.go +++ b/cli/cmd/vuln_container_list_assessments_test.go @@ -23,7 +23,7 @@ import ( "testing" "time" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" "github.com/stretchr/testify/assert" ) diff --git a/cli/cmd/vuln_container_scan.go b/cli/cmd/vuln_container_scan.go index d3298b3bc..e6ac30f97 100644 --- a/cli/cmd/vuln_container_scan.go +++ b/cli/cmd/vuln_container_scan.go @@ -23,7 +23,7 @@ import ( "strings" "time" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" "github.com/pkg/errors" "github.com/spf13/cobra" ) diff --git a/cli/cmd/vuln_container_show_assessments.go b/cli/cmd/vuln_container_show_assessments.go index 8d09b74e5..0842d8071 100644 --- a/cli/cmd/vuln_container_show_assessments.go +++ b/cli/cmd/vuln_container_show_assessments.go @@ -8,9 +8,9 @@ import ( "strings" "time" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/array" - "github.com/lacework/go-sdk/lwseverity" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/array" + "github.com/lacework/go-sdk/v2/lwseverity" "github.com/olekukonko/tablewriter" "github.com/pkg/errors" "github.com/spf13/cobra" diff --git a/cli/cmd/vuln_container_test.go b/cli/cmd/vuln_container_test.go index 084dc00ce..bc1809c06 100644 --- a/cli/cmd/vuln_container_test.go +++ b/cli/cmd/vuln_container_test.go @@ -27,8 +27,8 @@ import ( "github.com/pkg/errors" "github.com/stretchr/testify/assert" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/capturer" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/capturer" ) func TestUserFriendlyErrorFromOnDemandCtrVulnScanRepositoryNotFound(t *testing.T) { diff --git a/cli/cmd/vuln_host.go b/cli/cmd/vuln_host.go index f5f290d4b..b0282315b 100644 --- a/cli/cmd/vuln_host.go +++ b/cli/cmd/vuln_host.go @@ -21,8 +21,8 @@ package cmd import ( "fmt" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/array" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/array" ) var ( diff --git a/cli/cmd/vuln_host_list_cves.go b/cli/cmd/vuln_host_list_cves.go index 5fc55eaba..aacbe0ceb 100644 --- a/cli/cmd/vuln_host_list_cves.go +++ b/cli/cmd/vuln_host_list_cves.go @@ -24,10 +24,10 @@ import ( "strconv" "time" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/array" - "github.com/lacework/go-sdk/lwseverity" - "github.com/lacework/go-sdk/lwtime" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/array" + "github.com/lacework/go-sdk/v2/lwseverity" + "github.com/lacework/go-sdk/v2/lwtime" "github.com/pkg/errors" "github.com/spf13/cobra" "golang.org/x/text/cases" diff --git a/cli/cmd/vuln_host_list_hosts.go b/cli/cmd/vuln_host_list_hosts.go index d61440bc8..c37224cd8 100644 --- a/cli/cmd/vuln_host_list_hosts.go +++ b/cli/cmd/vuln_host_list_hosts.go @@ -25,9 +25,9 @@ import ( "strings" "time" - "github.com/lacework/go-sdk/lwtime" + "github.com/lacework/go-sdk/v2/lwtime" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" "github.com/pkg/errors" "github.com/spf13/cobra" ) diff --git a/cli/cmd/vuln_host_scan_package_manifest.go b/cli/cmd/vuln_host_scan_package_manifest.go index 7e3ab057b..3b4efb7d5 100644 --- a/cli/cmd/vuln_host_scan_package_manifest.go +++ b/cli/cmd/vuln_host_scan_package_manifest.go @@ -27,7 +27,7 @@ import ( "strings" "github.com/AlecAivazis/survey/v2" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" "github.com/olekukonko/tablewriter" "github.com/pkg/errors" "github.com/spf13/cobra" diff --git a/cli/cmd/vuln_host_scan_package_manifest_test.go b/cli/cmd/vuln_host_scan_package_manifest_test.go index e72269742..ea9e5f115 100644 --- a/cli/cmd/vuln_host_scan_package_manifest_test.go +++ b/cli/cmd/vuln_host_scan_package_manifest_test.go @@ -5,7 +5,7 @@ import ( "log" "testing" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" "github.com/stretchr/testify/assert" ) diff --git a/cli/cmd/vuln_host_show_assessment.go b/cli/cmd/vuln_host_show_assessment.go index 2c08221cc..42b8cae60 100644 --- a/cli/cmd/vuln_host_show_assessment.go +++ b/cli/cmd/vuln_host_show_assessment.go @@ -25,7 +25,7 @@ import ( "strings" "time" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" "github.com/olekukonko/tablewriter" "github.com/pkg/errors" "github.com/spf13/cobra" diff --git a/cli/cmd/vuln_host_show_assessment_test.go b/cli/cmd/vuln_host_show_assessment_test.go index 2472216d4..d232b2b92 100644 --- a/cli/cmd/vuln_host_show_assessment_test.go +++ b/cli/cmd/vuln_host_show_assessment_test.go @@ -4,7 +4,7 @@ import ( "testing" "time" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" "github.com/stretchr/testify/assert" ) diff --git a/cli/cmd/vuln_host_test.go b/cli/cmd/vuln_host_test.go index 97a40a469..05900de4f 100644 --- a/cli/cmd/vuln_host_test.go +++ b/cli/cmd/vuln_host_test.go @@ -27,8 +27,8 @@ import ( "github.com/stretchr/testify/assert" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/capturer" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/capturer" ) func TestListCvesFilterSeverity(t *testing.T) { diff --git a/cli/cmd/vuln_html.go b/cli/cmd/vuln_html.go index d3a4c96d8..c1ff3afe0 100644 --- a/cli/cmd/vuln_html.go +++ b/cli/cmd/vuln_html.go @@ -32,8 +32,8 @@ import ( "golang.org/x/text/cases" "golang.org/x/text/language" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/databox" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/databox" ) const ( diff --git a/cli/cmd/vulnerability.go b/cli/cmd/vulnerability.go index fb3117196..ce373a5d3 100644 --- a/cli/cmd/vulnerability.go +++ b/cli/cmd/vulnerability.go @@ -23,7 +23,7 @@ import ( "strconv" "strings" - "github.com/lacework/go-sdk/lwseverity" + "github.com/lacework/go-sdk/v2/lwseverity" "github.com/pkg/errors" "github.com/spf13/cobra" flag "github.com/spf13/pflag" diff --git a/cli/cmd/vulnerability_exception_container.go b/cli/cmd/vulnerability_exception_container.go index 46e692137..50059578a 100644 --- a/cli/cmd/vulnerability_exception_container.go +++ b/cli/cmd/vulnerability_exception_container.go @@ -23,7 +23,7 @@ import ( "github.com/AlecAivazis/survey/v2" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func createContainerVulnerabilityException() (string, error) { diff --git a/cli/cmd/vulnerability_exception_host.go b/cli/cmd/vulnerability_exception_host.go index 4011fbc5c..ed6742071 100644 --- a/cli/cmd/vulnerability_exception_host.go +++ b/cli/cmd/vulnerability_exception_host.go @@ -23,7 +23,7 @@ import ( "github.com/AlecAivazis/survey/v2" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func createHostVulnerabilityException() (string, error) { diff --git a/cli/cmd/vulnerability_exceptions_test.go b/cli/cmd/vulnerability_exceptions_test.go index 0a6885e53..4981e0ce9 100644 --- a/cli/cmd/vulnerability_exceptions_test.go +++ b/cli/cmd/vulnerability_exceptions_test.go @@ -23,7 +23,7 @@ import ( "github.com/stretchr/testify/assert" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) func TestBuildVulnerabilityException(t *testing.T) { diff --git a/cli/cmd/vulnerability_test.go b/cli/cmd/vulnerability_test.go index caffc87b0..8d42b7f37 100644 --- a/cli/cmd/vulnerability_test.go +++ b/cli/cmd/vulnerability_test.go @@ -27,8 +27,8 @@ import ( "github.com/fatih/color" "github.com/stretchr/testify/assert" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/capturer" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/capturer" ) func TestOutputContainerVulnerabilityAssessmentNoVulnerabilities(t *testing.T) { diff --git a/cli/cmd/vulnerabilty_exceptions.go b/cli/cmd/vulnerabilty_exceptions.go index 5ac4a8b1f..da55a6f86 100644 --- a/cli/cmd/vulnerabilty_exceptions.go +++ b/cli/cmd/vulnerabilty_exceptions.go @@ -26,8 +26,8 @@ import ( "github.com/AlecAivazis/survey/v2" "github.com/AlecAivazis/survey/v2/core" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/lwseverity" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/lwseverity" "github.com/olekukonko/tablewriter" "github.com/pkg/errors" "github.com/spf13/cobra" diff --git a/cli/main.go b/cli/main.go index 52b393436..6ad80afd0 100644 --- a/cli/main.go +++ b/cli/main.go @@ -27,7 +27,7 @@ import ( "fmt" "os" - "github.com/lacework/go-sdk/cli/cmd" + "github.com/lacework/go-sdk/v2/cli/cmd" ) func main() { diff --git a/go.mod b/go.mod index a778edf3f..e7026c69f 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/lacework/go-sdk +module github.com/lacework/go-sdk/v2 go 1.21 diff --git a/integration/alert_list_test.go b/integration/alert_list_test.go index d7c0bff8c..471f9b210 100644 --- a/integration/alert_list_test.go +++ b/integration/alert_list_test.go @@ -25,7 +25,7 @@ import ( "strings" "testing" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" "github.com/pkg/errors" "github.com/stretchr/testify/assert" ) diff --git a/integration/alert_rules_test.go b/integration/alert_rules_test.go index e53422289..ed8fd3815 100644 --- a/integration/alert_rules_test.go +++ b/integration/alert_rules_test.go @@ -23,7 +23,7 @@ import ( "os" "testing" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" "github.com/stretchr/testify/assert" ) diff --git a/integration/aws_controltower_generation_test.go b/integration/aws_controltower_generation_test.go index 720d79ca7..c4f0a2e64 100644 --- a/integration/aws_controltower_generation_test.go +++ b/integration/aws_controltower_generation_test.go @@ -9,8 +9,8 @@ import ( "testing" "github.com/Netflix/go-expect" - "github.com/lacework/go-sdk/cli/cmd" - "github.com/lacework/go-sdk/lwgenerate/aws_controltower" + "github.com/lacework/go-sdk/v2/cli/cmd" + "github.com/lacework/go-sdk/v2/lwgenerate/aws_controltower" "github.com/stretchr/testify/assert" ) diff --git a/integration/aws_eks_audit_generation_test.go b/integration/aws_eks_audit_generation_test.go index 40a14e95e..a426282d3 100644 --- a/integration/aws_eks_audit_generation_test.go +++ b/integration/aws_eks_audit_generation_test.go @@ -8,10 +8,10 @@ import ( "path/filepath" "testing" - "github.com/lacework/go-sdk/lwgenerate/aws_eks_audit" + "github.com/lacework/go-sdk/v2/lwgenerate/aws_eks_audit" "github.com/Netflix/go-expect" - "github.com/lacework/go-sdk/cli/cmd" + "github.com/lacework/go-sdk/v2/cli/cmd" "github.com/stretchr/testify/assert" ) diff --git a/integration/aws_generation_test.go b/integration/aws_generation_test.go index b5028af54..616c5c7a8 100644 --- a/integration/aws_generation_test.go +++ b/integration/aws_generation_test.go @@ -9,8 +9,8 @@ import ( "testing" "github.com/Netflix/go-expect" - "github.com/lacework/go-sdk/cli/cmd" - "github.com/lacework/go-sdk/lwgenerate/aws" + "github.com/lacework/go-sdk/v2/cli/cmd" + "github.com/lacework/go-sdk/v2/lwgenerate/aws" "github.com/stretchr/testify/assert" ) diff --git a/integration/azure_generation_test.go b/integration/azure_generation_test.go index 0e07e99df..1ab1feb3e 100644 --- a/integration/azure_generation_test.go +++ b/integration/azure_generation_test.go @@ -11,8 +11,8 @@ import ( "time" "github.com/Netflix/go-expect" - "github.com/lacework/go-sdk/cli/cmd" - "github.com/lacework/go-sdk/lwgenerate/azure" + "github.com/lacework/go-sdk/v2/cli/cmd" + "github.com/lacework/go-sdk/v2/lwgenerate/azure" "github.com/stretchr/testify/assert" ) diff --git a/integration/compliance_aws_test.go b/integration/compliance_aws_test.go index 540643687..7f9cac674 100644 --- a/integration/compliance_aws_test.go +++ b/integration/compliance_aws_test.go @@ -24,7 +24,7 @@ import ( "os" "testing" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" "github.com/stretchr/testify/assert" ) diff --git a/integration/context/ctx_cfg.go b/integration/context/ctx_cfg.go index ff7035406..66a4f95f7 100644 --- a/integration/context/ctx_cfg.go +++ b/integration/context/ctx_cfg.go @@ -7,7 +7,7 @@ import ( "strings" "github.com/BurntSushi/toml" - "github.com/lacework/go-sdk/internal/array" + "github.com/lacework/go-sdk/v2/internal/array" ) var ( diff --git a/integration/framework_test.go b/integration/framework_test.go index cf7b3680c..0ac51f796 100644 --- a/integration/framework_test.go +++ b/integration/framework_test.go @@ -40,8 +40,8 @@ import ( "github.com/Netflix/go-expect" "github.com/hinshun/vt10x" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/lwupdater" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/lwupdater" "github.com/stretchr/testify/assert" ) @@ -244,7 +244,7 @@ ERROR Missing CI environment variables. To run the integration tests you need to setup a few environment variables, look - at https://github.com/lacework/go-sdk/tree/main/cli#integration-tests for + at https://github.com/lacework/go-sdk/v2/tree/main/cli#integration-tests for more information. ` diff --git a/integration/gcp_generation_test.go b/integration/gcp_generation_test.go index e1680b1d1..46c88318f 100644 --- a/integration/gcp_generation_test.go +++ b/integration/gcp_generation_test.go @@ -9,8 +9,8 @@ import ( "testing" "github.com/Netflix/go-expect" - "github.com/lacework/go-sdk/cli/cmd" - "github.com/lacework/go-sdk/lwgenerate/gcp" + "github.com/lacework/go-sdk/v2/cli/cmd" + "github.com/lacework/go-sdk/v2/lwgenerate/gcp" "github.com/stretchr/testify/assert" ) diff --git a/integration/generate_oci_test.go b/integration/generate_oci_test.go index e13230532..662b4d73d 100644 --- a/integration/generate_oci_test.go +++ b/integration/generate_oci_test.go @@ -9,8 +9,8 @@ import ( "testing" "github.com/Netflix/go-expect" - "github.com/lacework/go-sdk/cli/cmd" - "github.com/lacework/go-sdk/lwgenerate/oci" + "github.com/lacework/go-sdk/v2/cli/cmd" + "github.com/lacework/go-sdk/v2/lwgenerate/oci" "github.com/stretchr/testify/assert" ) diff --git a/integration/gke_generation_test.go b/integration/gke_generation_test.go index 6f1a3853f..805df97b1 100644 --- a/integration/gke_generation_test.go +++ b/integration/gke_generation_test.go @@ -8,10 +8,10 @@ import ( "path/filepath" "testing" - "github.com/lacework/go-sdk/lwgenerate/gcp" + "github.com/lacework/go-sdk/v2/lwgenerate/gcp" "github.com/Netflix/go-expect" - "github.com/lacework/go-sdk/cli/cmd" + "github.com/lacework/go-sdk/v2/cli/cmd" "github.com/stretchr/testify/assert" ) diff --git a/integration/host_vulnerability_test.go b/integration/host_vulnerability_test.go index 85bd78e10..3a9a2958f 100644 --- a/integration/host_vulnerability_test.go +++ b/integration/host_vulnerability_test.go @@ -32,7 +32,7 @@ import ( "github.com/stretchr/testify/assert" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" ) // persistent host "ip-10-0-1-170.us-west-2.compute.internal" @@ -199,7 +199,7 @@ func TestHostVulnerabilityCommandShowAssessment(t *testing.T) { // fields "Machine ID " + machineID, // @afiune this test is very lacky, it fails some times - // https://github.com/lacework/go-sdk/issues/261 + // https://github.com/lacework/go-sdk/v2/issues/261 "Hostname " + hostname, "Os linux", "Arch amd64", diff --git a/integration/lwupdater_test.go b/integration/lwupdater_test.go index 22939945c..bac0c1d02 100644 --- a/integration/lwupdater_test.go +++ b/integration/lwupdater_test.go @@ -27,7 +27,7 @@ import ( "github.com/stretchr/testify/assert" - "github.com/lacework/go-sdk/lwupdater" + "github.com/lacework/go-sdk/v2/lwupdater" ) func TestCheckErrorEmptyProject(t *testing.T) { diff --git a/integration/report_definitions_create_test.go b/integration/report_definitions_create_test.go index eb747c2f6..dac424089 100644 --- a/integration/report_definitions_create_test.go +++ b/integration/report_definitions_create_test.go @@ -27,7 +27,7 @@ import ( "testing" "github.com/Netflix/go-expect" - "github.com/lacework/go-sdk/cli/cmd" + "github.com/lacework/go-sdk/v2/cli/cmd" "github.com/pkg/errors" "github.com/stretchr/testify/assert" ) diff --git a/integration/report_definitions_test.go b/integration/report_definitions_test.go index 3b4d6d413..0f609aa92 100644 --- a/integration/report_definitions_test.go +++ b/integration/report_definitions_test.go @@ -8,7 +8,7 @@ import ( "os" "testing" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" "github.com/stretchr/testify/assert" ) diff --git a/integration/report_definitions_update_test.go b/integration/report_definitions_update_test.go index e91105982..ea8d1416f 100644 --- a/integration/report_definitions_update_test.go +++ b/integration/report_definitions_update_test.go @@ -28,8 +28,8 @@ import ( "time" "github.com/Netflix/go-expect" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/cli/cmd" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/cli/cmd" "github.com/stretchr/testify/assert" "gopkg.in/yaml.v2" ) diff --git a/integration/resource_groups_test.go b/integration/resource_groups_test.go index b3947f23b..7e8bdb37f 100644 --- a/integration/resource_groups_test.go +++ b/integration/resource_groups_test.go @@ -24,7 +24,7 @@ import ( "github.com/google/uuid" - "github.com/lacework/go-sdk/api" + "github.com/lacework/go-sdk/v2/api" "github.com/pkg/errors" "github.com/stretchr/testify/assert" ) diff --git a/integration/test_resources/cdk/go-component/client.go b/integration/test_resources/cdk/go-component/client.go index 04009afee..30b04fe03 100644 --- a/integration/test_resources/cdk/go-component/client.go +++ b/integration/test_resources/cdk/go-component/client.go @@ -23,7 +23,7 @@ import ( "os" "time" - cdk "github.com/lacework/go-sdk/cli/cdk/go/proto/v1" + cdk "github.com/lacework/go-sdk/v2/cli/cdk/go/proto/v1" "github.com/pkg/errors" "google.golang.org/grpc" "google.golang.org/grpc/credentials/insecure" diff --git a/integration/test_resources/cdk/go-component/main.go b/integration/test_resources/cdk/go-component/main.go index dd891ef53..5a9ad1cef 100644 --- a/integration/test_resources/cdk/go-component/main.go +++ b/integration/test_resources/cdk/go-component/main.go @@ -23,9 +23,9 @@ import ( "os" "time" - "github.com/lacework/go-sdk/api" - componentCDKClient "github.com/lacework/go-sdk/cli/cdk/client/go" - "github.com/lacework/go-sdk/lwlogger" + "github.com/lacework/go-sdk/v2/api" + componentCDKClient "github.com/lacework/go-sdk/v2/cli/cdk/client/go" + "github.com/lacework/go-sdk/v2/lwlogger" "github.com/pkg/errors" ) diff --git a/integration/version_test.go b/integration/version_test.go index a2c72bf3e..bcb774880 100644 --- a/integration/version_test.go +++ b/integration/version_test.go @@ -29,7 +29,7 @@ import ( "github.com/stretchr/testify/assert" - "github.com/lacework/go-sdk/lwupdater" + "github.com/lacework/go-sdk/v2/lwupdater" ) // To test the daily version check we need to set the environment diff --git a/internal/databox/static/scaffoldings/golang/internal/logger/logger.go b/internal/databox/static/scaffoldings/golang/internal/logger/logger.go index 2265196e0..b5b246a39 100644 --- a/internal/databox/static/scaffoldings/golang/internal/logger/logger.go +++ b/internal/databox/static/scaffoldings/golang/internal/logger/logger.go @@ -20,7 +20,7 @@ package logger import ( "os" - "github.com/lacework/go-sdk/lwlogger" + "github.com/lacework/go-sdk/v2/lwlogger" ) // Log allows this component to leverage our Go-SDK lwlogger diff --git a/internal/databox/static/scaffoldings/golang/internal/metric/metric.go b/internal/databox/static/scaffoldings/golang/internal/metric/metric.go index 23e62ce6f..a9b9165a5 100644 --- a/internal/databox/static/scaffoldings/golang/internal/metric/metric.go +++ b/internal/databox/static/scaffoldings/golang/internal/metric/metric.go @@ -7,7 +7,7 @@ import ( "[[.Component]]/internal/logger" "[[.Component]]/internal/version" - cdk "github.com/lacework/go-sdk/cli/cdk/go/proto/v1" + cdk "github.com/lacework/go-sdk/v2/cli/cdk/go/proto/v1" "google.golang.org/grpc" "google.golang.org/grpc/credentials/insecure" ) diff --git a/internal/file/file_test.go b/internal/file/file_test.go index cdcc273de..aa6e8433f 100644 --- a/internal/file/file_test.go +++ b/internal/file/file_test.go @@ -23,7 +23,7 @@ import ( "path" "testing" - "github.com/lacework/go-sdk/internal/file" + "github.com/lacework/go-sdk/v2/internal/file" "github.com/stretchr/testify/assert" ) diff --git a/internal/format/secret_test.go b/internal/format/secret_test.go index 389e2d4b8..7c242ca9a 100644 --- a/internal/format/secret_test.go +++ b/internal/format/secret_test.go @@ -23,7 +23,7 @@ import ( "github.com/stretchr/testify/assert" - "github.com/lacework/go-sdk/internal/format" + "github.com/lacework/go-sdk/v2/internal/format" ) func TestSecret(t *testing.T) { diff --git a/internal/pointer/bool_test.go b/internal/pointer/bool_test.go index e8937513f..677c0e9b9 100644 --- a/internal/pointer/bool_test.go +++ b/internal/pointer/bool_test.go @@ -4,7 +4,7 @@ import ( "testing" "github.com/aws/smithy-go/ptr" - "github.com/lacework/go-sdk/internal/pointer" + "github.com/lacework/go-sdk/v2/internal/pointer" "github.com/stretchr/testify/assert" ) diff --git a/internal/validate/email_test.go b/internal/validate/email_test.go index 19dfbfd3a..51a3e1216 100644 --- a/internal/validate/email_test.go +++ b/internal/validate/email_test.go @@ -3,7 +3,7 @@ package validate_test import ( "testing" - "github.com/lacework/go-sdk/internal/validate" + "github.com/lacework/go-sdk/v2/internal/validate" "github.com/stretchr/testify/assert" ) diff --git a/lwcloud/gcp/resources/folders/folders.go b/lwcloud/gcp/resources/folders/folders.go index c2e3b4d39..d899dfee0 100644 --- a/lwcloud/gcp/resources/folders/folders.go +++ b/lwcloud/gcp/resources/folders/folders.go @@ -23,7 +23,7 @@ import ( "fmt" resourcemanager "cloud.google.com/go/resourcemanager/apiv3" - "github.com/lacework/go-sdk/lwcloud/gcp/helpers" + "github.com/lacework/go-sdk/v2/lwcloud/gcp/helpers" "google.golang.org/api/iterator" "google.golang.org/api/option" diff --git a/lwcloud/gcp/resources/instances/instances.go b/lwcloud/gcp/resources/instances/instances.go index 67dec6684..1dbfe41b1 100644 --- a/lwcloud/gcp/resources/instances/instances.go +++ b/lwcloud/gcp/resources/instances/instances.go @@ -26,10 +26,10 @@ import ( "strings" "time" - helpers "github.com/lacework/go-sdk/lwcloud/gcp/helpers" - projects "github.com/lacework/go-sdk/lwcloud/gcp/resources/projects" + helpers "github.com/lacework/go-sdk/v2/lwcloud/gcp/helpers" + projects "github.com/lacework/go-sdk/v2/lwcloud/gcp/resources/projects" - models "github.com/lacework/go-sdk/lwcloud/gcp/resources/models" + models "github.com/lacework/go-sdk/v2/lwcloud/gcp/resources/models" compute "cloud.google.com/go/compute/apiv1" "cloud.google.com/go/compute/apiv1/computepb" diff --git a/lwcloud/gcp/resources/projects/projects.go b/lwcloud/gcp/resources/projects/projects.go index 8b8470dec..804f320c0 100644 --- a/lwcloud/gcp/resources/projects/projects.go +++ b/lwcloud/gcp/resources/projects/projects.go @@ -22,8 +22,8 @@ import ( "context" "fmt" - "github.com/lacework/go-sdk/lwcloud/gcp/helpers" - folders "github.com/lacework/go-sdk/lwcloud/gcp/resources/folders" + "github.com/lacework/go-sdk/v2/lwcloud/gcp/helpers" + folders "github.com/lacework/go-sdk/v2/lwcloud/gcp/resources/folders" resourcemanager "cloud.google.com/go/resourcemanager/apiv3" resourcemanagerpb "cloud.google.com/go/resourcemanager/apiv3/resourcemanagerpb" diff --git a/lwcomponent/api_info_test.go b/lwcomponent/api_info_test.go index c90b3d99d..c01f72655 100644 --- a/lwcomponent/api_info_test.go +++ b/lwcomponent/api_info_test.go @@ -4,7 +4,7 @@ import ( "testing" "github.com/Masterminds/semver" - "github.com/lacework/go-sdk/lwcomponent" + "github.com/lacework/go-sdk/v2/lwcomponent" "github.com/stretchr/testify/assert" ) diff --git a/lwcomponent/catalog.go b/lwcomponent/catalog.go index 78d852b4f..ea04e1505 100644 --- a/lwcomponent/catalog.go +++ b/lwcomponent/catalog.go @@ -9,8 +9,8 @@ import ( "aead.dev/minisign" "github.com/Masterminds/semver" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/cache" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/cache" "github.com/pkg/errors" ) diff --git a/lwcomponent/catalog_test.go b/lwcomponent/catalog_test.go index 122013b93..6eeaea016 100644 --- a/lwcomponent/catalog_test.go +++ b/lwcomponent/catalog_test.go @@ -10,10 +10,10 @@ import ( "testing" "github.com/Masterminds/semver" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/file" - "github.com/lacework/go-sdk/internal/lacework" - "github.com/lacework/go-sdk/lwcomponent" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/file" + "github.com/lacework/go-sdk/v2/internal/lacework" + "github.com/lacework/go-sdk/v2/lwcomponent" homedir "github.com/mitchellh/go-homedir" "github.com/pkg/errors" "github.com/stretchr/testify/assert" diff --git a/lwcomponent/cdk_component.go b/lwcomponent/cdk_component.go index 259380496..b88b59d37 100644 --- a/lwcomponent/cdk_component.go +++ b/lwcomponent/cdk_component.go @@ -9,7 +9,7 @@ import ( "github.com/Masterminds/semver" "github.com/fatih/color" - "github.com/lacework/go-sdk/internal/file" + "github.com/lacework/go-sdk/v2/internal/file" "github.com/pkg/errors" ) diff --git a/lwcomponent/cdk_component_test.go b/lwcomponent/cdk_component_test.go index f5ab06d4c..f3881fa78 100644 --- a/lwcomponent/cdk_component_test.go +++ b/lwcomponent/cdk_component_test.go @@ -5,7 +5,7 @@ import ( "testing" "github.com/Masterminds/semver" - "github.com/lacework/go-sdk/lwcomponent" + "github.com/lacework/go-sdk/v2/lwcomponent" "github.com/stretchr/testify/assert" ) diff --git a/lwcomponent/component.go b/lwcomponent/component.go index 6d41a8df8..aa2ad01fc 100644 --- a/lwcomponent/component.go +++ b/lwcomponent/component.go @@ -38,10 +38,10 @@ import ( dircopy "github.com/otiai10/copy" "github.com/pkg/errors" - "github.com/lacework/go-sdk/api" - "github.com/lacework/go-sdk/internal/archive" - "github.com/lacework/go-sdk/internal/cache" - "github.com/lacework/go-sdk/internal/file" + "github.com/lacework/go-sdk/v2/api" + "github.com/lacework/go-sdk/v2/internal/archive" + "github.com/lacework/go-sdk/v2/internal/cache" + "github.com/lacework/go-sdk/v2/internal/file" ) // State holds the components specification diff --git a/lwcomponent/component_internal_test.go b/lwcomponent/component_internal_test.go index 0d2e547bd..7245976cd 100644 --- a/lwcomponent/component_internal_test.go +++ b/lwcomponent/component_internal_test.go @@ -32,7 +32,7 @@ import ( "github.com/pkg/errors" "github.com/stretchr/testify/assert" - "github.com/lacework/go-sdk/internal/cache" + "github.com/lacework/go-sdk/v2/internal/cache" ) var ( diff --git a/lwcomponent/component_test.go b/lwcomponent/component_test.go index 591a1c35a..a52a500cd 100644 --- a/lwcomponent/component_test.go +++ b/lwcomponent/component_test.go @@ -33,10 +33,10 @@ import ( "github.com/pkg/errors" "github.com/stretchr/testify/assert" - "github.com/lacework/go-sdk/api" - capturer "github.com/lacework/go-sdk/internal/capturer" - "github.com/lacework/go-sdk/internal/lacework" - "github.com/lacework/go-sdk/lwcomponent" + "github.com/lacework/go-sdk/v2/api" + capturer "github.com/lacework/go-sdk/v2/internal/capturer" + "github.com/lacework/go-sdk/v2/internal/lacework" + "github.com/lacework/go-sdk/v2/lwcomponent" homedir "github.com/mitchellh/go-homedir" ) diff --git a/lwcomponent/error_test.go b/lwcomponent/error_test.go index 73a8b744a..833ba5a9e 100644 --- a/lwcomponent/error_test.go +++ b/lwcomponent/error_test.go @@ -6,7 +6,7 @@ import ( "github.com/pkg/errors" "github.com/stretchr/testify/assert" - "github.com/lacework/go-sdk/lwcomponent" + "github.com/lacework/go-sdk/v2/lwcomponent" ) func TestIsNotFound(t *testing.T) { diff --git a/lwcomponent/host_info.go b/lwcomponent/host_info.go index 31930a579..0642a1633 100644 --- a/lwcomponent/host_info.go +++ b/lwcomponent/host_info.go @@ -9,7 +9,7 @@ import ( "strings" "github.com/Masterminds/semver" - "github.com/lacework/go-sdk/internal/file" + "github.com/lacework/go-sdk/v2/internal/file" "github.com/pkg/errors" ) diff --git a/lwcomponent/http.go b/lwcomponent/http.go index cf08a374d..34b072af6 100644 --- a/lwcomponent/http.go +++ b/lwcomponent/http.go @@ -24,7 +24,7 @@ import ( "time" "github.com/go-resty/resty/v2" - "github.com/lacework/go-sdk/lwlogger" + "github.com/lacework/go-sdk/v2/lwlogger" ) const ( diff --git a/lwcomponent/http_test.go b/lwcomponent/http_test.go index 4b7174001..04a3d24e0 100644 --- a/lwcomponent/http_test.go +++ b/lwcomponent/http_test.go @@ -9,8 +9,8 @@ import ( "github.com/stretchr/testify/assert" - capturer "github.com/lacework/go-sdk/internal/capturer" - "github.com/lacework/go-sdk/lwlogger" + capturer "github.com/lacework/go-sdk/v2/internal/capturer" + "github.com/lacework/go-sdk/v2/lwlogger" ) func TestDownloadFile(t *testing.T) { diff --git a/lwcomponent/staging.go b/lwcomponent/staging.go index 0fa5e0cef..7f1af57e7 100644 --- a/lwcomponent/staging.go +++ b/lwcomponent/staging.go @@ -12,7 +12,7 @@ import ( "strings" "github.com/Masterminds/semver" - "github.com/lacework/go-sdk/internal/file" + "github.com/lacework/go-sdk/v2/internal/file" dircopy "github.com/otiai10/copy" "github.com/pkg/errors" ) diff --git a/lwcomponent/staging_test.go b/lwcomponent/staging_test.go index df5c1365c..ad80f642a 100644 --- a/lwcomponent/staging_test.go +++ b/lwcomponent/staging_test.go @@ -10,7 +10,7 @@ import ( "path/filepath" "testing" - "github.com/lacework/go-sdk/lwcomponent" + "github.com/lacework/go-sdk/v2/lwcomponent" "github.com/stretchr/testify/assert" ) diff --git a/lwconfig/README.md b/lwconfig/README.md index a76ec6b4d..0448d8a94 100644 --- a/lwconfig/README.md +++ b/lwconfig/README.md @@ -6,12 +6,12 @@ A Go library to manage the Lacework configuration file (`$HOME/.lacework.toml`) Download the library into your `$GOPATH`: - $ go get github.com/lacework/go-sdk/lwconfig + $ go get github.com/lacework/go-sdk/v2/lwconfig Import the library into your tool: ```go -import "github.com/lacework/go-sdk/lwconfig" +import "github.com/lacework/go-sdk/v2/lwconfig" ``` ## Examples @@ -24,7 +24,7 @@ import ( "fmt" "os" - "github.com/lacework/go-sdk/lwconfig" + "github.com/lacework/go-sdk/v2/lwconfig" ) func main() { diff --git a/lwconfig/_examples/main.go b/lwconfig/_examples/main.go index 59189c810..ac6c6ba6d 100644 --- a/lwconfig/_examples/main.go +++ b/lwconfig/_examples/main.go @@ -4,7 +4,7 @@ import ( "fmt" "os" - "github.com/lacework/go-sdk/lwconfig" + "github.com/lacework/go-sdk/v2/lwconfig" ) func main() { diff --git a/lwdomain/README.md b/lwdomain/README.md index f7eec8273..cc1393eae 100644 --- a/lwdomain/README.md +++ b/lwdomain/README.md @@ -7,12 +7,12 @@ it is an internal account. Download the library into your `$GOPATH`: - $ go get github.com/lacework/go-sdk/lwdomain + $ go get github.com/lacework/go-sdk/v2/lwdomain Import the library into your tool: ```go -import "github.com/lacework/go-sdk/lwdomain" +import "github.com/lacework/go-sdk/v2/lwdomain" ``` ## Examples @@ -27,7 +27,7 @@ import ( "fmt" "os" - "github.com/lacework/go-sdk/lwdomain" + "github.com/lacework/go-sdk/v2/lwdomain" ) func main() { diff --git a/lwdomain/domain_test.go b/lwdomain/domain_test.go index bb75dcbcc..da0f78c0c 100644 --- a/lwdomain/domain_test.go +++ b/lwdomain/domain_test.go @@ -24,7 +24,7 @@ import ( "github.com/stretchr/testify/assert" - subject "github.com/lacework/go-sdk/lwdomain" + subject "github.com/lacework/go-sdk/v2/lwdomain" ) func TestDomains(t *testing.T) { diff --git a/lwgenerate/_examples/aws/main.go b/lwgenerate/_examples/aws/main.go index 7d95a6119..1bf37ffbf 100644 --- a/lwgenerate/_examples/aws/main.go +++ b/lwgenerate/_examples/aws/main.go @@ -4,7 +4,7 @@ import ( "fmt" "os" - "github.com/lacework/go-sdk/lwgenerate/aws" + "github.com/lacework/go-sdk/v2/lwgenerate/aws" ) func basic() { diff --git a/lwgenerate/_examples/aws_controltower/main.go b/lwgenerate/_examples/aws_controltower/main.go index 7c61fd6c5..f13549b30 100644 --- a/lwgenerate/_examples/aws_controltower/main.go +++ b/lwgenerate/_examples/aws_controltower/main.go @@ -4,7 +4,7 @@ import ( "fmt" "os" - "github.com/lacework/go-sdk/lwgenerate/aws_controltower" + "github.com/lacework/go-sdk/v2/lwgenerate/aws_controltower" ) func controlTowerWithCloudtrail() { diff --git a/lwgenerate/_examples/azure/main.go b/lwgenerate/_examples/azure/main.go index 852268e8e..927a0d0b2 100644 --- a/lwgenerate/_examples/azure/main.go +++ b/lwgenerate/_examples/azure/main.go @@ -4,7 +4,7 @@ import ( "fmt" "os" - "github.com/lacework/go-sdk/lwgenerate/azure" + "github.com/lacework/go-sdk/v2/lwgenerate/azure" ) func ActivityLogWithoutConfig() { diff --git a/lwgenerate/_examples/gcp/main.go b/lwgenerate/_examples/gcp/main.go index 352d2bd82..a2382b224 100644 --- a/lwgenerate/_examples/gcp/main.go +++ b/lwgenerate/_examples/gcp/main.go @@ -4,7 +4,7 @@ import ( "fmt" "os" - "github.com/lacework/go-sdk/lwgenerate/gcp" + "github.com/lacework/go-sdk/v2/lwgenerate/gcp" ) func basic() { diff --git a/lwgenerate/_examples/hcl/main.go b/lwgenerate/_examples/hcl/main.go index 822fa3d7e..a19a85700 100644 --- a/lwgenerate/_examples/hcl/main.go +++ b/lwgenerate/_examples/hcl/main.go @@ -4,7 +4,7 @@ import ( "fmt" "os" - "github.com/lacework/go-sdk/lwgenerate" + "github.com/lacework/go-sdk/v2/lwgenerate" ) func exampleModule() { diff --git a/lwgenerate/aws/aws.go b/lwgenerate/aws/aws.go index e9ea8a5f9..6cef6acd6 100644 --- a/lwgenerate/aws/aws.go +++ b/lwgenerate/aws/aws.go @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/hcl/v2/hclwrite" "github.com/pkg/errors" - "github.com/lacework/go-sdk/lwgenerate" + "github.com/lacework/go-sdk/v2/lwgenerate" ) type ExistingIamRoleDetails struct { diff --git a/lwgenerate/aws/aws_test.go b/lwgenerate/aws/aws_test.go index 3c445947b..414958d66 100644 --- a/lwgenerate/aws/aws_test.go +++ b/lwgenerate/aws/aws_test.go @@ -5,7 +5,7 @@ import ( "testing" "github.com/hashicorp/hcl/v2/hclwrite" - "github.com/lacework/go-sdk/lwgenerate" + "github.com/lacework/go-sdk/v2/lwgenerate" "github.com/stretchr/testify/assert" ) diff --git a/lwgenerate/aws_controltower/aws_controltower.go b/lwgenerate/aws_controltower/aws_controltower.go index 9a91b3f3a..d8f924c08 100644 --- a/lwgenerate/aws_controltower/aws_controltower.go +++ b/lwgenerate/aws_controltower/aws_controltower.go @@ -4,7 +4,7 @@ import ( "encoding/json" "github.com/hashicorp/hcl/v2/hclwrite" - "github.com/lacework/go-sdk/lwgenerate" + "github.com/lacework/go-sdk/v2/lwgenerate" "github.com/pkg/errors" ) diff --git a/lwgenerate/aws_eks_audit/aws_eks_audit.go b/lwgenerate/aws_eks_audit/aws_eks_audit.go index b9a0cf384..e96578990 100644 --- a/lwgenerate/aws_eks_audit/aws_eks_audit.go +++ b/lwgenerate/aws_eks_audit/aws_eks_audit.go @@ -6,7 +6,7 @@ import ( "github.com/hashicorp/hcl/v2/hclsyntax" "github.com/hashicorp/hcl/v2/hclwrite" - "github.com/lacework/go-sdk/lwgenerate" + "github.com/lacework/go-sdk/v2/lwgenerate" "github.com/pkg/errors" "github.com/zclconf/go-cty/cty" ) diff --git a/lwgenerate/azure/azure.go b/lwgenerate/azure/azure.go index e1fb2f987..ff1516813 100644 --- a/lwgenerate/azure/azure.go +++ b/lwgenerate/azure/azure.go @@ -3,7 +3,7 @@ package azure import ( "github.com/hashicorp/hcl/v2/hclwrite" - "github.com/lacework/go-sdk/lwgenerate" + "github.com/lacework/go-sdk/v2/lwgenerate" "github.com/pkg/errors" ) diff --git a/lwgenerate/azure/azure_test.go b/lwgenerate/azure/azure_test.go index fab832a66..5fede4d3c 100644 --- a/lwgenerate/azure/azure_test.go +++ b/lwgenerate/azure/azure_test.go @@ -7,8 +7,8 @@ import ( "testing" "github.com/hashicorp/hcl/v2/hclwrite" - "github.com/lacework/go-sdk/lwgenerate" - "github.com/lacework/go-sdk/lwgenerate/azure" + "github.com/lacework/go-sdk/v2/lwgenerate" + "github.com/lacework/go-sdk/v2/lwgenerate/azure" "github.com/stretchr/testify/assert" ) diff --git a/lwgenerate/gcp/gcp.go b/lwgenerate/gcp/gcp.go index 791b83ec0..88950aa51 100644 --- a/lwgenerate/gcp/gcp.go +++ b/lwgenerate/gcp/gcp.go @@ -6,8 +6,8 @@ import ( "sort" "github.com/hashicorp/hcl/v2/hclwrite" - "github.com/lacework/go-sdk/internal/unique" - "github.com/lacework/go-sdk/lwgenerate" + "github.com/lacework/go-sdk/v2/internal/unique" + "github.com/lacework/go-sdk/v2/lwgenerate" "github.com/pkg/errors" ) diff --git a/lwgenerate/gcp/gcp_test.go b/lwgenerate/gcp/gcp_test.go index 0865b3a19..607dc1001 100644 --- a/lwgenerate/gcp/gcp_test.go +++ b/lwgenerate/gcp/gcp_test.go @@ -5,11 +5,11 @@ import ( "testing" "github.com/hashicorp/hcl/v2/hclwrite" - "github.com/lacework/go-sdk/lwgenerate" + "github.com/lacework/go-sdk/v2/lwgenerate" "github.com/stretchr/testify/assert" - "github.com/lacework/go-sdk/lwgenerate/gcp" + "github.com/lacework/go-sdk/v2/lwgenerate/gcp" ) const ( diff --git a/lwgenerate/gcp/gke.go b/lwgenerate/gcp/gke.go index 0413b3ca9..808a917fb 100644 --- a/lwgenerate/gcp/gke.go +++ b/lwgenerate/gcp/gke.go @@ -4,7 +4,7 @@ import ( "fmt" "github.com/hashicorp/hcl/v2/hclwrite" - "github.com/lacework/go-sdk/lwgenerate" + "github.com/lacework/go-sdk/v2/lwgenerate" "github.com/pkg/errors" ) diff --git a/lwgenerate/gcp/gke_test.go b/lwgenerate/gcp/gke_test.go index 06802c4c1..3661a12d4 100644 --- a/lwgenerate/gcp/gke_test.go +++ b/lwgenerate/gcp/gke_test.go @@ -3,7 +3,7 @@ package gcp_test import ( "testing" - "github.com/lacework/go-sdk/lwgenerate/gcp" + "github.com/lacework/go-sdk/v2/lwgenerate/gcp" "github.com/stretchr/testify/assert" ) diff --git a/lwgenerate/gcp/service_account.go b/lwgenerate/gcp/service_account.go index aba498180..d277d9daf 100644 --- a/lwgenerate/gcp/service_account.go +++ b/lwgenerate/gcp/service_account.go @@ -6,7 +6,7 @@ import ( "io" "os" - "github.com/lacework/go-sdk/internal/file" + "github.com/lacework/go-sdk/v2/internal/file" "github.com/pkg/errors" ) diff --git a/lwgenerate/hcl_test.go b/lwgenerate/hcl_test.go index 4263e24c7..a30595dda 100644 --- a/lwgenerate/hcl_test.go +++ b/lwgenerate/hcl_test.go @@ -6,7 +6,7 @@ import ( "github.com/hashicorp/hcl/v2" "github.com/hashicorp/hcl/v2/hclwrite" - "github.com/lacework/go-sdk/lwgenerate" + "github.com/lacework/go-sdk/v2/lwgenerate" "github.com/stretchr/testify/assert" ) diff --git a/lwgenerate/oci/oci.go b/lwgenerate/oci/oci.go index 433e6e519..f5128f517 100644 --- a/lwgenerate/oci/oci.go +++ b/lwgenerate/oci/oci.go @@ -2,7 +2,7 @@ package oci import ( "github.com/hashicorp/hcl/v2/hclwrite" - "github.com/lacework/go-sdk/lwgenerate" + "github.com/lacework/go-sdk/v2/lwgenerate" "github.com/pkg/errors" ) diff --git a/lwlogger/README.md b/lwlogger/README.md index efb9e2b8c..c95b6dee7 100644 --- a/lwlogger/README.md +++ b/lwlogger/README.md @@ -6,12 +6,12 @@ A wrapper Logger Go package for Lacework projects based of [zap](https://github. Download the library into your `$GOPATH`: - $ go get github.com/lacework/go-sdk/lwlogger + $ go get github.com/lacework/go-sdk/v2/lwlogger Import the library into your tool: ```go -import "github.com/lacework/go-sdk/lwlogger" +import "github.com/lacework/go-sdk/v2/lwlogger" ``` ## Environment Variables @@ -32,7 +32,7 @@ displayed: ```go package main -import "github.com/lacework/go-sdk/lwlogger" +import "github.com/lacework/go-sdk/v2/lwlogger" func main() { lwL := lwlogger.New("INFO") diff --git a/lwlogger/_examples/io-writer/main.go b/lwlogger/_examples/io-writer/main.go index 177f8370f..545b1987f 100644 --- a/lwlogger/_examples/io-writer/main.go +++ b/lwlogger/_examples/io-writer/main.go @@ -6,7 +6,7 @@ import ( "os" "syscall" - "github.com/lacework/go-sdk/lwlogger" + "github.com/lacework/go-sdk/v2/lwlogger" ) func main() { diff --git a/lwlogger/_examples/simple-usage/main.go b/lwlogger/_examples/simple-usage/main.go index 7dc085ca3..ae6f7f694 100644 --- a/lwlogger/_examples/simple-usage/main.go +++ b/lwlogger/_examples/simple-usage/main.go @@ -1,6 +1,6 @@ package main -import "github.com/lacework/go-sdk/lwlogger" +import "github.com/lacework/go-sdk/v2/lwlogger" func main() { lwL := lwlogger.New("INFO") diff --git a/lwlogger/logger_test.go b/lwlogger/logger_test.go index 7bd7b520d..6d85784a2 100644 --- a/lwlogger/logger_test.go +++ b/lwlogger/logger_test.go @@ -27,8 +27,8 @@ import ( "github.com/stretchr/testify/assert" "go.uber.org/zap" - "github.com/lacework/go-sdk/internal/capturer" - "github.com/lacework/go-sdk/lwlogger" + "github.com/lacework/go-sdk/v2/internal/capturer" + "github.com/lacework/go-sdk/v2/lwlogger" ) func TestLoggerNew(t *testing.T) { diff --git a/lwrunner/runner.go b/lwrunner/runner.go index 9e7fd82d6..8e1a019e1 100644 --- a/lwrunner/runner.go +++ b/lwrunner/runner.go @@ -28,7 +28,7 @@ import ( "os" "path" - "github.com/lacework/go-sdk/internal/file" + "github.com/lacework/go-sdk/v2/internal/file" homedir "github.com/mitchellh/go-homedir" "golang.org/x/crypto/ssh" "golang.org/x/crypto/ssh/knownhosts" diff --git a/lwrunner/runner_test.go b/lwrunner/runner_test.go index 2a1052c83..9a629b7d3 100644 --- a/lwrunner/runner_test.go +++ b/lwrunner/runner_test.go @@ -30,7 +30,7 @@ import ( "github.com/stretchr/testify/assert" "golang.org/x/crypto/ssh" - "github.com/lacework/go-sdk/lwrunner" + "github.com/lacework/go-sdk/v2/lwrunner" ) func TestLwRunnerNew(t *testing.T) { diff --git a/lwseverity/severity_test.go b/lwseverity/severity_test.go index e9a0ffae6..37fe20575 100644 --- a/lwseverity/severity_test.go +++ b/lwseverity/severity_test.go @@ -3,7 +3,7 @@ package lwseverity_test import ( "testing" - "github.com/lacework/go-sdk/lwseverity" + "github.com/lacework/go-sdk/v2/lwseverity" "github.com/stretchr/testify/assert" ) diff --git a/lwtime/README.md b/lwtime/README.md index 64a380119..17245a1ab 100644 --- a/lwtime/README.md +++ b/lwtime/README.md @@ -6,12 +6,12 @@ A simple relative and natural time package. Download the library into your `$GOPATH`: - $ go get github.com/lacework/go-sdk/lwtime + $ go get github.com/lacework/go-sdk/v2/lwtime Import the library: ```go -import "github.com/lacework/go-sdk/lwtime" +import "github.com/lacework/go-sdk/v2/lwtime" ``` ## Relative Time Specifiers @@ -26,7 +26,7 @@ import ( "fmt" "os" - "github.com/lacework/go-sdk/lwtime" + "github.com/lacework/go-sdk/v2/lwtime" ) func main() { @@ -77,7 +77,7 @@ import ( "fmt" "os" - "github.com/lacework/go-sdk/lwtime" + "github.com/lacework/go-sdk/v2/lwtime" ) func main() { diff --git a/lwtime/_examples/natural-time/main.go b/lwtime/_examples/natural-time/main.go index dd5f043b9..121b1794c 100644 --- a/lwtime/_examples/natural-time/main.go +++ b/lwtime/_examples/natural-time/main.go @@ -4,7 +4,7 @@ import ( "fmt" "os" - "github.com/lacework/go-sdk/lwtime" + "github.com/lacework/go-sdk/v2/lwtime" ) func main() { diff --git a/lwtime/_examples/relative-time/main.go b/lwtime/_examples/relative-time/main.go index 304ccd9bf..5f9deb3cc 100644 --- a/lwtime/_examples/relative-time/main.go +++ b/lwtime/_examples/relative-time/main.go @@ -4,7 +4,7 @@ import ( "fmt" "os" - "github.com/lacework/go-sdk/lwtime" + "github.com/lacework/go-sdk/v2/lwtime" ) func main() { diff --git a/lwtime/nattime_test.go b/lwtime/nattime_test.go index a39e42631..f9195ff2f 100644 --- a/lwtime/nattime_test.go +++ b/lwtime/nattime_test.go @@ -21,7 +21,7 @@ package lwtime_test import ( "testing" - "github.com/lacework/go-sdk/lwtime" + "github.com/lacework/go-sdk/v2/lwtime" "github.com/stretchr/testify/assert" ) diff --git a/lwtime/reltime_test.go b/lwtime/reltime_test.go index 4890c0b94..585fe4e01 100644 --- a/lwtime/reltime_test.go +++ b/lwtime/reltime_test.go @@ -23,7 +23,7 @@ import ( "testing" "time" - "github.com/lacework/go-sdk/lwtime" + "github.com/lacework/go-sdk/v2/lwtime" "github.com/stretchr/testify/assert" ) diff --git a/lwupdater/README.md b/lwupdater/README.md index 8a70c5e5a..32a00216b 100644 --- a/lwupdater/README.md +++ b/lwupdater/README.md @@ -6,12 +6,12 @@ A Go library to check for available updates of Lacework projects. Download the library into your `$GOPATH`: - $ go get github.com/lacework/go-sdk/lwupdater + $ go get github.com/lacework/go-sdk/v2/lwupdater Import the library into your tool: ```go -import "github.com/lacework/go-sdk/lwupdater" +import "github.com/lacework/go-sdk/v2/lwupdater" ``` ## Examples @@ -23,7 +23,7 @@ package main import ( "fmt" - "github.com/lacework/go-sdk/lwupdater" + "github.com/lacework/go-sdk/v2/lwupdater" ) func main() { diff --git a/lwupdater/_examples/main.go b/lwupdater/_examples/main.go index 745e0ae15..a5503e1b0 100644 --- a/lwupdater/_examples/main.go +++ b/lwupdater/_examples/main.go @@ -3,7 +3,7 @@ package main import ( "fmt" - "github.com/lacework/go-sdk/lwupdater" + "github.com/lacework/go-sdk/v2/lwupdater" ) func main() { diff --git a/lwupdater/updater.go b/lwupdater/updater.go index c0510da3d..5ab1d58cc 100644 --- a/lwupdater/updater.go +++ b/lwupdater/updater.go @@ -30,7 +30,7 @@ import ( "time" "github.com/cenkalti/backoff/v4" - "github.com/lacework/go-sdk/lwlogger" + "github.com/lacework/go-sdk/v2/lwlogger" "github.com/pkg/errors" ) diff --git a/scripts/codefresh.ps1 b/scripts/codefresh.ps1 index 99f48b47d..e110bf6b9 100644 --- a/scripts/codefresh.ps1 +++ b/scripts/codefresh.ps1 @@ -16,8 +16,8 @@ go install gotest.tools/gotestsum@v1.7.0 Write-Host "Building Lacework CLI binaries." $env:GOFLAGS = '-mod=vendor' $env:CGO_ENABLED = 0 -gox -output="bin/lacework-cli-{{.OS}}-{{.Arch}}" -os="windows" -arch="amd64 386" github.com/lacework/go-sdk/cli +gox -output="bin/lacework-cli-{{.OS}}-{{.Arch}}" -os="windows" -arch="amd64 386" github.com/lacework/go-sdk/v2/cli Write-Host "Running integrations tests." $env:Path += ";$pwd\bin" -gotestsum -- -v github.com/lacework/go-sdk/integration -timeout 30m -tags="account vulnerability agent_token alert_rules compliance configure event help integration migration policy query version generation" +gotestsum -- -v github.com/lacework/go-sdk/v2/integration -timeout 30m -tags="account vulnerability agent_token alert_rules compliance configure event help integration migration policy query version generation" diff --git a/scripts/docs/doc_gen.go b/scripts/docs/doc_gen.go index 6013550b0..3e0f7d286 100644 --- a/scripts/docs/doc_gen.go +++ b/scripts/docs/doc_gen.go @@ -3,7 +3,7 @@ package main import ( "fmt" - "github.com/lacework/go-sdk/cli/cmd" + "github.com/lacework/go-sdk/v2/cli/cmd" ) // diff --git a/scripts/integration_test_ctx.sh b/scripts/integration_test_ctx.sh index 308c0a419..da7088248 100755 --- a/scripts/integration_test_ctx.sh +++ b/scripts/integration_test_ctx.sh @@ -23,7 +23,7 @@ run_integration_tests(){ # Run integration tests matching build tags log "Running tests with tags ${TAGS}" - PATH="${PWD}/bin:${PATH}" gotestsum -- -v github.com/lacework/go-sdk/integration -timeout 30m -tags="${TAGS}" + PATH="${PWD}/bin:${PATH}" gotestsum -- -v github.com/lacework/go-sdk/v2/integration -timeout 30m -tags="${TAGS}" } log() { diff --git a/scripts/prepare_test_resources.sh b/scripts/prepare_test_resources.sh index 7cc804b08..3141252c2 100755 --- a/scripts/prepare_test_resources.sh +++ b/scripts/prepare_test_resources.sh @@ -33,7 +33,7 @@ go_component() { -os="linux windows" \ -arch="amd64 386" \ -osarch="darwin/amd64 darwin/arm64 linux/arm linux/arm64" \ - github.com/lacework/go-sdk/integration/test_resources/cdk/go-component + github.com/lacework/go-sdk/v2/integration/test_resources/cdk/go-component }