Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
110 commits
Select commit Hold shift + click to select a range
d464398
Support missing domain-related endpoints for API parity (#620)
yec-akamai Nov 22, 2024
87775e1
test: Update default test image to reflect the deprecation of Debian …
ykim-akamai Nov 25, 2024
90fe250
Added support for updated Reserved IP behavior to existing resources …
AniJ98 Nov 25, 2024
663eb17
build(deps): bump github.com/go-resty/resty/v2 from 2.16.1 to 2.16.2 …
dependabot[bot] Nov 25, 2024
bb8fd62
build(deps): bump slackapi/slack-github-action from 1.27.0 to 2.0.0 (…
dependabot[bot] Nov 26, 2024
d291aac
doc: Remove Image Services Gen2 LA notice (#628)
yec-akamai Nov 27, 2024
59c1d54
build(deps): bump github.com/stretchr/testify from 1.9.0 to 1.10.0 (#…
dependabot[bot] Nov 28, 2024
60096dd
build(deps): bump golang.org/x/oauth2 from 0.23.0 to 0.24.0 (#608)
dependabot[bot] Nov 28, 2024
9b3c337
build(deps): bump golang.org/x/net from 0.30.0 to 0.31.0 (#614)
dependabot[bot] Nov 28, 2024
6106012
doc: add info for kubeconfig as base64 (#607)
guilhem Nov 28, 2024
95e95bd
Added support for missing User-related fields (#622)
ezilber-akamai Dec 2, 2024
7212ba9
Add hardware type and linode label fields to volume struct (#604)
zliang-akamai Dec 4, 2024
19bf0e3
build(deps): bump golang.org/x/text from 0.20.0 to 0.21.0 (#638)
dependabot[bot] Dec 6, 2024
94c3d40
build(deps): bump golang.org/x/net from 0.31.0 to 0.32.0 (#637)
dependabot[bot] Dec 6, 2024
55f9fb9
Updated migrations field to be pointer (#639)
ezilber-akamai Dec 6, 2024
34a1e5c
Added support for missing Service Transfer related endpoints (#632)
ezilber-akamai Dec 9, 2024
00343d6
Added support for missing Obj-related endpoints (#634)
ezilber-akamai Dec 9, 2024
6b41317
add account test coverage (#636)
ykim-akamai Dec 9, 2024
fefcd3e
new: Introduce UpdateIPAddressV2; deprecate UpdateIPAddress (#641)
lgarber-akamai Dec 13, 2024
5fc5868
Add advanced CodeQL and dependencies review workflows (#640)
zliang-akamai Dec 16, 2024
aee0bb2
NewClient panics if http.client is nil and LINODE_CA is set (#635)
kokes Dec 20, 2024
857b24b
build(deps): bump golang.org/x/net from 0.32.0 to 0.33.0 (#646)
dependabot[bot] Dec 27, 2024
9633762
Support DBaaS V2.0 (#633)
ezilber-akamai Jan 7, 2025
3804294
build(deps): bump golang.org/x/net from 0.33.0 to 0.34.0 (#650)
dependabot[bot] Jan 8, 2025
c4bc912
build(deps): bump golang.org/x/oauth2 from 0.24.0 to 0.25.0 (#648)
dependabot[bot] Jan 9, 2025
c613763
Remove unnecessary permissions (#643)
zliang-akamai Jan 9, 2025
2520ae9
Add unit test coverage for Type, Vlan and Tag related methods/functi…
vshanthe Jan 10, 2025
1cfb144
VPU Support (#645)
jriddle-linode Jan 10, 2025
a3aa5be
Support `tier` field for LKE-E (#651)
ezilber-akamai Jan 13, 2025
7b7ba1d
build(deps): bump github.com/go-resty/resty/v2 from 2.16.2 to 2.16.3 …
dependabot[bot] Jan 13, 2025
9193012
Add support for object storage services gen2 (#649)
zliang-akamai Jan 15, 2025
fcf4b18
rfc: doPOSTRequestNoResponseBody (#654)
zliang-akamai Jan 15, 2025
a8748fc
Add unit test coverage for Stackscripts, Database and Region related …
vshanthe Jan 22, 2025
7d14d5c
test/workflow: Update make test commands and related workflows (#657)
ykim-akamai Jan 28, 2025
a010140
Added missign db-related fields (#659)
ezilber-akamai Jan 29, 2025
c5883b6
remove unnecessary TEST_ARGS (#664)
ykim-akamai Jan 29, 2025
daab234
build(deps): bump github.com/go-resty/resty/v2 from 2.16.3 to 2.16.5 …
dependabot[bot] Jan 30, 2025
2d64121
Checking for DefaultTransport in NewClient (#663)
kokes Jan 31, 2025
78fa5ac
Add unit test coverage for Volume,Volume types and Longview related …
vshanthe Feb 4, 2025
72f6203
Reformatted endpoint functions to simplify them (#668)
ezilber-akamai Feb 4, 2025
0fd46b0
add domain and domain record unit test coverage (#656)
ykim-akamai Feb 5, 2025
635a017
build(deps): bump crazy-max/ghaction-github-labeler from 5.1.0 to 5.2…
dependabot[bot] Feb 6, 2025
544f0ee
build(deps): bump golang.org/x/oauth2 from 0.25.0 to 0.26.0 (#672)
dependabot[bot] Feb 7, 2025
a1d5a13
remove deprecated Cluster variable in tests (#666)
ykim-akamai Feb 7, 2025
c5cc32a
Allow to enable LKE APL (#665)
yec-akamai Feb 7, 2025
a35570e
Enforce code format for tests (#660)
zliang-akamai Feb 10, 2025
7ddf812
build(deps): bump golang.org/x/text from 0.21.0 to 0.22.0 (#671)
dependabot[bot] Feb 10, 2025
a11eecf
build(deps): bump golang.org/x/net from 0.34.0 to 0.35.0 (#677)
dependabot[bot] Feb 12, 2025
33c0c1d
Add firewall, firewall rule, and firewall device unit tests (#679)
ykim-akamai Feb 18, 2025
71bdfa1
Add unit test coverage for VPC related methods/functions (#673)
vshanthe Feb 19, 2025
33d2c6a
Add unit test coverage for Network related methods/functions (#670)
vshanthe Feb 19, 2025
1f1254b
Add unit test coverage for Nodebalancers related methods/functions (#…
vshanthe Feb 19, 2025
e4c1b76
Support LKE tier version (#676)
yec-akamai Feb 21, 2025
9f33446
Remove LKE ACL LA notices (#684)
lgarber-akamai Feb 25, 2025
023554c
Nodebalancer VPC support (#678)
komer3 Feb 25, 2025
6c6e127
build(deps): bump github.com/google/go-cmp from 0.6.0 to 0.7.0 (#685)
dependabot[bot] Feb 26, 2025
7635eb0
Add unit test coverage for Object Storage and LKE related methods/fu…
vshanthe Feb 27, 2025
4a29499
Add images unit test coverage (#687)
ykim-akamai Feb 27, 2025
41a199a
add support for the type field when creating nodebalancers (#669)
eljohnson92 Feb 28, 2025
c85a73f
Added support for DBaaS suspend/resume (#680)
ezilber-akamai Feb 28, 2025
a56f15e
Nodebalancer Config Changes for VPC integration (#689)
komer3 Mar 3, 2025
81eeacd
build(deps): bump golang.org/x/oauth2 from 0.26.0 to 0.27.0 (#688)
dependabot[bot] Mar 4, 2025
fc401f5
instance_tests (#690)
vshanthe Mar 5, 2025
5c515c3
fix tier version url (#691)
yec-akamai Mar 5, 2025
cbc24d4
build(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#694)
dependabot[bot] Mar 6, 2025
1db5675
build(deps): bump golang.org/x/net from 0.35.0 to 0.36.0 (#692)
dependabot[bot] Mar 6, 2025
1a6f730
build(deps): bump golang.org/x/oauth2 from 0.27.0 to 0.28.0 (#693)
dependabot[bot] Mar 6, 2025
e77b20e
build(deps): bump golang.org/x/net from 0.36.0 to 0.37.0 (#695)
dependabot[bot] Mar 7, 2025
5308e5a
profile_tests (#698)
vshanthe Mar 20, 2025
2babc86
build(deps): bump crazy-max/ghaction-github-labeler from 5.2.0 to 5.3…
dependabot[bot] Apr 2, 2025
d1039b2
Support new fields for LKE-E node pool (#701)
yec-akamai Apr 2, 2025
8e2bbdb
build(deps): bump golangci/golangci-lint-action from 6 to 7 (#705)
dependabot[bot] Apr 2, 2025
5a9d6d1
Added DB Resize event (#708)
ezilber-akamai Apr 7, 2025
0d99bb0
update k8sversion for LKE-E test (#707)
ykim-akamai Apr 7, 2025
f5822d7
build(deps): bump golang.org/x/net from 0.37.0 to 0.38.0 (#703)
dependabot[bot] Apr 7, 2025
4426672
Add option to disable cloud firewall when running integration tests (…
ykim-akamai Apr 7, 2025
dda5e2b
build(deps): bump github.com/jarcoal/httpmock from 1.3.1 to 1.4.0 (#710)
dependabot[bot] Apr 11, 2025
dc8c5cc
Update LDE capability name and tests (#718)
ykim-akamai Apr 14, 2025
b165e90
Fix lint (#719)
zliang-akamai Apr 15, 2025
398d409
build(deps): bump golang.org/x/net from 0.38.0 to 0.39.0 (#716)
dependabot[bot] Apr 15, 2025
8544eb1
build(deps): bump golang.org/x/oauth2 from 0.28.0 to 0.29.0 (#709)
dependabot[bot] Apr 15, 2025
f06e865
Create v2 monthly transfer struct and function with 64 bits variables…
zliang-akamai Apr 18, 2025
e0741f6
Add LA Disk Encryption Capability (#730)
ykim-akamai Apr 24, 2025
8d4e3c1
Adding ACLP monitor APIs (#722)
rbajoria26 Apr 28, 2025
176f872
Skip monthly transfer v1 test on 32 bits systems (#725)
zliang-akamai Apr 29, 2025
c38a67e
Update monthly transfer test fixture (#739)
yec-akamai May 5, 2025
55f8152
build(deps): bump golangci/golangci-lint-action from 7 to 8 (#737)
dependabot[bot] May 5, 2025
53847c9
Project: Limits Visibility M1 (#738)
yec-akamai May 6, 2025
8783bc3
build(deps): bump golang.org/x/net from 0.39.0 to 0.40.0 (#743)
dependabot[bot] May 7, 2025
3236713
build(deps): bump golang.org/x/oauth2 from 0.29.0 to 0.30.0 (#745)
dependabot[bot] May 7, 2025
73e0719
build(deps): bump slackapi/slack-github-action from 2.0.0 to 2.1.0 (#…
dependabot[bot] May 13, 2025
91b5023
Add lke versions helper and update tests (#748)
ykim-akamai May 16, 2025
255b155
Fix setupInstanceFirewall for accounts with default firewall (#741)
zliang-akamai May 16, 2025
ea79a00
Fix tag for LKE control plane ACL revision ID field (#749)
zliang-akamai May 19, 2025
6ac31fd
fix: update MigratingTo field to accept int or null (#736)
cxdy May 19, 2025
4862b5f
Drop v4beta and LA notice for Limits Visibility (#752)
yec-akamai May 20, 2025
891c21f
ACLP: updating variable type for entity_ids for different service_typ…
rbajoria26 May 20, 2025
0bb8fc2
Project: Configurable DB Params (#755)
ezilber-akamai May 21, 2025
a13a99b
Add support to auto-allocate ipv4 addrs from range specified (#756)
rahulait May 27, 2025
a3c3b47
project: UDP NodeBalancers (#751)
ezilber-akamai May 27, 2025
d10106f
Deprecate MarkEventRead function (#753)
zliang-akamai Jun 2, 2025
dc7858d
Fix in-line doc for `UpdateInstance` function (#761)
rammanoj Jun 2, 2025
ebf2210
UseURL should require host and scheme (#758)
kokes Jun 5, 2025
43ce150
Add `DoublePointer` helper function (#764)
zliang-akamai Jun 5, 2025
c334574
build(deps): bump golang.org/x/net from 0.40.0 to 0.41.0 (#766)
dependabot[bot] Jun 11, 2025
2f56bb2
build(deps): bump golang.org/x/text from 0.25.0 to 0.26.0 (#767)
dependabot[bot] Jun 17, 2025
9f502c9
Merge main into proj/linodego_v2.0
ezilber-akamai Jun 23, 2025
0a66d2e
Fix unit tests
ezilber-akamai Jun 23, 2025
ad04b3d
Fix int tests and lint
ezilber-akamai Jun 24, 2025
7cf0561
Fix funcorder
ezilber-akamai Jun 24, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
9 changes: 7 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,18 @@ jobs:
go-version: stable

- name: golangci-lint
uses: golangci/golangci-lint-action@v6
uses: golangci/golangci-lint-action@v8
with:
version: latest

- name: Run tidy
run: make tidy

- name: Run formatter
run: |
go install mvdan.cc/gofumpt@86bffd62437a3c437c0b84d5d5ab244824e762fc
gofumpt -l -w .

- name: Fail if changes
run: git diff-index --exit-code HEAD

Expand Down Expand Up @@ -85,7 +90,7 @@ jobs:

steps:
- name: Notify Slack
uses: slackapi/slack-github-action@v2.0.0
uses: slackapi/slack-github-action@v2.1.0
with:
method: chat.postMessage
token: ${{ secrets.SLACK_BOT_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
uses: actions/checkout@v4
-
name: Run Labeler
uses: crazy-max/ghaction-github-labeler@31674a3852a9074f2086abcf1c53839d466a47e7
uses: crazy-max/ghaction-github-labeler@24d110aa46a59976b8a7f35518cb7f14f434c916
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
yaml-file: .github/labels.yml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nightly_smoke_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:

- name: Notify Slack
if: (success() || failure()) && github.repository == 'linode/linodego'
uses: slackapi/slack-github-action@v2.0.0
uses: slackapi/slack-github-action@v2.1.0
with:
method: chat.postMessage
token: ${{ secrets.SLACK_BOT_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-notify-slack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Notify Slack - Main Message
uses: slackapi/slack-github-action@v2.0.0
uses: slackapi/slack-github-action@v2.1.0
with:
method: chat.postMessage
token: ${{ secrets.SLACK_BOT_TOKEN }}
Expand Down
132 changes: 71 additions & 61 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,75 +1,85 @@
version: "2"
run:
tests: false

linters-settings:
errcheck:
check-type-assertions: true
check-blank: true

govet:
enable:
- atomicalign
- shadow
enable-all: false
disable-all: false
gocyclo:
min-complexity: 30
gocognit:
min-complexity: 30
dupl:
threshold: 100

linters:
enable-all: true
default: all
disable:
# deprecated linters
- exportloopref
####################

# conflicted with go fmt
- nolintlint

# workaround to avoid linter failures of getting malformed json
- musttag

- err113

- bodyclose
- contextcheck
- nilerr
- noctx
- rowserrcheck
- sqlclosecheck
- tparallel
- cyclop
- depguard
- dupl
- durationcheck
- err113
- errcheck
- errname
- errorlint
- exhaustive
- exhaustruct
- forcetypeassert
- gochecknoglobals
- gochecknoinits
- gocyclo
- unparam
- nakedret
- lll
- dupl
- godot
- gosec
- gochecknoinits
- gochecknoglobals
- exhaustruct
- inamedparam
- lll
- musttag
- nakedret
- nilerr
- nlreturn
- noctx
- nolintlint
- nonamedreturns
- errcheck
- perfsprint
- recvcheck
- rowserrcheck
- sqlclosecheck
- staticcheck
- stylecheck
- wsl
- varnamelen
- tagalign
- tagliatelle
- nlreturn
- wrapcheck
- tparallel
- unparam
- varnamelen
- wastedassign
- durationcheck
- errorlint
- cyclop
- godot
- exhaustive
- depguard
- tagalign
- inamedparam
- perfsprint
- recvcheck
fast: false
- wrapcheck
- wsl
settings:
dupl:
threshold: 100
errcheck:
check-type-assertions: true
check-blank: true
gocognit:
min-complexity: 30
gocyclo:
min-complexity: 30
govet:
enable:
- atomicalign
- shadow
enable-all: false
disable-all: false
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
paths:
- third_party$
- builtin$
- examples$
formatters:
enable:
- gci
- gofmt
- gofumpt
- goimports
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ BIN_DIR := $(GOPATH)/bin
INTEGRATION_DIR := ./test/integration
FIXTURES_DIR := $(INTEGRATION_DIR)/fixtures

TEST_TAGS := integration
TEST_TIMEOUT := 5h

SKIP_DOCKER ?= 0
Expand All @@ -28,7 +29,7 @@ test-unit:
cd test && make test-unit

test-int:
cd test && make test-int
cd test && make test-int TEST_TIMEOUT=$(TEST_TIMEOUT)

testcov-func:
@go test -v -coverprofile="coverage.txt" . > /dev/null 2>&1
Expand All @@ -40,7 +41,7 @@ testcov-html:
@go tool cover -html coverage.txt

test-smoke:
cd test && make test-smoke
cd test && make test-smoke TEST_TIMEOUT=$(TEST_TIMEOUT)

build: vet lint
go build ./...
Expand Down Expand Up @@ -77,7 +78,7 @@ run_fixtures:
LINODE_API_VERSION="v4beta" \
LINODE_URL="$(LINODE_URL)" \
GO111MODULE="on" \
go test --tags $(TEST_TAGS) -timeout=$(TEST_TIMEOUT) -v $(TEST_ARGS)
go test -timeout=$(TEST_TIMEOUT) -v $(TEST_ARGS)

sanitize:
@echo "* Sanitizing fixtures"
Expand Down
4 changes: 4 additions & 0 deletions account_events.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ const (
ActionDatabaseDelete EventAction = "database_delete"
ActionDatabaseFailed EventAction = "database_failed"
ActionDatabaseUpdate EventAction = "database_update"
ActionDatabaseResize EventAction = "database_resize"
ActionDatabaseCreateFailed EventAction = "database_create_failed"
ActionDatabaseUpdateFailed EventAction = "database_update_failed"
ActionDatabaseBackupCreate EventAction = "database_backup_create"
Expand Down Expand Up @@ -302,6 +303,9 @@ func (c *Client) GetEvent(ctx context.Context, eventID int) (*Event, error) {
}

// MarkEventRead marks a single Event as read.
// Deprecated: `MarkEventRead` is a deprecated API, please consider using `MarkEventsSeen` instead.
// Please note that the `MarkEventsSeen` API functions differently and will mark all events up to and
// including the referenced event-id as "seen" rather than individual events.
func (c *Client) MarkEventRead(ctx context.Context, event *Event) error {
e := formatAPIPath("account/events/%d/read", event.ID)
return doPOSTRequestNoRequestResponseBody(ctx, c, e)
Expand Down
Loading
Loading