Skip to content

Commit 94b83ae

Browse files
committed
Fix more lint issues
1 parent 1c14817 commit 94b83ae

File tree

9 files changed

+24
-1
lines changed

9 files changed

+24
-1
lines changed

account_events.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,7 @@ func (c *Client) GetEvent(ctx context.Context, eventID int) (*Event, error) {
339339
}
340340

341341
// MarkEventRead marks a single Event as read.
342+
//
342343
// Deprecated: `MarkEventRead` is a deprecated API, please consider using `MarkEventsSeen` instead.
343344
// Please note that the `MarkEventsSeen` API functions differently and will mark all events up to and
344345
// including the referenced event-id as "seen" rather than individual events.

errors.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,5 +228,6 @@ func ErrHasStatus(err error, code ...int) bool {
228228
}
229229

230230
ec := e.StatusCode()
231+
231232
return slices.Contains(code, ec)
232233
}

instances.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,9 @@ type InstanceTransfer struct {
132132
Quota int `json:"quota"`
133133
}
134134

135-
// MonthlyInstanceTransferStats pool stats for a Linode Instance network transfer statistics for a specific month
136135
// Deprecated: use MonthlyInstanceTransferStatsV2 for new implementations
136+
//
137+
// MonthlyInstanceTransferStats pool stats for a Linode Instance network transfer statistics for a specific month
137138
type MonthlyInstanceTransferStats struct {
138139
// The amount of inbound public network traffic received by this Linode, in bytes, for a specific year/month.
139140
BytesIn int `json:"bytes_in"`

mysql.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,7 @@ type MySQLUpdateOptions struct {
431431
}
432432

433433
// MySQLDatabaseBackup is information for interacting with a backup for the existing MySQL Database
434+
434435
// Deprecated: MySQLDatabaseBackup is a deprecated struct, as the backup endpoints are no longer supported in DBaaS V2.
435436
// In DBaaS V2, databases can be backed up via database forking.
436437
type MySQLDatabaseBackup struct {
@@ -441,6 +442,7 @@ type MySQLDatabaseBackup struct {
441442
}
442443

443444
// MySQLBackupCreateOptions are options used for CreateMySQLDatabaseBackup(...)
445+
//
444446
// Deprecated: MySQLBackupCreateOptions is a deprecated struct, as the backup endpoints are no longer supported in DBaaS V2.
445447
// In DBaaS V2, databases can be backed up via database forking.
446448
type MySQLBackupCreateOptions struct {
@@ -485,6 +487,7 @@ func (c *Client) ListMySQLDatabases(ctx context.Context, opts *ListOptions) ([]M
485487
}
486488

487489
// ListMySQLDatabaseBackups lists all MySQL Database Backups associated with the given MySQL Database
490+
//
488491
// Deprecated: ListMySQLDatabaseBackups is a deprecated method, as the backup endpoints are no longer supported in DBaaS V2.
489492
// In DBaaS V2, databases can be backed up via database forking.
490493
func (c *Client) ListMySQLDatabaseBackups(ctx context.Context, databaseID int, opts *ListOptions) ([]MySQLDatabaseBackup, error) {
@@ -533,6 +536,7 @@ func (c *Client) ResetMySQLDatabaseCredentials(ctx context.Context, databaseID i
533536
}
534537

535538
// GetMySQLDatabaseBackup returns a specific MySQL Database Backup with the given ids
539+
//
536540
// Deprecated: GetMySQLDatabaseBackup is a deprecated method, as the backup endpoints are no longer supported in DBaaS V2.
537541
// In DBaaS V2, databases can be backed up via database forking.
538542
func (c *Client) GetMySQLDatabaseBackup(ctx context.Context, databaseID int, backupID int) (*MySQLDatabaseBackup, error) {
@@ -541,6 +545,7 @@ func (c *Client) GetMySQLDatabaseBackup(ctx context.Context, databaseID int, bac
541545
}
542546

543547
// RestoreMySQLDatabaseBackup returns the given MySQL Database with the given Backup
548+
//
544549
// Deprecated: RestoreMySQLDatabaseBackup is a deprecated method, as the backup endpoints are no longer supported in DBaaS V2.
545550
// In DBaaS V2, databases can be backed up via database forking.
546551
func (c *Client) RestoreMySQLDatabaseBackup(ctx context.Context, databaseID int, backupID int) error {
@@ -549,6 +554,7 @@ func (c *Client) RestoreMySQLDatabaseBackup(ctx context.Context, databaseID int,
549554
}
550555

551556
// CreateMySQLDatabaseBackup creates a snapshot for the given MySQL database
557+
//
552558
// Deprecated: CreateMySQLDatabaseBackup is a deprecated method, as the backup endpoints are no longer supported in DBaaS V2.
553559
// In DBaaS V2, databases can be backed up via database forking.
554560
func (c *Client) CreateMySQLDatabaseBackup(ctx context.Context, databaseID int, opts MySQLBackupCreateOptions) error {

network_ips.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ type IPAddressUpdateOptionsV2 struct {
1717
}
1818

1919
// IPAddressUpdateOptions fields are those accepted by UpdateIPAddress.
20+
//
2021
// Deprecated: Please use IPAddressUpdateOptionsV2 for all new implementations.
2122
type IPAddressUpdateOptions struct {
2223
RDNS *string `json:"rdns"`
@@ -66,6 +67,7 @@ func (i InstanceIP) GetUpdateOptionsV2() IPAddressUpdateOptionsV2 {
6667
}
6768

6869
// GetUpdateOptions converts a IPAddress to IPAddressUpdateOptions for use in UpdateIPAddress.
70+
//
6971
// Deprecated: Please use GetUpdateOptionsV2 for all new implementations.
7072
func (i InstanceIP) GetUpdateOptions() (o IPAddressUpdateOptions) {
7173
o.RDNS = copyString(&i.RDNS)
@@ -90,6 +92,7 @@ func (c *Client) UpdateIPAddressV2(ctx context.Context, address string, opts IPA
9092
}
9193

9294
// UpdateIPAddress updates the IP address with the specified id.
95+
//
9396
// Deprecated: Please use UpdateIPAddressV2 for all new implementation.
9497
func (c *Client) UpdateIPAddress(ctx context.Context, id string, opts IPAddressUpdateOptions) (*InstanceIP, error) {
9598
e := formatAPIPath("networking/ips/%s", id)

object_storage_bucket_certs.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ type ObjectStorageBucketCertUploadOptions struct {
1919
}
2020

2121
// UploadObjectStorageBucketCert uploads a TLS/SSL Cert to be used with an Object Storage Bucket.
22+
//
2223
// Deprecated: Please use UploadObjectStorageBucketCertV2 for all new implementations.
2324
func (c *Client) UploadObjectStorageBucketCert(
2425
ctx context.Context,
@@ -30,6 +31,7 @@ func (c *Client) UploadObjectStorageBucketCert(
3031
}
3132

3233
// GetObjectStorageBucketCert gets an ObjectStorageBucketCert
34+
//
3335
// Deprecated: Please use GetObjectStorageBucketCertV2 for all new implementations.
3436
func (c *Client) GetObjectStorageBucketCert(ctx context.Context, clusterOrRegionID, bucket string) (*ObjectStorageBucketCert, error) {
3537
e := formatAPIPath("object-storage/buckets/%s/%s/ssl", clusterOrRegionID, bucket)

object_storage_buckets.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ func (c *Client) CreateObjectStorageBucket(ctx context.Context, opts ObjectStora
147147
}
148148

149149
// GetObjectStorageBucketAccess gets the current access config for a bucket
150+
//
150151
// Deprecated: use GetObjectStorageBucketAccessV2 for new implementations
151152
func (c *Client) GetObjectStorageBucketAccess(ctx context.Context, clusterOrRegionID, label string) (*ObjectStorageBucketAccess, error) {
152153
e := formatAPIPath("object-storage/buckets/%s/%s/access", clusterOrRegionID, label)

postgres.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -648,6 +648,7 @@ func (c *Client) ListPostgresDatabases(ctx context.Context, opts *ListOptions) (
648648
}
649649

650650
// PostgresDatabaseBackup is information for interacting with a backup for the existing Postgres Database
651+
//
651652
// Deprecated: PostgresDatabaseBackup is a deprecated struct, as the backup endpoints are no longer supported in DBaaS V2.
652653
// In DBaaS V2, databases can be backed up via database forking.
653654
type PostgresDatabaseBackup struct {
@@ -678,6 +679,7 @@ func (d *PostgresDatabaseBackup) UnmarshalJSON(b []byte) error {
678679
}
679680

680681
// PostgresBackupCreateOptions are options used for CreatePostgresDatabaseBackup(...)
682+
//
681683
// Deprecated: PostgresBackupCreateOptions is a deprecated struct, as the backup endpoints are no longer supported in DBaaS V2.
682684
// In DBaaS V2, databases can be backed up via database forking.
683685
type PostgresBackupCreateOptions struct {
@@ -686,6 +688,7 @@ type PostgresBackupCreateOptions struct {
686688
}
687689

688690
// ListPostgresDatabaseBackups lists all Postgres Database Backups associated with the given Postgres Database
691+
//
689692
// Deprecated: ListPostgresDatabaseBackups is a deprecated method, as the backup endpoints are no longer supported in DBaaS V2.
690693
// In DBaaS V2, databases can be backed up via database forking.
691694
func (c *Client) ListPostgresDatabaseBackups(ctx context.Context, databaseID int, opts *ListOptions) ([]PostgresDatabaseBackup, error) {
@@ -740,6 +743,7 @@ func (c *Client) GetPostgresDatabaseSSL(ctx context.Context, databaseID int) (*P
740743
}
741744

742745
// GetPostgresDatabaseBackup returns a specific Postgres Database Backup with the given ids
746+
//
743747
// Deprecated: GetPostgresDatabaseBackup is a deprecated method, as the backup endpoints are no longer supported in DBaaS V2.
744748
// In DBaaS V2, databases can be backed up via database forking.
745749
func (c *Client) GetPostgresDatabaseBackup(ctx context.Context, databaseID int, backupID int) (*PostgresDatabaseBackup, error) {
@@ -748,6 +752,7 @@ func (c *Client) GetPostgresDatabaseBackup(ctx context.Context, databaseID int,
748752
}
749753

750754
// RestorePostgresDatabaseBackup returns the given Postgres Database with the given Backup
755+
//
751756
// Deprecated: RestorePostgresDatabaseBackup is a deprecated method, as the backup endpoints are no longer supported in DBaaS V2.
752757
// In DBaaS V2, databases can be backed up via database forking.
753758
func (c *Client) RestorePostgresDatabaseBackup(ctx context.Context, databaseID int, backupID int) error {
@@ -756,6 +761,7 @@ func (c *Client) RestorePostgresDatabaseBackup(ctx context.Context, databaseID i
756761
}
757762

758763
// CreatePostgresDatabaseBackup creates a snapshot for the given Postgres database
764+
//
759765
// Deprecated: CreatePostgresDatabaseBackup is a deprecated method, as the backup endpoints are no longer supported in DBaaS V2.
760766
// In DBaaS V2, databases can be backed up via database forking.
761767
func (c *Client) CreatePostgresDatabaseBackup(ctx context.Context, databaseID int, opts PostgresBackupCreateOptions) error {

waitfor.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,7 @@ func (client Client) WaitForImageRegionStatus(ctx context.Context, imageID, regi
490490
}
491491

492492
// WaitForMySQLDatabaseBackup waits for the backup with the given label to be available.
493+
//
493494
// Deprecated: WaitForMySQLDatabaseBackup is a deprecated method, as the backup endpoints are no longer supported in DBaaS V2.
494495
// In DBaaS V2, databases can be backed up via database forking.
495496
func (client Client) WaitForMySQLDatabaseBackup(ctx context.Context, dbID int, label string, timeoutSeconds int) (*MySQLDatabaseBackup, error) {
@@ -519,6 +520,7 @@ func (client Client) WaitForMySQLDatabaseBackup(ctx context.Context, dbID int, l
519520
}
520521

521522
// WaitForPostgresDatabaseBackup waits for the backup with the given label to be available.
523+
//
522524
// Deprecated: WaitForPostgresDatabaseBackup is a deprecated method, as the backup endpoints are no longer supported in DBaaS V2.
523525
// In DBaaS V2, databases can be backed up via database forking.
524526
func (client Client) WaitForPostgresDatabaseBackup(ctx context.Context, dbID int, label string, timeoutSeconds int) (*PostgresDatabaseBackup, error) {

0 commit comments

Comments
 (0)