From 84d17e26364b89484ee47a55d9e1bd10c030c519 Mon Sep 17 00:00:00 2001 From: Marques Johansson Date: Wed, 23 May 2018 19:40:30 -0400 Subject: [PATCH] use sed to replace lingering golinode references --- account.go | 2 +- account_events.go | 2 +- account_invoices.go | 2 +- account_notifications.go | 2 +- backups.go | 2 +- backups_test.go | 2 +- client.go | 4 ++-- client_test.go | 2 +- domain_records.go | 2 +- domains.go | 2 +- errors.go | 8 +++---- example/example_test.go | 20 ++++++++-------- example/main.go | 10 ++++---- images.go | 2 +- images_test.go | 2 +- instance_configs.go | 2 +- instance_disks.go | 2 +- instance_ips.go | 2 +- instance_snapshots.go | 2 +- instance_volumes.go | 2 +- instances.go | 2 +- instances_test.go | 2 +- kernels.go | 2 +- longview.go | 2 +- longview_subscriptions.go | 2 +- managed.go | 2 +- network_ips.go | 2 +- network_pools.go | 2 +- network_ranges.go | 2 +- nodebalancer.go | 2 +- nodebalancer_config_nodes.go | 2 +- nodebalancer_configs.go | 2 +- pagination.go | 2 +- profile.go | 2 +- regions.go | 2 +- regions_test.go | 2 +- resources.go | 2 +- resources_test.go | 2 +- snapshots_test.go | 2 +- stackscripts.go | 2 +- stackscripts_test.go | 2 +- support.go | 2 +- template.go.example | 2 +- test/fixtures.yaml | 46 ++++++++++++++++++------------------ test/main.go | 10 ++++---- types.go | 2 +- types_test.go | 2 +- util.go | 2 +- volumes.go | 2 +- volumes_test.go | 2 +- 50 files changed, 93 insertions(+), 93 deletions(-) diff --git a/account.go b/account.go index 5b8b3dcb5..62a2c8a7a 100644 --- a/account.go +++ b/account.go @@ -1,4 +1,4 @@ -package golinode +package linodego type Account struct { FirstName string `json:"first_name"` diff --git a/account_events.go b/account_events.go index 9c91c1968..77ec0fb72 100644 --- a/account_events.go +++ b/account_events.go @@ -1,4 +1,4 @@ -package golinode +package linodego import ( "time" diff --git a/account_invoices.go b/account_invoices.go index 3e754e590..23a248368 100644 --- a/account_invoices.go +++ b/account_invoices.go @@ -1,4 +1,4 @@ -package golinode +package linodego import ( "fmt" diff --git a/account_notifications.go b/account_notifications.go index 30dd7994f..1e4a33f68 100644 --- a/account_notifications.go +++ b/account_notifications.go @@ -1,4 +1,4 @@ -package golinode +package linodego import ( "time" diff --git a/backups.go b/backups.go index 7d0cb818f..bc9ee5fcf 100644 --- a/backups.go +++ b/backups.go @@ -1,4 +1,4 @@ -package golinode +package linodego import ( "fmt" diff --git a/backups_test.go b/backups_test.go index 71da0062b..74b9ca207 100644 --- a/backups_test.go +++ b/backups_test.go @@ -1,4 +1,4 @@ -package golinode +package linodego import ( "testing" diff --git a/client.go b/client.go index 9e225a0a5..65ed53337 100644 --- a/client.go +++ b/client.go @@ -1,4 +1,4 @@ -package golinode +package linodego import ( "fmt" @@ -16,7 +16,7 @@ const ( APIVersion = "v4" // APIProto connect to API with http(s) APIProto = "https" - // Version of golinode + // Version of linodego Version = "1.0.0" // APIEnvVar environment var to check for API token APIEnvVar = "LINODE_TOKEN" diff --git a/client_test.go b/client_test.go index 5e1898603..27fb249d6 100644 --- a/client_test.go +++ b/client_test.go @@ -1,4 +1,4 @@ -package golinode +package linodego import ( "testing" diff --git a/domain_records.go b/domain_records.go index 08447c423..a3d9ab7fb 100644 --- a/domain_records.go +++ b/domain_records.go @@ -1,4 +1,4 @@ -package golinode +package linodego import ( "fmt" diff --git a/domains.go b/domains.go index 3f8b418af..82800926f 100644 --- a/domains.go +++ b/domains.go @@ -1,4 +1,4 @@ -package golinode +package linodego import ( "fmt" diff --git a/errors.go b/errors.go index 00d67216c..f3486c451 100644 --- a/errors.go +++ b/errors.go @@ -1,4 +1,4 @@ -package golinode +package linodego import ( "fmt" @@ -18,7 +18,7 @@ const ( ErrorFromStringer = 3 ) -// Error wraps the GoLinode error with the relevant http.Response +// Error wraps the LinodeGo error with the relevant http.Response type Error struct { Response *http.Response Code int @@ -71,7 +71,7 @@ func (g Error) Error() string { return fmt.Sprintf("[%03d] %s", g.Code, g.Message) } -// NewError creates a golinode.Error with a Code identifying the source err type, +// NewError creates a linodego.Error with a Code identifying the source err type, // - ErrorFromString (1) from a string // - ErrorFromError (2) for an error // - ErrorFromStringer (3) for a Stringer @@ -103,7 +103,7 @@ func NewError(err interface{}) *Error { case fmt.Stringer: return &Error{Code: ErrorFromStringer, Message: e.String()} default: - log.Fatalln("Unsupported type to golinode.NewError") + log.Fatalln("Unsupported type to linodego.NewError") panic(err) } } diff --git a/example/example_test.go b/example/example_test.go index 9c85e1847..5239d4259 100644 --- a/example/example_test.go +++ b/example/example_test.go @@ -35,7 +35,7 @@ func ExampleListTypes_all() { func ExampleGetType_missing() { _, err := linodeClient.GetType("missing-type") if err != nil { - if v, ok := err.(*golinode.Error); ok { + if v, ok := err.(*linodego.Error); ok { fmt.Println("Request was:", v.Response.Request.URL) fmt.Println("Response was:", v.Response.Status) fmt.Println("Error was:", v) @@ -64,7 +64,7 @@ func ExampleListKernels_all() { } func ExampleListKernels_allWithOpts() { - filterOpt := golinode.NewListOptions(0, "") + filterOpt := linodego.NewListOptions(0, "") kernels, err := linodeClient.ListKernels(filterOpt) if err != nil { log.Fatal(err) @@ -83,7 +83,7 @@ func ExampleListKernels_allWithOpts() { } func ExampleListKernels_filtered() { - filterOpt := golinode.ListOptions{Filter: "{\"label\":\"Recovery - Finnix (kernel)\"}"} + filterOpt := linodego.ListOptions{Filter: "{\"label\":\"Recovery - Finnix (kernel)\"}"} kernels, err := linodeClient.ListKernels(&filterOpt) if err != nil { log.Fatal(err) @@ -98,7 +98,7 @@ func ExampleListKernels_filtered() { } func ExampleListKernels_page1() { - filterOpt := golinode.NewListOptions(1, "") + filterOpt := linodego.NewListOptions(1, "") kernels, err := linodeClient.ListKernels(filterOpt) if err != nil { log.Fatal(err) @@ -145,7 +145,7 @@ func ExampleGetKernel_specific() { func ExampleGetImage_missing() { _, err := linodeClient.GetImage("not-found") if err != nil { - if v, ok := err.(*golinode.Error); ok { + if v, ok := err.(*linodego.Error); ok { fmt.Println("Request was:", v.Response.Request.URL) fmt.Println("Response was:", v.Response.Status) fmt.Println("Error was:", v) @@ -158,7 +158,7 @@ func ExampleGetImage_missing() { // Error was: [404] Not found } func ExampleListImages_all() { - filterOpt := golinode.NewListOptions(0, "") + filterOpt := linodego.NewListOptions(0, "") images, err := linodeClient.ListImages(filterOpt) if err != nil { log.Fatal(err) @@ -175,7 +175,7 @@ func ExampleListImages_all() { // ExampleListImages_notfound demonstrates that an empty slice is returned, // not an error, when a filter matches no results. func ExampleListImages_notfound() { - filterOpt := golinode.ListOptions{Filter: "{\"label\":\"not-found\"}"} + filterOpt := linodego.ListOptions{Filter: "{\"label\":\"not-found\"}"} images, err := linodeClient.ListImages(&filterOpt) if err != nil { log.Fatal(err) @@ -187,9 +187,9 @@ func ExampleListImages_notfound() { } // ExampleListImages_notfound demonstrates that an error is returned by -// the API and golinode when an invalid filter is provided +// the API and linodego when an invalid filter is provided func ExampleListImages_badfilter() { - filterOpt := golinode.ListOptions{Filter: "{\"foo\":\"bar\"}"} + filterOpt := linodego.ListOptions{Filter: "{\"foo\":\"bar\"}"} images, err := linodeClient.ListImages(&filterOpt) if err == nil { log.Fatal(err) @@ -203,7 +203,7 @@ func ExampleListImages_badfilter() { } func ExampleListLongviewSubscriptions_page1() { - pageOpt := golinode.ListOptions{PageOptions: &golinode.PageOptions{Page: 1}} + pageOpt := linodego.ListOptions{PageOptions: &linodego.PageOptions{Page: 1}} subscriptions, err := linodeClient.ListLongviewSubscriptions(&pageOpt) if err != nil { log.Fatal(err) diff --git a/example/main.go b/example/main.go index 71514e189..7a15ea6d3 100644 --- a/example/main.go +++ b/example/main.go @@ -8,7 +8,7 @@ import ( "github.com/chiefy/linodego" ) -var linodeClient = golinode.NewClient(nil, nil) +var linodeClient = linodego.NewClient(nil, nil) var spendMoney = false func main() { @@ -27,7 +27,7 @@ func main() { } // Demonstrate endpoints that require an access token - linodeClient = golinode.NewClient(&apiToken, nil) + linodeClient = linodego.NewClient(&apiToken, nil) if err != nil { log.Fatal(err) } @@ -36,14 +36,14 @@ func main() { } func moreExamples_authenticated() { - var linode *golinode.Instance + var linode *linodego.Instance linode, err := linodeClient.GetInstance(1231) fmt.Println("## Instance request with Invalid ID") fmt.Println("### Linode\n", linode, "\n### Error\n", err) if spendMoney { - linode, err = linodeClient.CreateInstance(&golinode.InstanceCreateOptions{Region: "us-central", Type: "g5-nanode-1"}) + linode, err = linodeClient.CreateInstance(&linodego.InstanceCreateOptions{Region: "us-central", Type: "g5-nanode-1"}) if err != nil { log.Fatal(err) } @@ -125,7 +125,7 @@ func moreExamples_authenticated() { fmt.Println("### No Volumes") } - stackscripts, err := linodeClient.ListStackscripts(&golinode.ListOptions{Filter: "{\"mine\":true}"}) + stackscripts, err := linodeClient.ListStackscripts(&linodego.ListOptions{Filter: "{\"mine\":true}"}) if err != nil { log.Fatal(err) } diff --git a/images.go b/images.go index 25dec5028..d0a5feda2 100644 --- a/images.go +++ b/images.go @@ -1,4 +1,4 @@ -package golinode +package linodego import ( "fmt" diff --git a/images_test.go b/images_test.go index 4b0cbaa2f..42143fcae 100644 --- a/images_test.go +++ b/images_test.go @@ -1,4 +1,4 @@ -package golinode +package linodego import ( "testing" diff --git a/instance_configs.go b/instance_configs.go index 9b5b02a72..92db260ba 100644 --- a/instance_configs.go +++ b/instance_configs.go @@ -1,4 +1,4 @@ -package golinode +package linodego import ( "encoding/json" diff --git a/instance_disks.go b/instance_disks.go index 45dec34f9..f713dcb6e 100644 --- a/instance_disks.go +++ b/instance_disks.go @@ -1,4 +1,4 @@ -package golinode +package linodego import ( "encoding/json" diff --git a/instance_ips.go b/instance_ips.go index af35858bf..8116f924c 100644 --- a/instance_ips.go +++ b/instance_ips.go @@ -1,4 +1,4 @@ -package golinode +package linodego import ( "encoding/json" diff --git a/instance_snapshots.go b/instance_snapshots.go index 368054fcd..7823a4d8e 100644 --- a/instance_snapshots.go +++ b/instance_snapshots.go @@ -1,4 +1,4 @@ -package golinode +package linodego import ( "fmt" diff --git a/instance_volumes.go b/instance_volumes.go index b9f50d7eb..05dc8fa56 100644 --- a/instance_volumes.go +++ b/instance_volumes.go @@ -1,4 +1,4 @@ -package golinode +package linodego import ( "fmt" diff --git a/instances.go b/instances.go index cc2edef74..de3efcd36 100644 --- a/instances.go +++ b/instances.go @@ -1,4 +1,4 @@ -package golinode +package linodego import ( "encoding/json" diff --git a/instances_test.go b/instances_test.go index 78c9bfc70..dc244c866 100644 --- a/instances_test.go +++ b/instances_test.go @@ -1,4 +1,4 @@ -package golinode +package linodego import ( "testing" diff --git a/kernels.go b/kernels.go index 6f2b4f062..ee257db9e 100644 --- a/kernels.go +++ b/kernels.go @@ -1,4 +1,4 @@ -package golinode +package linodego import ( "fmt" diff --git a/longview.go b/longview.go index 49cc51b6d..72c869e0d 100644 --- a/longview.go +++ b/longview.go @@ -1,4 +1,4 @@ -package golinode +package linodego import ( "fmt" diff --git a/longview_subscriptions.go b/longview_subscriptions.go index 563655251..eb2e0ba13 100644 --- a/longview_subscriptions.go +++ b/longview_subscriptions.go @@ -1,4 +1,4 @@ -package golinode +package linodego import ( "fmt" diff --git a/managed.go b/managed.go index 96226a711..152361292 100644 --- a/managed.go +++ b/managed.go @@ -1 +1 @@ -package golinode +package linodego diff --git a/network_ips.go b/network_ips.go index 6a2a92c9b..52da70344 100644 --- a/network_ips.go +++ b/network_ips.go @@ -1,4 +1,4 @@ -package golinode +package linodego import ( "fmt" diff --git a/network_pools.go b/network_pools.go index 69dd187bd..878324725 100644 --- a/network_pools.go +++ b/network_pools.go @@ -1,4 +1,4 @@ -package golinode +package linodego import ( "fmt" diff --git a/network_ranges.go b/network_ranges.go index a6e0f2f0a..2b4d59396 100644 --- a/network_ranges.go +++ b/network_ranges.go @@ -1,4 +1,4 @@ -package golinode +package linodego import ( "fmt" diff --git a/nodebalancer.go b/nodebalancer.go index 49d8248a3..6a0bcaa48 100644 --- a/nodebalancer.go +++ b/nodebalancer.go @@ -1,4 +1,4 @@ -package golinode +package linodego import ( "fmt" diff --git a/nodebalancer_config_nodes.go b/nodebalancer_config_nodes.go index 64a4bfa4e..832a4b443 100644 --- a/nodebalancer_config_nodes.go +++ b/nodebalancer_config_nodes.go @@ -1,4 +1,4 @@ -package golinode +package linodego import ( "fmt" diff --git a/nodebalancer_configs.go b/nodebalancer_configs.go index 9f99ef819..6eeebea9e 100644 --- a/nodebalancer_configs.go +++ b/nodebalancer_configs.go @@ -1,4 +1,4 @@ -package golinode +package linodego import ( "fmt" diff --git a/pagination.go b/pagination.go index 686842b8a..fc6c45da7 100644 --- a/pagination.go +++ b/pagination.go @@ -1,4 +1,4 @@ -package golinode +package linodego /** * Pagination and Filtering types and helpers diff --git a/profile.go b/profile.go index 96226a711..152361292 100644 --- a/profile.go +++ b/profile.go @@ -1 +1 @@ -package golinode +package linodego diff --git a/regions.go b/regions.go index 5d3c58276..653f7410f 100644 --- a/regions.go +++ b/regions.go @@ -1,4 +1,4 @@ -package golinode +package linodego import ( "fmt" diff --git a/regions_test.go b/regions_test.go index 9f0cd86da..61e43379c 100644 --- a/regions_test.go +++ b/regions_test.go @@ -1,4 +1,4 @@ -package golinode +package linodego import ( "testing" diff --git a/resources.go b/resources.go index 0e5e65a0b..a0f95a9f7 100644 --- a/resources.go +++ b/resources.go @@ -1,4 +1,4 @@ -package golinode +package linodego import ( "bytes" diff --git a/resources_test.go b/resources_test.go index 5ca0448ab..ea6c0186d 100644 --- a/resources_test.go +++ b/resources_test.go @@ -1,4 +1,4 @@ -package golinode +package linodego import ( "fmt" diff --git a/snapshots_test.go b/snapshots_test.go index 96226a711..152361292 100644 --- a/snapshots_test.go +++ b/snapshots_test.go @@ -1 +1 @@ -package golinode +package linodego diff --git a/stackscripts.go b/stackscripts.go index 57a359ec4..264d4a89e 100644 --- a/stackscripts.go +++ b/stackscripts.go @@ -1,4 +1,4 @@ -package golinode +package linodego import ( "fmt" diff --git a/stackscripts_test.go b/stackscripts_test.go index a313faba6..874a8b282 100644 --- a/stackscripts_test.go +++ b/stackscripts_test.go @@ -1,4 +1,4 @@ -package golinode +package linodego import "testing" diff --git a/support.go b/support.go index 87534539f..0e65957a8 100644 --- a/support.go +++ b/support.go @@ -1,4 +1,4 @@ -package golinode +package linodego import ( "fmt" diff --git a/template.go.example b/template.go.example index 29d794411..0eb06f69d 100644 --- a/template.go.example +++ b/template.go.example @@ -1,4 +1,4 @@ -package golinode +package linodego import ( "fmt" diff --git a/test/fixtures.yaml b/test/fixtures.yaml index ef5f8b006..d68f3d1ec 100644 --- a/test/fixtures.yaml +++ b/test/fixtures.yaml @@ -8,7 +8,7 @@ interactions: Authorization: - Bearer awesometokenawesometokenawesometoken User-Agent: - - go-linode 1.0.0 https://github.com/chiefy/go-linode + - linodego 1.0.0 https://github.com/chiefy/linodego url: https://api.linode.com/v4/linode/types/g6-standard-1 method: GET response: @@ -77,7 +77,7 @@ interactions: Authorization: - Bearer awesometokenawesometokenawesometoken User-Agent: - - go-linode 1.0.0 https://github.com/chiefy/go-linode + - linodego 1.0.0 https://github.com/chiefy/linodego url: https://api.linode.com/v4/linode/types/does-not-exist method: GET response: @@ -127,7 +127,7 @@ interactions: Authorization: - Bearer awesometokenawesometokenawesometoken User-Agent: - - go-linode 1.0.0 https://github.com/chiefy/go-linode + - linodego 1.0.0 https://github.com/chiefy/linodego url: https://api.linode.com/v4/linode/types method: GET response: @@ -243,7 +243,7 @@ interactions: Authorization: - Bearer awesometokenawesometokenawesometoken User-Agent: - - go-linode 1.0.0 https://github.com/chiefy/go-linode + - linodego 1.0.0 https://github.com/chiefy/linodego url: https://api.linode.com/v4/linode/kernels method: GET response: @@ -502,7 +502,7 @@ interactions: Authorization: - Bearer awesometokenawesometokenawesometoken User-Agent: - - go-linode 1.0.0 https://github.com/chiefy/go-linode + - linodego 1.0.0 https://github.com/chiefy/linodego url: https://api.linode.com/v4/linode/kernels?page=2 method: GET response: @@ -767,7 +767,7 @@ interactions: Authorization: - Bearer awesometokenawesometokenawesometoken User-Agent: - - go-linode 1.0.0 https://github.com/chiefy/go-linode + - linodego 1.0.0 https://github.com/chiefy/linodego url: https://api.linode.com/v4/linode/kernels?page=3 method: GET response: @@ -872,7 +872,7 @@ interactions: Authorization: - Bearer awesometokenawesometokenawesometoken User-Agent: - - go-linode 1.0.0 https://github.com/chiefy/go-linode + - linodego 1.0.0 https://github.com/chiefy/linodego X-Filter: - '{"label":"Recovery - Finnix (kernel)"}' url: https://api.linode.com/v4/linode/kernels @@ -944,7 +944,7 @@ interactions: Authorization: - Bearer awesometokenawesometokenawesometoken User-Agent: - - go-linode 1.0.0 https://github.com/chiefy/go-linode + - linodego 1.0.0 https://github.com/chiefy/linodego url: https://api.linode.com/v4/linode/kernels?page=1 method: GET response: @@ -1205,7 +1205,7 @@ interactions: Authorization: - Bearer awesometokenawesometokenawesometoken User-Agent: - - go-linode 1.0.0 https://github.com/chiefy/go-linode + - linodego 1.0.0 https://github.com/chiefy/linodego url: https://api.linode.com/v4/images method: GET response: @@ -1330,7 +1330,7 @@ interactions: Authorization: - Bearer awesometokenawesometokenawesometoken User-Agent: - - go-linode 1.0.0 https://github.com/chiefy/go-linode + - linodego 1.0.0 https://github.com/chiefy/linodego url: https://api.linode.com/v4/images/does-not-exist method: GET response: @@ -1380,7 +1380,7 @@ interactions: Authorization: - Bearer awesometokenawesometokenawesometoken User-Agent: - - go-linode 1.0.0 https://github.com/chiefy/go-linode + - linodego 1.0.0 https://github.com/chiefy/linodego url: https://api.linode.com/v4/images/linode/ubuntu16.04lts method: GET response: @@ -1448,7 +1448,7 @@ interactions: Authorization: - Bearer awesometokenawesometokenawesometoken User-Agent: - - go-linode 1.0.0 https://github.com/chiefy/go-linode + - linodego 1.0.0 https://github.com/chiefy/linodego url: https://api.linode.com/v4/longview/subscriptions?page=1 method: GET response: @@ -1520,7 +1520,7 @@ interactions: Authorization: - Bearer awesometokenawesometokenawesometoken User-Agent: - - go-linode 1.0.0 https://github.com/chiefy/go-linode + - linodego 1.0.0 https://github.com/chiefy/linodego url: https://api.linode.com/v4/regions method: GET response: @@ -1590,7 +1590,7 @@ interactions: Authorization: - Bearer awesometokenawesometokenawesometoken User-Agent: - - go-linode 1.0.0 https://github.com/chiefy/go-linode + - linodego 1.0.0 https://github.com/chiefy/linodego url: https://api.linode.com/v4/linode/instances method: GET response: @@ -1663,7 +1663,7 @@ interactions: Authorization: - Bearer awesometokenawesometokenawesometoken User-Agent: - - go-linode 1.0.0 https://github.com/chiefy/go-linode + - linodego 1.0.0 https://github.com/chiefy/linodego url: https://api.linode.com/v4/linode/instances/8104671 method: GET response: @@ -1735,7 +1735,7 @@ interactions: Authorization: - Bearer awesometokenawesometokenawesometoken User-Agent: - - go-linode 1.0.0 https://github.com/chiefy/go-linode + - linodego 1.0.0 https://github.com/chiefy/linodego url: https://api.linode.com/v4/linode/instances/8104671/backups method: GET response: @@ -1806,7 +1806,7 @@ interactions: Authorization: - Bearer awesometokenawesometokenawesometoken User-Agent: - - go-linode 1.0.0 https://github.com/chiefy/go-linode + - linodego 1.0.0 https://github.com/chiefy/linodego url: https://api.linode.com/v4/linode/instances/8104671/disks method: GET response: @@ -1876,7 +1876,7 @@ interactions: Authorization: - Bearer awesometokenawesometokenawesometoken User-Agent: - - go-linode 1.0.0 https://github.com/chiefy/go-linode + - linodego 1.0.0 https://github.com/chiefy/linodego url: https://api.linode.com/v4/linode/instances/8104671/configs method: GET response: @@ -1949,7 +1949,7 @@ interactions: Authorization: - Bearer awesometokenawesometokenawesometoken User-Agent: - - go-linode 1.0.0 https://github.com/chiefy/go-linode + - linodego 1.0.0 https://github.com/chiefy/linodego url: https://api.linode.com/v4/linode/instances/8104671/volumes method: GET response: @@ -2018,7 +2018,7 @@ interactions: Authorization: - Bearer awesometokenawesometokenawesometoken User-Agent: - - go-linode 1.0.0 https://github.com/chiefy/go-linode + - linodego 1.0.0 https://github.com/chiefy/linodego url: https://api.linode.com/v4/linode/stackscripts?page=1 method: GET response: @@ -7928,7 +7928,7 @@ interactions: Authorization: - Bearer awesometokenawesometokenawesometoken User-Agent: - - go-linode 1.0.0 https://github.com/chiefy/go-linode + - linodego 1.0.0 https://github.com/chiefy/linodego url: https://api.linode.com/v4/linode/stackscripts/7 method: GET response: @@ -8023,7 +8023,7 @@ interactions: Authorization: - Bearer awesometokenawesometokenawesometoken User-Agent: - - go-linode 1.0.0 https://github.com/chiefy/go-linode + - linodego 1.0.0 https://github.com/chiefy/linodego url: https://api.linode.com/v4/volumes method: GET response: @@ -8092,7 +8092,7 @@ interactions: Authorization: - Bearer awesometokenawesometokenawesometoken User-Agent: - - go-linode 1.0.0 https://github.com/chiefy/go-linode + - linodego 1.0.0 https://github.com/chiefy/linodego url: https://api.linode.com/v4/volumes/7568 method: GET response: diff --git a/test/main.go b/test/main.go index 84e8a1cec..3f03fdbf0 100644 --- a/test/main.go +++ b/test/main.go @@ -32,7 +32,7 @@ func main() { } defer r.Stop() // Make sure recorder is stopped once done with it - c := golinode.NewClient(nil, r) + c := linodego.NewClient(nil, r) if err != nil { log.Fatal(err) } @@ -54,13 +54,13 @@ func main() { log.Fatal(err) } - filterOpt := golinode.ListOptions{Filter: "{\"label\":\"Recovery - Finnix (kernel)\"}"} + filterOpt := linodego.ListOptions{Filter: "{\"label\":\"Recovery - Finnix (kernel)\"}"} _, err = c.ListKernels(&filterOpt) if err != nil { log.Fatal(err) } - _, err = c.ListKernels(golinode.NewListOptions(1, "")) + _, err = c.ListKernels(linodego.NewListOptions(1, "")) if err != nil { log.Fatal(err) } @@ -77,7 +77,7 @@ func main() { log.Fatal(err) } - pageOpt := golinode.ListOptions{PageOptions: &golinode.PageOptions{Page: 1}} + pageOpt := linodego.ListOptions{PageOptions: &linodego.PageOptions{Page: 1}} _, err = c.ListLongviewSubscriptions(&pageOpt) if err != nil { log.Fatal(err) @@ -125,7 +125,7 @@ func main() { } log.Println("Succesfully got linode instance volumes") - _, err = c.ListStackscripts(golinode.NewListOptions(1, "")) + _, err = c.ListStackscripts(linodego.NewListOptions(1, "")) if err != nil { log.Fatal(err) } diff --git a/types.go b/types.go index 683ba6419..1e299e086 100644 --- a/types.go +++ b/types.go @@ -1,4 +1,4 @@ -package golinode +package linodego import ( "fmt" diff --git a/types_test.go b/types_test.go index 912afd767..df561f2f6 100644 --- a/types_test.go +++ b/types_test.go @@ -1,4 +1,4 @@ -package golinode +package linodego import ( "testing" diff --git a/util.go b/util.go index 3049d2c4e..a37a304e4 100644 --- a/util.go +++ b/util.go @@ -1,4 +1,4 @@ -package golinode +package linodego import "time" diff --git a/volumes.go b/volumes.go index 4611100d9..70771782f 100644 --- a/volumes.go +++ b/volumes.go @@ -1,4 +1,4 @@ -package golinode +package linodego import ( "encoding/json" diff --git a/volumes_test.go b/volumes_test.go index 215911655..955196d69 100644 --- a/volumes_test.go +++ b/volumes_test.go @@ -1,4 +1,4 @@ -package golinode +package linodego import ( "testing"