From 3dd364912e64c9fc44242ccbf97030ff382535a4 Mon Sep 17 00:00:00 2001 From: Darren <75614232+dmurray-lacework@users.noreply.github.com> Date: Sat, 4 Dec 2021 01:39:58 +0000 Subject: [PATCH] chore: run make go-vendor (#241) Signed-off-by: Darren Murray --- go.sum | 9 --- .../api/report_rule_notification_types.go | 63 +++++-------------- 2 files changed, 15 insertions(+), 57 deletions(-) diff --git a/go.sum b/go.sum index f04288fe..76cc8cc5 100644 --- a/go.sum +++ b/go.sum @@ -551,7 +551,6 @@ github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4= github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= github.com/hashicorp/hcl/v2 v2.3.0/go.mod h1:d+FwDBbOLvpAM3Z6J7gPj/VoAGkNe/gm352ZhjJ/Zv8= -github.com/hashicorp/hcl/v2 v2.9.1 h1:eOy4gREY0/ZQHNItlfuEZqtcQbXIxzojlP301hDpnac= github.com/hashicorp/hcl/v2 v2.9.1/go.mod h1:FwWsfWEjyV/CMj8s/gqAuiviY72rJ1/oayI9WftqcKg= github.com/hashicorp/hcl/v2 v2.10.1 h1:h4Xx4fsrRE26ohAk/1iGF/JBqRQbyUqu5Lvj60U54ys= github.com/hashicorp/hcl/v2 v2.10.1/go.mod h1:FwWsfWEjyV/CMj8s/gqAuiviY72rJ1/oayI9WftqcKg= @@ -578,7 +577,6 @@ github.com/hashicorp/yamux v0.0.0-20200609203250-aecfd211c9ce/go.mod h1:+NfK9FKe github.com/hinshun/vt10x v0.0.0-20180616224451-1954e6464174/go.mod h1:DqJ97dSdRW1W22yXSB90986pcOyQ7r45iio1KN2ez1A= github.com/hinshun/vt10x v0.0.0-20180809195222-d55458df857c/go.mod h1:DqJ97dSdRW1W22yXSB90986pcOyQ7r45iio1KN2ez1A= github.com/hokaccha/go-prettyjson v0.0.0-20190818114111-108c894c2c0e/go.mod h1:pFlLw2CfqZiIBOx6BuCeRLCrfxBJipTY0nIOF/VbGcI= -github.com/honeycombio/libhoney-go v1.15.5/go.mod h1:8NyBoM746bz+nw3yQzQF8gtJO/z4mkr/MD5C4r4uC2Y= github.com/honeycombio/libhoney-go v1.15.6/go.mod h1:8NyBoM746bz+nw3yQzQF8gtJO/z4mkr/MD5C4r4uC2Y= github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= github.com/huandu/xstrings v1.3.2/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE= @@ -649,12 +647,6 @@ github.com/kylelemons/godebug v0.0.0-20170820004349-d65d576e9348/go.mod h1:B69LE github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/kyokomi/emoji/v2 v2.2.8/go.mod h1:JUcn42DTdsXJo1SWanHh4HKDEyPaR5CqkmoirZZP9qE= -github.com/lacework/go-sdk v0.19.0 h1:KJiFgKDpgxD7pMRuvLo5p3wALuywGMujDN6N60Rl6H0= -github.com/lacework/go-sdk v0.19.0/go.mod h1:izb0r7jZ9EA1y4O4P8Cq7b3coQzmry2TizQ0DKXLEOg= -github.com/lacework/go-sdk v0.21.1-0.20211119005311-30637bcce5b7 h1:EuCiTPgrJjiwH33L4DnDlzh6M7gNN1I3jZnmFqhPi7o= -github.com/lacework/go-sdk v0.21.1-0.20211119005311-30637bcce5b7/go.mod h1:h2lPPxD2001YfAuaJjK0nbCi/IDOqACEYPdaXrwJtAE= -github.com/lacework/go-sdk v0.22.1-0.20211124024508-e12f02235699 h1:QrsCRQzyvYOEkzDX0T8hatMvK+YT/eKKpvgjp24o8R8= -github.com/lacework/go-sdk v0.22.1-0.20211124024508-e12f02235699/go.mod h1:nHJGElQ4mz+7e1wkUT/bNQ0qhzIfqj6QrI9afm1Yvak= github.com/lacework/go-sdk v0.22.1-0.20211129140431-f37b91349c03 h1:S/xheRUDbLChxScHZ+uX9fT00vXI3Vpk8q41D3Ci6qA= github.com/lacework/go-sdk v0.22.1-0.20211129140431-f37b91349c03/go.mod h1:nHJGElQ4mz+7e1wkUT/bNQ0qhzIfqj6QrI9afm1Yvak= github.com/magiconair/properties v1.8.0/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= @@ -945,7 +937,6 @@ github.com/zclconf/go-cty v1.2.0/go.mod h1:hOPWgoHbaTUnI5k4D2ld+GRpFJSCe6bCM7m1q github.com/zclconf/go-cty v1.2.1/go.mod h1:hOPWgoHbaTUnI5k4D2ld+GRpFJSCe6bCM7m1q/N4PQ8= github.com/zclconf/go-cty v1.8.0/go.mod h1:vVKLxnk3puL4qRAv72AO+W99LUD4da90g3uUAzyuvAk= github.com/zclconf/go-cty v1.8.1/go.mod h1:vVKLxnk3puL4qRAv72AO+W99LUD4da90g3uUAzyuvAk= -github.com/zclconf/go-cty v1.8.4 h1:pwhhz5P+Fjxse7S7UriBrMu6AUJSZM5pKqGem1PjGAs= github.com/zclconf/go-cty v1.8.4/go.mod h1:vVKLxnk3puL4qRAv72AO+W99LUD4da90g3uUAzyuvAk= github.com/zclconf/go-cty v1.10.0 h1:mp9ZXQeIcN8kAwuqorjH+Q+njbJKjLrvB2yIh4q7U+0= github.com/zclconf/go-cty v1.10.0/go.mod h1:vVKLxnk3puL4qRAv72AO+W99LUD4da90g3uUAzyuvAk= diff --git a/vendor/github.com/lacework/go-sdk/api/report_rule_notification_types.go b/vendor/github.com/lacework/go-sdk/api/report_rule_notification_types.go index 22036469..77a29d75 100644 --- a/vendor/github.com/lacework/go-sdk/api/report_rule_notification_types.go +++ b/vendor/github.com/lacework/go-sdk/api/report_rule_notification_types.go @@ -22,13 +22,12 @@ import ( "encoding/json" "fmt" - "github.com/mitchellh/mapstructure" "github.com/fatih/structs" + "github.com/mitchellh/mapstructure" "github.com/pkg/errors" ) type reportRuleNotification interface { - allNotifications() ReportRuleNotificationTypes ToMap() map[string]bool } @@ -114,8 +113,8 @@ type GcpReportRuleNotifications struct { GcpSocRev2 bool `json:"gcpSocRev2"` } -func (gcp GcpReportRuleNotifications) allNotifications() ReportRuleNotificationTypes { - return ReportRuleNotificationTypes{ +func (gcp GcpReportRuleNotifications) allNotifications() GcpReportRuleNotifications { + return GcpReportRuleNotifications{ GcpCis: true, GcpHipaa: true, GcpHipaaRev2: true, @@ -144,8 +143,8 @@ type AwsReportRuleNotifications struct { AwsSocRev2 bool `json:"awsSocRev2"` } -func (aws AwsReportRuleNotifications) allNotifications() ReportRuleNotificationTypes { - return ReportRuleNotificationTypes{ +func (aws AwsReportRuleNotifications) allNotifications() AwsReportRuleNotifications { + return AwsReportRuleNotifications{ AwsCisS3: true, AwsHipaa: true, AwsIso2700: true, @@ -168,13 +167,12 @@ type AzureReportRuleNotifications struct { AzureSoc bool `json:"azureSoc"` } -func (az AzureReportRuleNotifications) allNotifications() ReportRuleNotificationTypes { - return ReportRuleNotificationTypes{ - AzureActivityLogEvents: true, - AzureCis: true, - AzureCis131: true, - AzurePci: true, - AzureSoc: true, +func (az AzureReportRuleNotifications) allNotifications() AzureReportRuleNotifications { + return AzureReportRuleNotifications{ + AzureCis: true, + AzureCis131: true, + AzurePci: true, + AzureSoc: true, } } @@ -195,8 +193,8 @@ type DailyEventsReportRuleNotifications struct { GcpComplianceEvents bool `json:"gcpComplianceEvents"` } -func (daily DailyEventsReportRuleNotifications) allNotifications() ReportRuleNotificationTypes { - return ReportRuleNotificationTypes{ +func (daily DailyEventsReportRuleNotifications) allNotifications() DailyEventsReportRuleNotifications { + return DailyEventsReportRuleNotifications{ AgentEvents: true, OpenShiftCompliance: true, OpenShiftComplianceEvents: true, @@ -218,8 +216,8 @@ type WeeklyEventsReportRuleNotifications struct { TrendReport bool `json:"trendReport"` } -func (weekly WeeklyEventsReportRuleNotifications) allNotifications() ReportRuleNotificationTypes { - return ReportRuleNotificationTypes{ +func (weekly WeeklyEventsReportRuleNotifications) allNotifications() WeeklyEventsReportRuleNotifications { + return WeeklyEventsReportRuleNotifications{ TrendReport: true, } } @@ -269,34 +267,3 @@ func (all ReportRuleNotificationTypes) allNotifications() ReportRuleNotification func (all ReportRuleNotificationTypes) ToMap() map[string]bool { return reportRuleNotificationToMap(all) } - - -func (all ReportRuleNotificationTypes) Aws() AwsReportRuleNotifications { - aws := AwsReportRuleNotifications{} - TransformReportRuleNotification(all.ToMap(), aws) - return aws -} - -func (all ReportRuleNotificationTypes) Gcp() GcpReportRuleNotifications { - gcp := GcpReportRuleNotifications{} - TransformReportRuleNotification(all.ToMap(), &gcp) - return gcp -} - -func (all ReportRuleNotificationTypes) Azure() AzureReportRuleNotifications { - azure := AzureReportRuleNotifications{} - TransformReportRuleNotification(all.ToMap(), &azure) - return azure -} - -func (all ReportRuleNotificationTypes) Daily() DailyEventsReportRuleNotifications { - daily := DailyEventsReportRuleNotifications{} - TransformReportRuleNotification(all.ToMap(), &daily) - return daily -} - -func (all ReportRuleNotificationTypes) Weekly() WeeklyEventsReportRuleNotifications { - weekly := WeeklyEventsReportRuleNotifications{} - TransformReportRuleNotification(all.ToMap(), &weekly) - return weekly -}