Skip to content

Commit

Permalink
PLS
Browse files Browse the repository at this point in the history
  • Loading branch information
lgarber-akamai committed Feb 13, 2023
1 parent a249a8b commit 984ff53
Show file tree
Hide file tree
Showing 273 changed files with 1,992 additions and 1,992 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug.yml
Expand Up @@ -17,7 +17,7 @@ body:
attributes:
label: API Wrapper Version
description: What version of our wrapper are you running?
placeholder: github.com/linode/linodego v1.0.0
placeholder: github.com/lgarber-akamai/linodego v1.0.0
validations:
required: true

Expand Down
14 changes: 7 additions & 7 deletions README.md
@@ -1,22 +1,22 @@
# linodego

![Build](https://img.shields.io/github/workflow/status/linode/linodego/Testing/main?label=tests)
[![Release](https://img.shields.io/github/v/release/linode/linodego)](https://github.com/linode/linodego/releases/latest)
[![GoDoc](https://godoc.org/github.com/linode/linodego?status.svg)](https://godoc.org/github.com/linode/linodego)
[![Go Report Card](https://goreportcard.com/badge/github.com/linode/linodego)](https://goreportcard.com/report/github.com/linode/linodego)
[![Release](https://img.shields.io/github/v/release/linode/linodego)](https://github.com/lgarber-akamai/linodego/releases/latest)
[![GoDoc](https://godoc.org/github.com/lgarber-akamai/linodego?status.svg)](https://godoc.org/github.com/lgarber-akamai/linodego)
[![Go Report Card](https://goreportcard.com/badge/github.com/lgarber-akamai/linodego)](https://goreportcard.com/report/github.com/lgarber-akamai/linodego)
[![codecov](https://codecov.io/gh/linode/linodego/branch/main/graph/badge.svg)](https://codecov.io/gh/linode/linodego)

Go client for [Linode REST v4 API](https://developers.linode.com/api/v4)

## Installation

```sh
go get -u github.com/linode/linodego
go get -u github.com/lgarber-akamai/linodego
```

## Documentation

See [godoc](https://godoc.org/github.com/linode/linodego) for a complete reference.
See [godoc](https://godoc.org/github.com/lgarber-akamai/linodego) for a complete reference.

The API generally follows the naming patterns prescribed in the [OpenAPIv3 document for Linode APIv4](https://developers.linode.com/api/v4).

Expand All @@ -35,7 +35,7 @@ import (
"context"
"fmt"

"github.com/linode/linodego"
"github.com/lgarber-akamai/linodego"
"golang.org/x/oauth2"

"log"
Expand Down Expand Up @@ -146,7 +146,7 @@ linodes, err := linodego.ListInstances(context.Background(), linodego.NewListOpt
### Response Caching

By default, certain endpoints with static responses will be cached into memory.
Endpoints with cached responses are identified in their [accompanying documentation](https://pkg.go.dev/github.com/linode/linodego?utm_source=godoc).
Endpoints with cached responses are identified in their [accompanying documentation](https://pkg.go.dev/github.com/lgarber-akamai/linodego?utm_source=godoc).

The default cache entry expiry time is `15` minutes. Certain endpoints may override this value to allow for more frequent refreshes (e.g. `client.GetRegion(...)`).
The global cache expiry time can be customized using the `client.SetGlobalCacheExpiration(...)` method.
Expand Down
4 changes: 2 additions & 2 deletions account_events.go
Expand Up @@ -7,8 +7,8 @@ import (
"time"

"github.com/go-resty/resty/v2"
"github.com/linode/linodego/internal/duration"
"github.com/linode/linodego/internal/parseabletime"
"github.com/lgarber-akamai/linodego/internal/duration"
"github.com/lgarber-akamai/linodego/internal/parseabletime"
)

// Event represents an action taken on the Account.
Expand Down
2 changes: 1 addition & 1 deletion account_invoices.go
Expand Up @@ -7,7 +7,7 @@ import (
"time"

"github.com/go-resty/resty/v2"
"github.com/linode/linodego/internal/parseabletime"
"github.com/lgarber-akamai/linodego/internal/parseabletime"
)

// Invoice structs reflect an invoice for billable activity on the account.
Expand Down
2 changes: 1 addition & 1 deletion account_logins.go
Expand Up @@ -7,7 +7,7 @@ import (
"time"

"github.com/go-resty/resty/v2"
"github.com/linode/linodego/internal/parseabletime"
"github.com/lgarber-akamai/linodego/internal/parseabletime"
)

type Login struct {
Expand Down
2 changes: 1 addition & 1 deletion account_notifications.go
Expand Up @@ -6,7 +6,7 @@ import (
"time"

"github.com/go-resty/resty/v2"
"github.com/linode/linodego/internal/parseabletime"
"github.com/lgarber-akamai/linodego/internal/parseabletime"
)

// Notification represents a notification on an Account
Expand Down
2 changes: 1 addition & 1 deletion account_payments.go
Expand Up @@ -7,7 +7,7 @@ import (
"time"

"github.com/go-resty/resty/v2"
"github.com/linode/linodego/internal/parseabletime"
"github.com/lgarber-akamai/linodego/internal/parseabletime"
)

// Payment represents a Payment object
Expand Down
2 changes: 1 addition & 1 deletion databases.go
Expand Up @@ -7,7 +7,7 @@ import (
"time"

"github.com/go-resty/resty/v2"
"github.com/linode/linodego/internal/parseabletime"
"github.com/lgarber-akamai/linodego/internal/parseabletime"
)

type (
Expand Down
2 changes: 1 addition & 1 deletion firewall_devices.go
Expand Up @@ -7,7 +7,7 @@ import (
"time"

"github.com/go-resty/resty/v2"
"github.com/linode/linodego/internal/parseabletime"
"github.com/lgarber-akamai/linodego/internal/parseabletime"
)

// FirewallDeviceType represents the different kinds of devices governable by a Firewall
Expand Down
2 changes: 1 addition & 1 deletion firewalls.go
Expand Up @@ -7,7 +7,7 @@ import (
"time"

"github.com/go-resty/resty/v2"
"github.com/linode/linodego/internal/parseabletime"
"github.com/lgarber-akamai/linodego/internal/parseabletime"
)

// FirewallStatus enum type
Expand Down
4 changes: 2 additions & 2 deletions go.work.sum
Expand Up @@ -25,8 +25,8 @@ github.com/googleapis/gnostic v0.1.0/go.mod h1:sJBsCZ4ayReDTBIg8b9dl28c5xFWyhBTV
github.com/gophercloud/gophercloud v0.1.0/go.mod h1:vxM41WHh5uqHVBMZHzuwNOHh8XEoIEcSTewFxm1c5g8=
github.com/json-iterator/go v1.1.8/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4=
github.com/kisielk/errcheck v1.2.0/go.mod h1:/BMXB+zMLi60iA8Vv6Ksmxu/1UDYcXs4uQLJ+jE2L00=
github.com/linode/linodego v0.20.1 h1:Kw5Qes0E0wlKVx5EbITI+F/ambO6G+PQyK0Yi7i4EyQ=
github.com/linode/linodego v0.20.1/go.mod h1:XOWXRHjqeU2uPS84tKLgfWIfTlv3TYzCS0io4GOQzEI=
github.com/lgarber-akamai/linodego v0.20.1 h1:Kw5Qes0E0wlKVx5EbITI+F/ambO6G+PQyK0Yi7i4EyQ=
github.com/lgarber-akamai/linodego v0.20.1/go.mod h1:XOWXRHjqeU2uPS84tKLgfWIfTlv3TYzCS0io4GOQzEI=
github.com/mailru/easyjson v0.0.0-20160728113105-d5b7844b561a/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc=
github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0=
github.com/onsi/ginkgo v1.11.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
Expand Down
2 changes: 1 addition & 1 deletion images.go
Expand Up @@ -8,7 +8,7 @@ import (
"time"

"github.com/go-resty/resty/v2"
"github.com/linode/linodego/internal/parseabletime"
"github.com/lgarber-akamai/linodego/internal/parseabletime"
)

// ImageStatus represents the status of an Image.
Expand Down
2 changes: 1 addition & 1 deletion instance_configs.go
Expand Up @@ -7,7 +7,7 @@ import (
"time"

"github.com/go-resty/resty/v2"
"github.com/linode/linodego/internal/parseabletime"
"github.com/lgarber-akamai/linodego/internal/parseabletime"
)

// InstanceConfig represents all of the settings that control the boot and run configuration of a Linode Instance
Expand Down
2 changes: 1 addition & 1 deletion instance_disks.go
Expand Up @@ -7,7 +7,7 @@ import (
"time"

"github.com/go-resty/resty/v2"
"github.com/linode/linodego/internal/parseabletime"
"github.com/lgarber-akamai/linodego/internal/parseabletime"
)

// InstanceDisk represents an Instance Disk object
Expand Down
2 changes: 1 addition & 1 deletion instance_snapshots.go
Expand Up @@ -6,7 +6,7 @@ import (
"fmt"
"time"

"github.com/linode/linodego/internal/parseabletime"
"github.com/lgarber-akamai/linodego/internal/parseabletime"
)

// InstanceBackupsResponse response struct for backup snapshot
Expand Down
2 changes: 1 addition & 1 deletion instances.go
Expand Up @@ -8,7 +8,7 @@ import (
"time"

"github.com/go-resty/resty/v2"
"github.com/linode/linodego/internal/parseabletime"
"github.com/lgarber-akamai/linodego/internal/parseabletime"
)

/*
Expand Down
2 changes: 1 addition & 1 deletion k8s/clientset.go
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/base64"
"fmt"

"github.com/linode/linodego"
"github.com/lgarber-akamai/linodego"
"k8s.io/client-go/kubernetes"
"k8s.io/client-go/tools/clientcmd"
"k8s.io/client-go/transport"
Expand Down
6 changes: 3 additions & 3 deletions k8s/go.mod
@@ -1,7 +1,7 @@
module github.com/linode/linodego/k8s
module github.com/lgarber-akamai/linodego/k8s

require (
github.com/linode/linodego v0.20.1
github.com/lgarber-akamai/linodego v0.20.1
k8s.io/api v0.23.4
k8s.io/apimachinery v0.23.4
k8s.io/client-go v0.23.4
Expand Down Expand Up @@ -41,6 +41,6 @@ require (
sigs.k8s.io/yaml v1.2.0 // indirect
)

replace github.com/linode/linodego => ../
replace github.com/lgarber-akamai/linodego => ../

go 1.18
4 changes: 2 additions & 2 deletions k8s/pkg/condition/lke.go
Expand Up @@ -4,8 +4,8 @@ import (
"context"
"fmt"

"github.com/linode/linodego"
"github.com/linode/linodego/k8s"
"github.com/lgarber-akamai/linodego"
"github.com/lgarber-akamai/linodego/k8s"
corev1 "k8s.io/api/core/v1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
Expand Down
2 changes: 1 addition & 1 deletion lke_clusters.go
Expand Up @@ -7,7 +7,7 @@ import (
"time"

"github.com/go-resty/resty/v2"
"github.com/linode/linodego/internal/parseabletime"
"github.com/lgarber-akamai/linodego/internal/parseabletime"
)

// LKEClusterStatus represents the status of an LKECluster
Expand Down
2 changes: 1 addition & 1 deletion mongo.go
Expand Up @@ -7,7 +7,7 @@ import (
"time"

"github.com/go-resty/resty/v2"
"github.com/linode/linodego/internal/parseabletime"
"github.com/lgarber-akamai/linodego/internal/parseabletime"
)

type MongoDatabaseTarget string
Expand Down
2 changes: 1 addition & 1 deletion mysql.go
Expand Up @@ -7,7 +7,7 @@ import (
"time"

"github.com/go-resty/resty/v2"
"github.com/linode/linodego/internal/parseabletime"
"github.com/lgarber-akamai/linodego/internal/parseabletime"
)

type MySQLDatabaseTarget string
Expand Down
2 changes: 1 addition & 1 deletion nodebalancer.go
Expand Up @@ -7,7 +7,7 @@ import (
"time"

"github.com/go-resty/resty/v2"
"github.com/linode/linodego/internal/parseabletime"
"github.com/lgarber-akamai/linodego/internal/parseabletime"
)

// NodeBalancer represents a NodeBalancer object
Expand Down
2 changes: 1 addition & 1 deletion object_storage_buckets.go
Expand Up @@ -7,7 +7,7 @@ import (
"time"

"github.com/go-resty/resty/v2"
"github.com/linode/linodego/internal/parseabletime"
"github.com/lgarber-akamai/linodego/internal/parseabletime"
)

// ObjectStorageBucket represents a ObjectStorage object
Expand Down
2 changes: 1 addition & 1 deletion postgres.go
Expand Up @@ -7,7 +7,7 @@ import (
"time"

"github.com/go-resty/resty/v2"
"github.com/linode/linodego/internal/parseabletime"
"github.com/lgarber-akamai/linodego/internal/parseabletime"
)

type PostgresDatabaseTarget string
Expand Down
2 changes: 1 addition & 1 deletion profile_sshkeys.go
Expand Up @@ -7,7 +7,7 @@ import (
"time"

"github.com/go-resty/resty/v2"
"github.com/linode/linodego/internal/parseabletime"
"github.com/lgarber-akamai/linodego/internal/parseabletime"
)

// SSHKey represents a SSHKey object
Expand Down
2 changes: 1 addition & 1 deletion profile_tfa.go
Expand Up @@ -5,7 +5,7 @@ import (
"encoding/json"
"time"

"github.com/linode/linodego/internal/parseabletime"
"github.com/lgarber-akamai/linodego/internal/parseabletime"
)

// TwoFactorSecret contains fields returned by CreateTwoFactorSecret
Expand Down
2 changes: 1 addition & 1 deletion profile_tokens.go
Expand Up @@ -7,7 +7,7 @@ import (
"time"

"github.com/go-resty/resty/v2"
"github.com/linode/linodego/internal/parseabletime"
"github.com/lgarber-akamai/linodego/internal/parseabletime"
)

// Token represents a Token object
Expand Down
2 changes: 1 addition & 1 deletion stackscripts.go
Expand Up @@ -7,7 +7,7 @@ import (
"time"

"github.com/go-resty/resty/v2"
"github.com/linode/linodego/internal/parseabletime"
"github.com/lgarber-akamai/linodego/internal/parseabletime"
)

// Stackscript represents a Linode StackScript
Expand Down
10 changes: 5 additions & 5 deletions test/go.mod
@@ -1,11 +1,11 @@
module github.com/linode/linodego/test
module github.com/lgarber-akamai/linodego/test

require (
github.com/dnaeon/go-vcr v1.1.0
github.com/google/go-cmp v0.5.7
github.com/jarcoal/httpmock v1.2.0
github.com/linode/linodego v0.20.1
github.com/linode/linodego/k8s v0.0.0-00010101000000-000000000000
github.com/lgarber-akamai/linodego v0.20.1
github.com/lgarber-akamai/linodego/k8s v0.0.0-00010101000000-000000000000
golang.org/x/net v0.0.0-20211209124913-491a49abca63
golang.org/x/oauth2 v0.0.0-20210819190943-2bc19b11175f
k8s.io/client-go v0.23.4
Expand Down Expand Up @@ -47,6 +47,6 @@ require (

go 1.18

replace github.com/linode/linodego => ../
replace github.com/lgarber-akamai/linodego => ../

replace github.com/linode/linodego/k8s => ../k8s
replace github.com/lgarber-akamai/linodego/k8s => ../k8s
2 changes: 1 addition & 1 deletion test/integration/account_events_test.go
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"testing"

"github.com/linode/linodego"
"github.com/lgarber-akamai/linodego"
)

func TestAccountEvents_List(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion test/integration/account_notifications_test.go
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"testing"

"github.com/linode/linodego"
"github.com/lgarber-akamai/linodego"
)

func TestAccountNotifications_List(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions test/integration/account_oauth_client_test.go
Expand Up @@ -4,8 +4,8 @@ import (
"context"
"testing"

"github.com/linode/linodego"
. "github.com/linode/linodego"
"github.com/lgarber-akamai/linodego"
. "github.com/lgarber-akamai/linodego"
)

func TestOAuthClient_GetMissing(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion test/integration/account_payments_test.go
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"testing"

. "github.com/linode/linodego"
. "github.com/lgarber-akamai/linodego"
)

func TestPayment_GetMissing(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion test/integration/account_user_grants_test.go
Expand Up @@ -5,7 +5,7 @@ import (
"testing"

"github.com/google/go-cmp/cmp"
"github.com/linode/linodego"
"github.com/lgarber-akamai/linodego"
)

func TestUserGrants_Update(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions test/integration/account_users_test.go
Expand Up @@ -4,8 +4,8 @@ import (
"context"
"testing"

"github.com/linode/linodego"
. "github.com/linode/linodego"
"github.com/lgarber-akamai/linodego"
. "github.com/lgarber-akamai/linodego"
)

const usernamePrefix = "linodegotest-"
Expand Down

0 comments on commit 984ff53

Please sign in to comment.