Skip to content

Commit

Permalink
[CLD-7311] Migrate all lambda functions from Opsgenie to Pagerduty (#26)
Browse files Browse the repository at this point in the history
* CLD-7311 Migrate all lambda functions from Opsgenie to Pagerduty

* CLD-7311 Fix logging

* CLD-7311 Fix dependencies

* CLD-7311 Fix broken code

---------

Co-authored-by: Stylianos Rigas <[email protected]>
  • Loading branch information
stylianosrigas and Stylianos Rigas authored Mar 28, 2024
1 parent 5052673 commit 59ef61a
Show file tree
Hide file tree
Showing 16 changed files with 304 additions and 355 deletions.
10 changes: 4 additions & 6 deletions alert-elb-cloudwatch-alarm/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,12 @@ module github.com/mattermost/mattermost-cloud-lambdas/alert-elb-cloudwatch-alarm
go 1.21

require (
github.com/aws/aws-lambda-go v1.41.0
github.com/opsgenie/opsgenie-go-sdk-v2 v1.2.22
github.com/PagerDuty/go-pagerduty v1.8.0
github.com/aws/aws-lambda-go v1.46.0
github.com/sirupsen/logrus v1.9.3
)

require (
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
github.com/hashicorp/go-retryablehttp v0.7.5 // indirect
github.com/pkg/errors v0.9.1 // indirect
golang.org/x/sys v0.14.0 // indirect
github.com/google/go-querystring v1.1.0 // indirect
golang.org/x/sys v0.18.0 // indirect
)
40 changes: 12 additions & 28 deletions alert-elb-cloudwatch-alarm/go.sum
Original file line number Diff line number Diff line change
@@ -1,43 +1,27 @@
github.com/aws/aws-lambda-go v1.41.0 h1:l/5fyVb6Ud9uYd411xdHZzSf2n86TakxzpvIoz7l+3Y=
github.com/aws/aws-lambda-go v1.41.0/go.mod h1:jwFe2KmMsHmffA1X2R09hH6lFzJQxzI8qK17ewzbQMM=
github.com/PagerDuty/go-pagerduty v1.8.0 h1:MTFqTffIcAervB83U7Bx6HERzLbyaSPL/+oxH3zyluI=
github.com/PagerDuty/go-pagerduty v1.8.0/go.mod h1:nzIeAqyFSJAFkjWKvMzug0JtwDg+V+UoCWjFrfFH5mI=
github.com/aws/aws-lambda-go v1.46.0 h1:UWVnvh2h2gecOlFhHQfIPQcD8pL/f7pVCutmFl+oXU8=
github.com/aws/aws-lambda-go v1.46.0/go.mod h1:dpMpZgvWx5vuQJfBt0zqBha60q7Dd7RfgJv23DymV8A=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/hashicorp/go-cleanhttp v0.5.0/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80=
github.com/hashicorp/go-cleanhttp v0.5.2 h1:035FKYIWjmULyFRBKPs8TBQoi0x6d9G4xc9neXJWAZQ=
github.com/hashicorp/go-cleanhttp v0.5.2/go.mod h1:kO/YDlP8L1346E6Sodw+PrpBSV4/SoxCXGY6BqNFT48=
github.com/hashicorp/go-hclog v0.9.2 h1:CG6TE5H9/JXsFWJCfoIVpKFIkFe6ysEuHirp4DxCsHI=
github.com/hashicorp/go-hclog v0.9.2/go.mod h1:5CU+agLiy3J7N7QjHK5d05KxGsuXiQLrjA0H7acj2lQ=
github.com/hashicorp/go-retryablehttp v0.5.1/go.mod h1:9B5zBasrRhHXnJnui7y6sL7es7NDiJgTc6Er0maI1Xs=
github.com/hashicorp/go-retryablehttp v0.7.5 h1:bJj+Pj19UZMIweq/iie+1u5YCdGrnxCT9yvm0e+Nd5M=
github.com/hashicorp/go-retryablehttp v0.7.5/go.mod h1:Jy/gPYAdjqffZ/yFGCFV2doI5wjtH1ewM9u8iYVjtX8=
github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
github.com/opsgenie/opsgenie-go-sdk-v2 v1.2.22 h1:0h+YoXSyipf6XQGyIaDg6z5jwRik1JSm+sQetnD7vGY=
github.com/opsgenie/opsgenie-go-sdk-v2 v1.2.22/go.mod h1:4OjcxgwdXzezqytxN534MooNmrxRD50geWZxTD7845s=
github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8=
github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE=
github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ=
github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
github.com/stretchr/testify v1.7.2 h1:4jaiDzPyXQvSd7D0EjG45355tLlV3VOECpq10pLC+8s=
github.com/stretchr/testify v1.7.2/go.mod h1:R6va5+xMeoiuVRoj+gSkQ7d3FALtqAAGI1FQKckRals=
golang.org/x/net v0.0.0-20201224014010-6772e930b67b/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.14.0 h1:Vz7Qs629MkJkGyHxUlRHizWJRG2j8fbQKjELVSNhy7Q=
golang.org/x/sys v0.14.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
golang.org/x/sys v0.18.0 h1:DBdB3niSjOA/O0blCZBqDefyWNYveAYMNF1Wum0DYQ4=
golang.org/x/sys v0.18.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
Expand Down
137 changes: 82 additions & 55 deletions alert-elb-cloudwatch-alarm/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@ import (

log "github.com/sirupsen/logrus"

pagerduty "github.com/PagerDuty/go-pagerduty"
"github.com/aws/aws-lambda-go/events"
"github.com/aws/aws-lambda-go/lambda"
"github.com/opsgenie/opsgenie-go-sdk-v2/alert"
"github.com/opsgenie/opsgenie-go-sdk-v2/client"
)

// SNSMessageNotification represents the details of an SNS message related to AWS alarms.
Expand Down Expand Up @@ -61,12 +60,12 @@ func handler(_ context.Context, snsEvent events.SNSEvent) {

sendMattermostNotification(record.EventSource, messageNotification)

// Trigger OpsGenie
// Trigger PagerDuty
if os.Getenv("ENVIRONMENT") != "" && os.Getenv("ENVIRONMENT") != "test" {
if messageNotification.NewStateValue != "OK" {
sendOpsGenieNotification(messageNotification)
sendPagerDutyNotification(messageNotification)
} else {
closeOpsGenieAlert(messageNotification)
closePagerDutyIncidents(messageNotification)
}
}
}
Expand Down Expand Up @@ -111,17 +110,10 @@ func sendMattermostNotification(source string, messageNotification SNSMessageNot
}
}

