Skip to content

Commit 287d429

Browse files
Thomas Delbendelporcheron
authored andcommitted
Pull request #7: Upgrade Go dependencies, update models, update & please linters
Merge in PRODUCT/bleemeo-go from upgrade-deps-2025-02-14 to main * commit 'c2384e7574b3481f55f35e88a22824a99e76c453': chore: update resources chore: update enums chore: update copyright year from 2024 to 2025 chore: update & please linters chore: upgrade Go dependencies
2 parents 0c9918b + c2384e7 commit 287d429

20 files changed

+52
-38
lines changed

.golangci.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,15 @@ linters:
77
disable:
88
# Base linters disabled for all projects.
99
- funlen
10-
- gomnd # Too picky. For example it says that 1000 (used in number of ms in one second) is a magic number.
11-
- mnd # Same as above.
10+
- mnd # Too picky. For example it says that 1000 (used in number of ms in one second) is a magic number.
1211
- exhaustruct # Same as above.
1312
- gci # Conflicts with gofumpt.
1413
- varnamelen # I think there is too many false-positive.
1514
- ireturn # Complain that interface A implementation method return an interface B... it's a requirement of interface A that is unavoidable.
1615
- nonamedreturns # Warn for every named return, not useful.
1716
- interfacebloat # Warn when an interface has too many methods, not useful.
1817
# Deprecated and replaced linter.
19-
- execinquery
20-
- exportloopref
18+
- tenv
2119
# We use maintidx to lint function complexity.
2220
- gocyclo
2321
- cyclop

authentication.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2015-2024 Bleemeo
1+
// Copyright 2015-2025 Bleemeo
22
//
33
// bleemeo.com an infrastructure monitoring solution in the Cloud
44
//

authentication_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2015-2024 Bleemeo
1+
// Copyright 2015-2025 Bleemeo
22
//
33
// bleemeo.com an infrastructure monitoring solution in the Cloud
44
//

client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2015-2024 Bleemeo
1+
// Copyright 2015-2025 Bleemeo
22
//
33
// bleemeo.com an infrastructure monitoring solution in the Cloud
44
//

client_test.go

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
// Copyright 2015-2025 Bleemeo
2+
//
3+
// bleemeo.com an infrastructure monitoring solution in the Cloud
4+
//
5+
// Licensed under the Apache License, Version 2.0 (the "License");
6+
// you may not use this file except in compliance with the License.
7+
// You may obtain a copy of the License at
8+
//
9+
// http://www.apache.org/licenses/LICENSE-2.0
10+
//
11+
// Unless required by applicable law or agreed to in writing, software
12+
// distributed under the License is distributed on an "AS IS" BASIS,
13+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
// See the License for the specific language governing permissions and
15+
// limitations under the License.
16+
117
package bleemeo
218

319
import (

common_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2015-2024 Bleemeo
1+
// Copyright 2015-2025 Bleemeo
22
//
33
// bleemeo.com an infrastructure monitoring solution in the Cloud
44
//

doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2015-2024 Bleemeo
1+
// Copyright 2015-2025 Bleemeo
22
//
33
// bleemeo.com an infrastructure monitoring solution in the Cloud
44
//

enums.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2015-2024 Bleemeo
1+
// Copyright 2015-2025 Bleemeo
22
//
33
// bleemeo.com an infrastructure monitoring solution in the Cloud
44
//
@@ -34,6 +34,7 @@ const (
3434
AgentType_vSphereCluster AgentType = "vsphere_cluster"
3535
AgentType_vSphereHost AgentType = "vsphere_host"
3636
AgentType_vSphereVM AgentType = "vsphere_vm"
37+
AgentType_Application AgentType = "application"
3738
)
3839

3940
type DisconnectionReason int

errors.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2015-2024 Bleemeo
1+
// Copyright 2015-2025 Bleemeo
22
//
33
// bleemeo.com an infrastructure monitoring solution in the Cloud
44
//

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ go 1.19
44

55
require (
66
github.com/google/go-cmp v0.6.0
7-
golang.org/x/oauth2 v0.23.0
7+
golang.org/x/oauth2 v0.26.0
88
)

0 commit comments

Comments
 (0)