Skip to content

Commit

Permalink
Merge branch 'equinix:main' into interconn-create-enhancement
Browse files Browse the repository at this point in the history
  • Loading branch information
aayushrangwala authored Dec 18, 2023
2 parents ad1ff3a + 45b7930 commit 948a0d6
Show file tree
Hide file tree
Showing 58 changed files with 59 additions and 59 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/equinix/metal-cli
go 1.19

require (
github.com/equinix-labs/metal-go v0.29.0
github.com/equinix/equinix-sdk-go v0.30.0
github.com/olekukonko/tablewriter v0.0.5
github.com/packethost/packngo v0.30.0
github.com/pkg/errors v0.9.1
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1m
github.com/envoyproxy/go-control-plane v0.9.7/go.mod h1:cwu0lG7PUMfa9snN8LXBig5ynNVH9qI8YYLbd1fK2po=
github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk=
github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
github.com/equinix-labs/metal-go v0.29.0 h1:dTi48+ni4Xbey0VJjHrkoAOxJvVPl9ukA/6DoJv6o8s=
github.com/equinix-labs/metal-go v0.29.0/go.mod h1:SmxCklxW+KjmBLVMdEXgtFO5gD5/b4N0VxcNgUYbOH4=
github.com/equinix/equinix-sdk-go v0.30.0 h1:u/+/p00mfAhDhoLvP1jTKruXndAYWoTwqN65BTbAPCg=
github.com/equinix/equinix-sdk-go v0.30.0/go.mod h1:qnpdRzVftHFNaJFk1VSIrAOTLrIoeDrxzUr3l8ARyvQ=
github.com/frankban/quicktest v1.14.4 h1:g2rn0vABPOOXmZUj+vbmUp0lPoXEMuhTpIluN0XL9UY=
github.com/fsnotify/fsnotify v1.6.0 h1:n+5WquG0fcWoWp6xPWfHdbskMCQaFnG6PfBrh1Ky4HY=
github.com/fsnotify/fsnotify v1.6.0/go.mod h1:sl3t1tCWJFWoRz9R8WJCbQihKKwmorjAbSClcnxKAGw=
Expand Down
2 changes: 1 addition & 1 deletion internal/capacity/capacity.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
package capacity

import (
metal "github.com/equinix-labs/metal-go/metal/v1"
metal "github.com/equinix/equinix-sdk-go/services/metalv1"
"github.com/equinix/metal-cli/internal/outputs"
"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/capacity/check.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
"fmt"
"strconv"

metal "github.com/equinix-labs/metal-go/metal/v1"
metal "github.com/equinix/equinix-sdk-go/services/metalv1"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/capacity/retrieve.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (

"errors"

metal "github.com/equinix-labs/metal-go/metal/v1"
metal "github.com/equinix/equinix-sdk-go/services/metalv1"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/cli/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (
"runtime"
"strings"

metal "github.com/equinix-labs/metal-go/metal/v1"
metal "github.com/equinix/equinix-sdk-go/services/metalv1"
"github.com/packethost/packngo"
"github.com/spf13/cobra"
"github.com/spf13/pflag"
Expand Down
2 changes: 1 addition & 1 deletion internal/devices/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
"os"
"time"

metal "github.com/equinix-labs/metal-go/metal/v1"
metal "github.com/equinix/equinix-sdk-go/services/metalv1"
"github.com/spf13/cobra"
"github.com/spf13/viper"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/devices/device.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
package devices

import (
metal "github.com/equinix-labs/metal-go/metal/v1"
metal "github.com/equinix/equinix-sdk-go/services/metalv1"
"github.com/equinix/metal-cli/internal/outputs"
"github.com/spf13/cobra"
"github.com/spf13/viper"
Expand Down
2 changes: 1 addition & 1 deletion internal/devices/reboot.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
"context"
"fmt"

metal "github.com/equinix-labs/metal-go/metal/v1"
metal "github.com/equinix/equinix-sdk-go/services/metalv1"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/devices/reinstall.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
"context"
"fmt"

metal "github.com/equinix-labs/metal-go/metal/v1"
metal "github.com/equinix/equinix-sdk-go/services/metalv1"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/devices/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
"context"
"fmt"

metal "github.com/equinix-labs/metal-go/metal/v1"
metal "github.com/equinix/equinix-sdk-go/services/metalv1"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/devices/stop.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
"context"
"fmt"

metal "github.com/equinix-labs/metal-go/metal/v1"
metal "github.com/equinix/equinix-sdk-go/services/metalv1"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/devices/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
"fmt"
"os"

metal "github.com/equinix-labs/metal-go/metal/v1"
metal "github.com/equinix/equinix-sdk-go/services/metalv1"

"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/events/event.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
package events

import (
metal "github.com/equinix-labs/metal-go/metal/v1"
metal "github.com/equinix/equinix-sdk-go/services/metalv1"
"github.com/equinix/metal-cli/internal/outputs"
"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/events/retrieve.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
"context"
"fmt"

metal "github.com/equinix-labs/metal-go/metal/v1"
metal "github.com/equinix/equinix-sdk-go/services/metalv1"
"github.com/equinix/metal-cli/internal/outputs"
pager "github.com/equinix/metal-cli/internal/pagination"
"github.com/spf13/cobra"
Expand Down
2 changes: 1 addition & 1 deletion internal/gateway/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
"fmt"
"strconv"

metal "github.com/equinix-labs/metal-go/metal/v1"
metal "github.com/equinix/equinix-sdk-go/services/metalv1"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/gateway/gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ package gateway
import (
"github.com/equinix/metal-cli/internal/outputs"

metal "github.com/equinix-labs/metal-go/metal/v1"
metal "github.com/equinix/equinix-sdk-go/services/metalv1"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/gateway/retrieve.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
"fmt"
"strconv"

metal "github.com/equinix-labs/metal-go/metal/v1"
metal "github.com/equinix/equinix-sdk-go/services/metalv1"

"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/init/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (
"path/filepath"
"syscall"

metal "github.com/equinix-labs/metal-go/metal/v1"
metal "github.com/equinix/equinix-sdk-go/services/metalv1"
pager "github.com/equinix/metal-cli/internal/pagination"
"github.com/spf13/cobra"
"golang.org/x/term"
Expand Down
2 changes: 1 addition & 1 deletion internal/interconnections/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"errors"
"fmt"

metal "github.com/equinix-labs/metal-go/metal/v1"
metal "github.com/equinix/equinix-sdk-go/services/metalv1"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/interconnections/interconnections.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package interconnections

import (
metal "github.com/equinix-labs/metal-go/metal/v1"
metal "github.com/equinix/equinix-sdk-go/services/metalv1"
"github.com/equinix/metal-cli/internal/outputs"
"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/interconnections/retrieve.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"fmt"

metal "github.com/equinix-labs/metal-go/metal/v1"
metal "github.com/equinix/equinix-sdk-go/services/metalv1"
pager "github.com/equinix/metal-cli/internal/pagination"
"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/interconnections/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"fmt"

metal "github.com/equinix-labs/metal-go/metal/v1"
metal "github.com/equinix/equinix-sdk-go/services/metalv1"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/ips/assign.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
"fmt"
"strconv"

metal "github.com/equinix-labs/metal-go/metal/v1"
metal "github.com/equinix/equinix-sdk-go/services/metalv1"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/ips/available.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
"fmt"
"strconv"

metal "github.com/equinix-labs/metal-go/metal/v1"
metal "github.com/equinix/equinix-sdk-go/services/metalv1"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/ips/ip.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
package ips

import (
metal "github.com/equinix-labs/metal-go/metal/v1"
metal "github.com/equinix/equinix-sdk-go/services/metalv1"
"github.com/equinix/metal-cli/internal/outputs"
"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/ips/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
"fmt"
"strconv"

metal "github.com/equinix-labs/metal-go/metal/v1"
metal "github.com/equinix/equinix-sdk-go/services/metalv1"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/ips/retrieve.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
"fmt"
"strconv"

metal "github.com/equinix-labs/metal-go/metal/v1"
metal "github.com/equinix/equinix-sdk-go/services/metalv1"
pager "github.com/equinix/metal-cli/internal/pagination"
"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/metros/metro.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
package metros

import (
metal "github.com/equinix-labs/metal-go/metal/v1"
metal "github.com/equinix/equinix-sdk-go/services/metalv1"
"github.com/equinix/metal-cli/internal/outputs"
"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/organizations/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
"context"
"fmt"

metal "github.com/equinix-labs/metal-go/metal/v1"
metal "github.com/equinix/equinix-sdk-go/services/metalv1"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/organizations/organization.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
package organizations

import (
metal "github.com/equinix-labs/metal-go/metal/v1"
metal "github.com/equinix/equinix-sdk-go/services/metalv1"
"github.com/equinix/metal-cli/internal/outputs"
"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/organizations/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
"context"
"fmt"

metal "github.com/equinix-labs/metal-go/metal/v1"
metal "github.com/equinix/equinix-sdk-go/services/metalv1"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/os/os.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
package os

import (
metal "github.com/equinix-labs/metal-go/metal/v1"
metal "github.com/equinix/equinix-sdk-go/services/metalv1"
"github.com/equinix/metal-cli/internal/outputs"
"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/pagination/pager.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package pager
import (
"context"

metal "github.com/equinix-labs/metal-go/metal/v1"
metal "github.com/equinix/equinix-sdk-go/services/metalv1"
)

func GetAllProjects(s metal.ProjectsApiService, include []string, exclude []string) ([]metal.Project, error) {
Expand Down
2 changes: 1 addition & 1 deletion internal/plans/plan.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
package plans

import (
metal "github.com/equinix-labs/metal-go/metal/v1"
metal "github.com/equinix/equinix-sdk-go/services/metalv1"
"github.com/equinix/metal-cli/internal/outputs"
"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/plans/retrieve.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
"context"
"fmt"

metal "github.com/equinix-labs/metal-go/metal/v1"
metal "github.com/equinix/equinix-sdk-go/services/metalv1"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/ports/convert.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (
"strconv"
"strings"

metal "github.com/equinix-labs/metal-go/metal/v1"
metal "github.com/equinix/equinix-sdk-go/services/metalv1"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/ports/port.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ package ports
import (
"github.com/equinix/metal-cli/internal/outputs"

metal "github.com/equinix-labs/metal-go/metal/v1"
metal "github.com/equinix/equinix-sdk-go/services/metalv1"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/ports/vlans.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
"fmt"
"strconv"

metal "github.com/equinix-labs/metal-go/metal/v1"
metal "github.com/equinix/equinix-sdk-go/services/metalv1"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/projects/bgpenable.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"strconv"

metal "github.com/equinix-labs/metal-go/metal/v1"
metal "github.com/equinix/equinix-sdk-go/services/metalv1"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/projects/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
"context"
"fmt"

metal "github.com/equinix-labs/metal-go/metal/v1"
metal "github.com/equinix/equinix-sdk-go/services/metalv1"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/projects/project.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
package projects

import (
metal "github.com/equinix-labs/metal-go/metal/v1"
metal "github.com/equinix/equinix-sdk-go/services/metalv1"
"github.com/equinix/metal-cli/internal/outputs"
"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/projects/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ package projects
import (
"fmt"

metal "github.com/equinix-labs/metal-go/metal/v1"
metal "github.com/equinix/equinix-sdk-go/services/metalv1"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/ssh/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
"context"
"fmt"

metal "github.com/equinix-labs/metal-go/metal/v1"
metal "github.com/equinix/equinix-sdk-go/services/metalv1"
"github.com/spf13/cobra"
)

Expand Down
Loading

0 comments on commit 948a0d6

Please sign in to comment.