Skip to content
This repository was archived by the owner on Mar 17, 2021. It is now read-only.

Commit 8063858

Browse files
author
Max Ramqvist
committed
Implement skipping TLS certificate verification that is available through the Grafana HTTP API.
1 parent 9b58bab commit 8063858

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

datasource.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ type JSONData struct {
3636
AuthType string `json:"authType,omitempty"`
3737
CustomMetricsNamespaces string `json:"customMetricsNamespaces,omitempty"`
3838
DefaultRegion string `json:"defaultRegion,omitempty"`
39+
TlsSkipVerify bool `json:"tlsSkipVerify,omitempty"`
3940
}
4041

4142
// SecureJSONData is a representation of the datasource `secureJsonData` property

datasource_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ func TestNewDataSource(t *testing.T) {
5454
AuthType: "keys",
5555
CustomMetricsNamespaces: "SomeNamespace",
5656
DefaultRegion: "us-east-1",
57+
TlsSkipVerify: true,
5758
},
5859
SecureJSONData: SecureJSONData{
5960
AccessKey: "123",

0 commit comments

Comments
 (0)