From 2d4fd24eaf0d8303428ad8e68dd6ec642539b249 Mon Sep 17 00:00:00 2001 From: James Phillips Date: Thu, 3 Nov 2016 21:36:25 -0700 Subject: [PATCH] Moves the snapshot package up one level. (#2472) --- command/snapshot_inspect.go | 2 +- command/snapshot_save.go | 2 +- consul/snapshot_endpoint.go | 2 +- {consul/snapshot => snapshot}/archive.go | 0 {consul/snapshot => snapshot}/archive_test.go | 0 {consul/snapshot => snapshot}/snapshot.go | 0 {consul/snapshot => snapshot}/snapshot_test.go | 0 7 files changed, 3 insertions(+), 3 deletions(-) rename {consul/snapshot => snapshot}/archive.go (100%) rename {consul/snapshot => snapshot}/archive_test.go (100%) rename {consul/snapshot => snapshot}/snapshot.go (100%) rename {consul/snapshot => snapshot}/snapshot_test.go (100%) diff --git a/command/snapshot_inspect.go b/command/snapshot_inspect.go index 8efb8d5217..aaeab2445f 100644 --- a/command/snapshot_inspect.go +++ b/command/snapshot_inspect.go @@ -8,7 +8,7 @@ import ( "strings" "text/tabwriter" - "github.com/hashicorp/consul/consul/snapshot" + "github.com/hashicorp/consul/snapshot" "github.com/mitchellh/cli" ) diff --git a/command/snapshot_save.go b/command/snapshot_save.go index cd970ac057..ddfa56a118 100644 --- a/command/snapshot_save.go +++ b/command/snapshot_save.go @@ -8,7 +8,7 @@ import ( "strings" "github.com/hashicorp/consul/api" - "github.com/hashicorp/consul/consul/snapshot" + "github.com/hashicorp/consul/snapshot" "github.com/mitchellh/cli" ) diff --git a/consul/snapshot_endpoint.go b/consul/snapshot_endpoint.go index cfe946efa0..274f071af6 100644 --- a/consul/snapshot_endpoint.go +++ b/consul/snapshot_endpoint.go @@ -15,8 +15,8 @@ import ( "io/ioutil" "net" - "github.com/hashicorp/consul/consul/snapshot" "github.com/hashicorp/consul/consul/structs" + "github.com/hashicorp/consul/snapshot" "github.com/hashicorp/go-msgpack/codec" ) diff --git a/consul/snapshot/archive.go b/snapshot/archive.go similarity index 100% rename from consul/snapshot/archive.go rename to snapshot/archive.go diff --git a/consul/snapshot/archive_test.go b/snapshot/archive_test.go similarity index 100% rename from consul/snapshot/archive_test.go rename to snapshot/archive_test.go diff --git a/consul/snapshot/snapshot.go b/snapshot/snapshot.go similarity index 100% rename from consul/snapshot/snapshot.go rename to snapshot/snapshot.go diff --git a/consul/snapshot/snapshot_test.go b/snapshot/snapshot_test.go similarity index 100% rename from consul/snapshot/snapshot_test.go rename to snapshot/snapshot_test.go