Browse Source

etcdserver/api/snap: rename internal package

Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
Gyuho Lee 7 years ago
parent
commit
2bd689acea

+ 1 - 1
raftsnap/db.go → etcdserver/api/snap/db.go

@@ -12,7 +12,7 @@
 // See the License for the specific language governing permissions and
 // See the License for the specific language governing permissions and
 // limitations under the License.
 // limitations under the License.
 
 
-package raftsnap
+package snap
 
 
 import (
 import (
 	"errors"
 	"errors"

+ 2 - 2
raftsnap/doc.go → etcdserver/api/snap/doc.go

@@ -12,6 +12,6 @@
 // See the License for the specific language governing permissions and
 // See the License for the specific language governing permissions and
 // limitations under the License.
 // limitations under the License.
 
 
-// Package raftsnap handles Raft nodes' states with snapshots.
+// Package snap handles Raft nodes' states with snapshots.
 // The snapshot logic is internal to etcd server and raft package.
 // The snapshot logic is internal to etcd server and raft package.
-package raftsnap
+package snap

+ 1 - 1
raftsnap/message.go → etcdserver/api/snap/message.go

@@ -12,7 +12,7 @@
 // See the License for the specific language governing permissions and
 // See the License for the specific language governing permissions and
 // limitations under the License.
 // limitations under the License.
 
 
-package raftsnap
+package snap
 
 
 import (
 import (
 	"io"
 	"io"

+ 1 - 1
raftsnap/metrics.go → etcdserver/api/snap/metrics.go

@@ -12,7 +12,7 @@
 // See the License for the specific language governing permissions and
 // See the License for the specific language governing permissions and
 // limitations under the License.
 // limitations under the License.
 
 
-package raftsnap
+package snap
 
 
 import "github.com/prometheus/client_golang/prometheus"
 import "github.com/prometheus/client_golang/prometheus"
 
 

+ 0 - 0
raftsnap/snappb/snap.pb.go → etcdserver/api/snap/snappb/snap.pb.go


+ 0 - 0
raftsnap/snappb/snap.proto → etcdserver/api/snap/snappb/snap.proto


+ 2 - 2
raftsnap/snapshotter.go → etcdserver/api/snap/snapshotter.go

@@ -12,7 +12,7 @@
 // See the License for the specific language governing permissions and
 // See the License for the specific language governing permissions and
 // limitations under the License.
 // limitations under the License.
 
 
-package raftsnap
+package snap
 
 
 import (
 import (
 	"errors"
 	"errors"
@@ -25,11 +25,11 @@ import (
 	"strings"
 	"strings"
 	"time"
 	"time"
 
 
+	"github.com/coreos/etcd/etcdserver/api/snap/snappb"
 	pioutil "github.com/coreos/etcd/pkg/ioutil"
 	pioutil "github.com/coreos/etcd/pkg/ioutil"
 	"github.com/coreos/etcd/pkg/pbutil"
 	"github.com/coreos/etcd/pkg/pbutil"
 	"github.com/coreos/etcd/raft"
 	"github.com/coreos/etcd/raft"
 	"github.com/coreos/etcd/raft/raftpb"
 	"github.com/coreos/etcd/raft/raftpb"
-	"github.com/coreos/etcd/raftsnap/snappb"
 
 
 	"github.com/coreos/pkg/capnslog"
 	"github.com/coreos/pkg/capnslog"
 	"go.uber.org/zap"
 	"go.uber.org/zap"

+ 1 - 1
raftsnap/snapshotter_test.go → etcdserver/api/snap/snapshotter_test.go

@@ -12,7 +12,7 @@
 // See the License for the specific language governing permissions and
 // See the License for the specific language governing permissions and
 // limitations under the License.
 // limitations under the License.
 
 
-package raftsnap
+package snap
 
 
 import (
 import (
 	"fmt"
 	"fmt"