func sendOpsGenieNotification(messageNotification SNSMessageNotification) {
if os.Getenv("OPSGENIE_APIKEY") == "" || os.Getenv("OPSGENIE_SCHEDULER_TEAM") == "" {
log.Warn("No OpsGenie APIKEY/Scheduler team setup")
return
}

alertClient, err := alert.NewClient(&client.Config{
ApiKey: os.Getenv("OPSGENIE_APIKEY"),
})
if err != nil {
log.WithError(err).Error("not able to create a new opsgenie client")
func sendPagerDutyNotification(messageNotification SNSMessageNotification) {
integrationKey := os.Getenv("PAGERDUTY_INTEGRATION_KEY")
if integrationKey == "" {
log.Warn("No PagerDuty Integration Key setup")
return
}

Expand All @@ -130,57 +122,92 @@ func sendOpsGenieNotification(messageNotification SNSMessageNotification) {
dimensions = append(dimensions, fmt.Sprintf("%s: %s", dimension.Name, dimension.Value))
}

_, err = alertClient.Create(nil, &alert.CreateAlertRequest{
Message: messageNotification.AlarmName,
Description: messageNotification.AlarmDescription,
Responders: []alert.Responder{
{Type: alert.ScheduleResponder, Name: os.Getenv("OPSGENIE_SCHEDULER_TEAM")},
},
Tags: []string{messageNotification.AlarmName, "AWS", "LB"},
Details: map[string]string{
"AWS Account": messageNotification.AWSAccountID,
"Region": messageNotification.Region,
"State": messageNotification.NewStateValue,
"MetricName": messageNotification.Trigger.MetricName,
"NameSpace": messageNotification.Trigger.Namespace,
"Dimensions": strings.Join(dimensions, "\n"),
detailString := fmt.Sprintf("AWS Account: %s\nRegion: %s\nState: %s\nMetricName: %s\nNamespace: %s\nDimensions:\n%s",
messageNotification.AWSAccountID,
messageNotification.Region,
messageNotification.NewStateValue,
messageNotification.Trigger.MetricName,
messageNotification.Trigger.Namespace,
strings.Join(dimensions, "\n"),
)

event := pagerduty.V2Event{
RoutingKey: integrationKey,
Action: "trigger",
Payload: &pagerduty.V2Payload{
Summary: messageNotification.AlarmName + " - " + messageNotification.AlarmDescription,
Source: "Alarm System",
Severity: "critical",
Details: map[string]interface{}{
"Message": detailString,
},
},
Priority: alert.P1,
})

}

func closeOpsGenieAlert(messageNotification SNSMessageNotification) {
if os.Getenv("OPSGENIE_APIKEY") == "" {
log.Warn("No OpsGenie APIKEY setup")
return
}

alertClient, err := alert.NewClient(&client.Config{
ApiKey: os.Getenv("OPSGENIE_APIKEY"),
})
// Send the event to PagerDuty
_, err := pagerduty.ManageEvent(event)
if err != nil {
log.WithError(err).Error("not able to create a new opsgenie client")
log.WithError(err).Error("Failed to send PagerDuty notification")
return
}

getResultQuery, err := alertClient.List(nil, &alert.ListAlertRequest{
Query: fmt.Sprintf("tag:%s", messageNotification.AlarmName),
})
if err != nil {
log.WithError(err).Error("error getting the alterts")
log.Info("PagerDuty event sent successfully")
}

func closePagerDutyIncidents(messageNotification SNSMessageNotification) {
apiKey := os.Getenv("PAGERDUTY_APIKEY")
email := os.Getenv("EMAIL_ADDRESS")
if apiKey == "" {
log.Warn("No PagerDuty APIKEY setup")
return
}

for _, alarm := range getResultQuery.Alerts {
_, err = alertClient.Close(nil, &alert.CloseAlertRequest{
IdentifierType: alert.ALERTID,
IdentifierValue: alarm.Id,
})
client := pagerduty.NewClient(apiKey)

var opts pagerduty.ListIncidentsOptions

opts.Limit = 25 // Set page size, max is often 100
opts.Offset = 0 // Start with the first page
opts.Total = true

var incidents []pagerduty.Incident

for {
// List incidents with current pagination options
res, err := client.ListIncidents(opts)
if err != nil {
log.WithError(err).Errorf("error closing the alert %s", alarm.Id)
return
log.WithError(err).Errorf("Error retrieving incidents: %v")
break
}

// Process the incidents
for _, incident := range res.Incidents {
incidents = append(incidents, incident)
}

// Check if we've retrieved all incidents
if opts.Offset+opts.Limit >= res.Total {
break // Exit loop if we have retrieved all incidents
}
opts.Offset += opts.Limit // Prepare for the next page
}

for _, incident := range incidents {
// Check if incident description or details match your criteria
// This part is up to you on how you match incidents to your messageNotification
if incident.Description == fmt.Sprintf("%s - %s", messageNotification.AlarmName, messageNotification.AlarmDescription) {
// Resolve the incident

_, err := client.ManageIncidentsWithContext(context.TODO(), email, []pagerduty.ManageIncidentsOptions{
{
ID: incident.ID,
Status: "resolved",
},
})
if err != nil {
log.WithError(err).Errorf("error resolving the incident %s", incident.ID)
return
}
}
}
}
2 changes: 1 addition & 1 deletion cloudwatch-event-alerts/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Cloudwatch Event Alerts

This is a lambda function that gets triggered by SNS messages registered with Cloudwatch Rules. Once a rule is triggered an SNS message hits the Lambda function, which pushes the alert to Mattermost and Opsgenie.
This is a lambda function that gets triggered by SNS messages registered with Cloudwatch Rules. Once a rule is triggered an SNS message hits the Lambda function, which pushes the alert to Mattermost and PagerDuty.
8 changes: 3 additions & 5 deletions cloudwatch-event-alerts/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,12 @@ module github.com/mattermost/mattermost-cloud-lambdas/rds-cluster-events
go 1.21

require (
github.com/PagerDuty/go-pagerduty v1.8.0
github.com/aws/aws-lambda-go v1.41.0
github.com/opsgenie/opsgenie-go-sdk-v2 v1.2.22
github.com/sirupsen/logrus v1.9.3
)

require (
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
github.com/hashicorp/go-retryablehttp v0.7.5 // indirect
github.com/pkg/errors v0.9.1 // indirect
golang.org/x/sys v0.14.0 // indirect
github.com/google/go-querystring v1.1.0 // indirect
golang.org/x/sys v0.15.0 // indirect
)
36 changes: 10 additions & 26 deletions cloudwatch-event-alerts/go.sum
Original file line number Diff line number Diff line change
@@ -1,43 +1,27 @@
github.com/PagerDuty/go-pagerduty v1.8.0 h1:MTFqTffIcAervB83U7Bx6HERzLbyaSPL/+oxH3zyluI=
github.com/PagerDuty/go-pagerduty v1.8.0/go.mod h1:nzIeAqyFSJAFkjWKvMzug0JtwDg+V+UoCWjFrfFH5mI=
github.com/aws/aws-lambda-go v1.41.0 h1:l/5fyVb6Ud9uYd411xdHZzSf2n86TakxzpvIoz7l+3Y=
github.com/aws/aws-lambda-go v1.41.0/go.mod h1:jwFe2KmMsHmffA1X2R09hH6lFzJQxzI8qK17ewzbQMM=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/hashicorp/go-cleanhttp v0.5.0/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80=
github.com/hashicorp/go-cleanhttp v0.5.2 h1:035FKYIWjmULyFRBKPs8TBQoi0x6d9G4xc9neXJWAZQ=
github.com/hashicorp/go-cleanhttp v0.5.2/go.mod h1:kO/YDlP8L1346E6Sodw+PrpBSV4/SoxCXGY6BqNFT48=
github.com/hashicorp/go-hclog v0.9.2 h1:CG6TE5H9/JXsFWJCfoIVpKFIkFe6ysEuHirp4DxCsHI=
github.com/hashicorp/go-hclog v0.9.2/go.mod h1:5CU+agLiy3J7N7QjHK5d05KxGsuXiQLrjA0H7acj2lQ=
github.com/hashicorp/go-retryablehttp v0.5.1/go.mod h1:9B5zBasrRhHXnJnui7y6sL7es7NDiJgTc6Er0maI1Xs=
github.com/hashicorp/go-retryablehttp v0.7.5 h1:bJj+Pj19UZMIweq/iie+1u5YCdGrnxCT9yvm0e+Nd5M=
github.com/hashicorp/go-retryablehttp v0.7.5/go.mod h1:Jy/gPYAdjqffZ/yFGCFV2doI5wjtH1ewM9u8iYVjtX8=
github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
github.com/opsgenie/opsgenie-go-sdk-v2 v1.2.22 h1:0h+YoXSyipf6XQGyIaDg6z5jwRik1JSm+sQetnD7vGY=
github.com/opsgenie/opsgenie-go-sdk-v2 v1.2.22/go.mod h1:4OjcxgwdXzezqytxN534MooNmrxRD50geWZxTD7845s=
github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8=
github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE=
github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ=
github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
github.com/stretchr/testify v1.7.2 h1:4jaiDzPyXQvSd7D0EjG45355tLlV3VOECpq10pLC+8s=
github.com/stretchr/testify v1.7.2/go.mod h1:R6va5+xMeoiuVRoj+gSkQ7d3FALtqAAGI1FQKckRals=
golang.org/x/net v0.0.0-20201224014010-6772e930b67b/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.14.0 h1:Vz7Qs629MkJkGyHxUlRHizWJRG2j8fbQKjELVSNhy7Q=
golang.org/x/sys v0.14.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
golang.org/x/sys v0.15.0 h1:h48lPFYpsTvQJZF4EKyI4aLHaev3CxivZmv7yZig9pc=
golang.org/x/sys v0.15.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
Expand Down
Loading

0 comments on commit 59ef61a

Please sign in to comment.