Update imports from bootcfg to matchbox

This commit is contained in:
Dalton Hubble
2017-01-09 02:25:56 -08:00
parent 88da59560d
commit 50432159d7
46 changed files with 87 additions and 87 deletions

View File

@@ -11,13 +11,13 @@ import (
"github.com/Sirupsen/logrus"
"github.com/coreos/pkg/flagutil"
web "github.com/coreos/coreos-baremetal/bootcfg/http"
"github.com/coreos/coreos-baremetal/bootcfg/rpc"
"github.com/coreos/coreos-baremetal/bootcfg/server"
"github.com/coreos/coreos-baremetal/bootcfg/sign"
"github.com/coreos/coreos-baremetal/bootcfg/storage"
"github.com/coreos/coreos-baremetal/bootcfg/tlsutil"
"github.com/coreos/coreos-baremetal/bootcfg/version"
web "github.com/coreos/coreos-baremetal/matchbox/http"
"github.com/coreos/coreos-baremetal/matchbox/rpc"
"github.com/coreos/coreos-baremetal/matchbox/server"
"github.com/coreos/coreos-baremetal/matchbox/sign"
"github.com/coreos/coreos-baremetal/matchbox/storage"
"github.com/coreos/coreos-baremetal/matchbox/tlsutil"
"github.com/coreos/coreos-baremetal/matchbox/version"
)
var (

View File

@@ -1,6 +1,6 @@
package main
import "github.com/coreos/coreos-baremetal/bootcfg/cli"
import "github.com/coreos/coreos-baremetal/matchbox/cli"
func main() {
cli.Execute()

View File

@@ -6,8 +6,8 @@ import (
"github.com/spf13/cobra"
"golang.org/x/net/context"
pb "github.com/coreos/coreos-baremetal/bootcfg/server/serverpb"
"github.com/coreos/coreos-baremetal/bootcfg/storage/storagepb"
pb "github.com/coreos/coreos-baremetal/matchbox/server/serverpb"
"github.com/coreos/coreos-baremetal/matchbox/storage/storagepb"
)
// groupPutCmd creates and updates Groups.

View File

@@ -7,7 +7,7 @@ import (
"github.com/spf13/cobra"
"golang.org/x/net/context"
pb "github.com/coreos/coreos-baremetal/bootcfg/server/serverpb"
pb "github.com/coreos/coreos-baremetal/matchbox/server/serverpb"
)
// groupDescribeCmd describes a Group.

View File

@@ -7,7 +7,7 @@ import (
"github.com/spf13/cobra"
"golang.org/x/net/context"
pb "github.com/coreos/coreos-baremetal/bootcfg/server/serverpb"
pb "github.com/coreos/coreos-baremetal/matchbox/server/serverpb"
)
// groupListCmd lists Groups.

View File

@@ -7,7 +7,7 @@ import (
"github.com/spf13/cobra"
"golang.org/x/net/context"
pb "github.com/coreos/coreos-baremetal/bootcfg/server/serverpb"
pb "github.com/coreos/coreos-baremetal/matchbox/server/serverpb"
)
// ignitionPutCmd creates and updates Ignition templates.

View File

@@ -6,8 +6,8 @@ import (
"github.com/spf13/cobra"
"golang.org/x/net/context"
pb "github.com/coreos/coreos-baremetal/bootcfg/server/serverpb"
"github.com/coreos/coreos-baremetal/bootcfg/storage/storagepb"
pb "github.com/coreos/coreos-baremetal/matchbox/server/serverpb"
"github.com/coreos/coreos-baremetal/matchbox/storage/storagepb"
)
// profilePutCmd creates and updates Profiles.

View File

@@ -7,7 +7,7 @@ import (
"github.com/spf13/cobra"
"golang.org/x/net/context"
pb "github.com/coreos/coreos-baremetal/bootcfg/server/serverpb"
pb "github.com/coreos/coreos-baremetal/matchbox/server/serverpb"
)
// profileDescribeCmd describes a Profile.

View File

@@ -7,7 +7,7 @@ import (
"github.com/spf13/cobra"
"golang.org/x/net/context"
pb "github.com/coreos/coreos-baremetal/bootcfg/server/serverpb"
pb "github.com/coreos/coreos-baremetal/matchbox/server/serverpb"
)
// profileListCmd lists Profiles.

View File

@@ -6,8 +6,8 @@ import (
"github.com/spf13/cobra"
"github.com/coreos/coreos-baremetal/bootcfg/client"
"github.com/coreos/coreos-baremetal/bootcfg/tlsutil"
"github.com/coreos/coreos-baremetal/matchbox/client"
"github.com/coreos/coreos-baremetal/matchbox/tlsutil"
)
var (

View File

@@ -8,7 +8,7 @@ import (
"google.golang.org/grpc"
"google.golang.org/grpc/credentials"
"github.com/coreos/coreos-baremetal/bootcfg/rpc/rpcpb"
"github.com/coreos/coreos-baremetal/matchbox/rpc/rpcpb"
)
var (

View File

@@ -10,8 +10,8 @@ import (
cloudinit "github.com/coreos/coreos-cloudinit/config"
"golang.org/x/net/context"
"github.com/coreos/coreos-baremetal/bootcfg/server"
pb "github.com/coreos/coreos-baremetal/bootcfg/server/serverpb"
"github.com/coreos/coreos-baremetal/matchbox/server"
pb "github.com/coreos/coreos-baremetal/matchbox/server/serverpb"
)
// CloudConfig defines a cloud-init config.

View File

@@ -9,9 +9,9 @@ import (
"github.com/stretchr/testify/assert"
"golang.org/x/net/context"
"github.com/coreos/coreos-baremetal/bootcfg/server"
"github.com/coreos/coreos-baremetal/bootcfg/storage/storagepb"
fake "github.com/coreos/coreos-baremetal/bootcfg/storage/testfakes"
"github.com/coreos/coreos-baremetal/matchbox/server"
"github.com/coreos/coreos-baremetal/matchbox/storage/storagepb"
fake "github.com/coreos/coreos-baremetal/matchbox/storage/testfakes"
)
func TestCloudHandler(t *testing.T) {

View File

@@ -5,7 +5,7 @@ import (
"golang.org/x/net/context"
"github.com/coreos/coreos-baremetal/bootcfg/storage/storagepb"
"github.com/coreos/coreos-baremetal/matchbox/storage/storagepb"
)
// unexported key prevents collisions

View File

@@ -6,7 +6,7 @@ import (
"github.com/stretchr/testify/assert"
"golang.org/x/net/context"
"github.com/coreos/coreos-baremetal/bootcfg/storage/storagepb"
"github.com/coreos/coreos-baremetal/matchbox/storage/storagepb"
)
func TestContextProfile(t *testing.T) {

View File

@@ -9,8 +9,8 @@ import (
"github.com/Sirupsen/logrus"
"golang.org/x/net/context"
"github.com/coreos/coreos-baremetal/bootcfg/server"
pb "github.com/coreos/coreos-baremetal/bootcfg/server/serverpb"
"github.com/coreos/coreos-baremetal/matchbox/server"
pb "github.com/coreos/coreos-baremetal/matchbox/server/serverpb"
)
// genericHandler returns a handler that responds with the generic config

View File

@@ -9,9 +9,9 @@ import (
"github.com/stretchr/testify/assert"
"golang.org/x/net/context"
"github.com/coreos/coreos-baremetal/bootcfg/server"
"github.com/coreos/coreos-baremetal/bootcfg/storage/storagepb"
fake "github.com/coreos/coreos-baremetal/bootcfg/storage/testfakes"
"github.com/coreos/coreos-baremetal/matchbox/server"
"github.com/coreos/coreos-baremetal/matchbox/storage/storagepb"
fake "github.com/coreos/coreos-baremetal/matchbox/storage/testfakes"
)
func TestGenericHandler(t *testing.T) {

View File

@@ -6,8 +6,8 @@ import (
"golang.org/x/net/context"
"github.com/coreos/coreos-baremetal/bootcfg/server"
pb "github.com/coreos/coreos-baremetal/bootcfg/server/serverpb"
"github.com/coreos/coreos-baremetal/matchbox/server"
pb "github.com/coreos/coreos-baremetal/matchbox/server/serverpb"
)
// homeHandler shows the server name for rooted requests. Otherwise, a 404 is

View File

@@ -10,9 +10,9 @@ import (
"github.com/stretchr/testify/assert"
"golang.org/x/net/context"
"github.com/coreos/coreos-baremetal/bootcfg/server"
"github.com/coreos/coreos-baremetal/bootcfg/storage/storagepb"
fake "github.com/coreos/coreos-baremetal/bootcfg/storage/testfakes"
"github.com/coreos/coreos-baremetal/matchbox/server"
"github.com/coreos/coreos-baremetal/matchbox/storage/storagepb"
fake "github.com/coreos/coreos-baremetal/matchbox/storage/testfakes"
)
func TestSelectGroup(t *testing.T) {

View File

@@ -10,8 +10,8 @@ import (
ignition "github.com/coreos/ignition/config"
"golang.org/x/net/context"
"github.com/coreos/coreos-baremetal/bootcfg/server"
pb "github.com/coreos/coreos-baremetal/bootcfg/server/serverpb"
"github.com/coreos/coreos-baremetal/matchbox/server"
pb "github.com/coreos/coreos-baremetal/matchbox/server/serverpb"
)
// ignitionHandler returns a handler that responds with the Ignition config

View File

@@ -9,9 +9,9 @@ import (
"github.com/stretchr/testify/assert"
"golang.org/x/net/context"
"github.com/coreos/coreos-baremetal/bootcfg/server"
"github.com/coreos/coreos-baremetal/bootcfg/storage/storagepb"
fake "github.com/coreos/coreos-baremetal/bootcfg/storage/testfakes"
"github.com/coreos/coreos-baremetal/matchbox/server"
"github.com/coreos/coreos-baremetal/matchbox/storage/storagepb"
fake "github.com/coreos/coreos-baremetal/matchbox/storage/testfakes"
)
func TestIgnitionHandler_V2JSON(t *testing.T) {

View File

@@ -9,8 +9,8 @@ import (
"github.com/stretchr/testify/assert"
"golang.org/x/net/context"
"github.com/coreos/coreos-baremetal/bootcfg/storage/storagepb"
fake "github.com/coreos/coreos-baremetal/bootcfg/storage/testfakes"
"github.com/coreos/coreos-baremetal/matchbox/storage/storagepb"
fake "github.com/coreos/coreos-baremetal/matchbox/storage/testfakes"
)
func TestIPXEInspect(t *testing.T) {

View File

@@ -11,7 +11,7 @@ import (
"github.com/stretchr/testify/assert"
"golang.org/x/net/context"
"github.com/coreos/coreos-baremetal/bootcfg/storage/storagepb"
"github.com/coreos/coreos-baremetal/matchbox/storage/storagepb"
)
func TestMetadataHandler(t *testing.T) {

View File

@@ -8,7 +8,7 @@ import (
"github.com/Sirupsen/logrus"
"github.com/coreos/coreos-baremetal/bootcfg/storage/storagepb"
"github.com/coreos/coreos-baremetal/matchbox/storage/storagepb"
)
// collectVariables collects group selectors, metadata, and request-scoped

View File

@@ -7,8 +7,8 @@ import (
"github.com/Sirupsen/logrus"
"golang.org/x/net/context"
"github.com/coreos/coreos-baremetal/bootcfg/server"
pb "github.com/coreos/coreos-baremetal/bootcfg/server/serverpb"
"github.com/coreos/coreos-baremetal/matchbox/server"
pb "github.com/coreos/coreos-baremetal/matchbox/server/serverpb"
)
// pixiecoreHandler returns a handler that renders the boot config JSON for

View File

@@ -9,9 +9,9 @@ import (
"github.com/stretchr/testify/assert"
"golang.org/x/net/context"
"github.com/coreos/coreos-baremetal/bootcfg/server"
"github.com/coreos/coreos-baremetal/bootcfg/storage/storagepb"
fake "github.com/coreos/coreos-baremetal/bootcfg/storage/testfakes"
"github.com/coreos/coreos-baremetal/matchbox/server"
"github.com/coreos/coreos-baremetal/matchbox/storage/storagepb"
fake "github.com/coreos/coreos-baremetal/matchbox/storage/testfakes"
)
func TestPixiecoreHandler(t *testing.T) {

View File

@@ -5,8 +5,8 @@ import (
"github.com/Sirupsen/logrus"
"github.com/coreos/coreos-baremetal/bootcfg/server"
"github.com/coreos/coreos-baremetal/bootcfg/sign"
"github.com/coreos/coreos-baremetal/matchbox/server"
"github.com/coreos/coreos-baremetal/matchbox/sign"
)
// Config configures a Server.

View File

@@ -1,7 +1,7 @@
package http
import (
"github.com/coreos/coreos-baremetal/bootcfg/storage/storagepb"
"github.com/coreos/coreos-baremetal/matchbox/storage/storagepb"
)
var (

View File

@@ -4,7 +4,7 @@ import (
"google.golang.org/grpc"
"google.golang.org/grpc/codes"
"github.com/coreos/coreos-baremetal/bootcfg/server"
"github.com/coreos/coreos-baremetal/matchbox/server"
)
var (

View File

@@ -7,7 +7,7 @@ import (
"github.com/stretchr/testify/assert"
"google.golang.org/grpc/codes"
"github.com/coreos/coreos-baremetal/bootcfg/server"
"github.com/coreos/coreos-baremetal/matchbox/server"
)
func TestGRPCError(t *testing.T) {

View File

@@ -3,9 +3,9 @@ package rpc
import (
"golang.org/x/net/context"
"github.com/coreos/coreos-baremetal/bootcfg/rpc/rpcpb"
"github.com/coreos/coreos-baremetal/bootcfg/server"
pb "github.com/coreos/coreos-baremetal/bootcfg/server/serverpb"
"github.com/coreos/coreos-baremetal/matchbox/rpc/rpcpb"
"github.com/coreos/coreos-baremetal/matchbox/server"
pb "github.com/coreos/coreos-baremetal/matchbox/server/serverpb"
)
// groupServer takes a bootcfg Server and implements a gRPC GroupsServer.

View File

@@ -6,8 +6,8 @@ import (
"google.golang.org/grpc"
"google.golang.org/grpc/credentials"
"github.com/coreos/coreos-baremetal/bootcfg/rpc/rpcpb"
"github.com/coreos/coreos-baremetal/bootcfg/server"
"github.com/coreos/coreos-baremetal/matchbox/rpc/rpcpb"
"github.com/coreos/coreos-baremetal/matchbox/server"
)
// NewServer wraps the bootcfg Server to return a new gRPC Server.

View File

@@ -3,9 +3,9 @@ package rpc
import (
"golang.org/x/net/context"
"github.com/coreos/coreos-baremetal/bootcfg/rpc/rpcpb"
"github.com/coreos/coreos-baremetal/bootcfg/server"
pb "github.com/coreos/coreos-baremetal/bootcfg/server/serverpb"
"github.com/coreos/coreos-baremetal/matchbox/rpc/rpcpb"
"github.com/coreos/coreos-baremetal/matchbox/server"
pb "github.com/coreos/coreos-baremetal/matchbox/server/serverpb"
)
// ignitionServer takes a bootcfg Server and implements a gRPC IgnitionServer.

View File

@@ -3,9 +3,9 @@ package rpc
import (
"golang.org/x/net/context"
"github.com/coreos/coreos-baremetal/bootcfg/rpc/rpcpb"
"github.com/coreos/coreos-baremetal/bootcfg/server"
pb "github.com/coreos/coreos-baremetal/bootcfg/server/serverpb"
"github.com/coreos/coreos-baremetal/matchbox/rpc/rpcpb"
"github.com/coreos/coreos-baremetal/matchbox/server"
pb "github.com/coreos/coreos-baremetal/matchbox/server/serverpb"
)
// profileServer takes a bootcfg Server and implements a gRPC ProfilesServer.

View File

@@ -15,7 +15,7 @@ package rpcpb
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import serverpb "github.com/coreos/coreos-baremetal/bootcfg/server/serverpb"
import serverpb "github.com/coreos/coreos-baremetal/matchbox/server/serverpb"
import (
context "golang.org/x/net/context"

View File

@@ -3,9 +3,9 @@ package rpc
import (
"golang.org/x/net/context"
"github.com/coreos/coreos-baremetal/bootcfg/rpc/rpcpb"
"github.com/coreos/coreos-baremetal/bootcfg/server"
pb "github.com/coreos/coreos-baremetal/bootcfg/server/serverpb"
"github.com/coreos/coreos-baremetal/matchbox/rpc/rpcpb"
"github.com/coreos/coreos-baremetal/matchbox/server"
pb "github.com/coreos/coreos-baremetal/matchbox/server/serverpb"
)
// selectServer wraps a bootcfg Server to be suitable for gRPC registration.

View File

@@ -6,9 +6,9 @@ import (
"golang.org/x/net/context"
pb "github.com/coreos/coreos-baremetal/bootcfg/server/serverpb"
"github.com/coreos/coreos-baremetal/bootcfg/storage"
"github.com/coreos/coreos-baremetal/bootcfg/storage/storagepb"
pb "github.com/coreos/coreos-baremetal/matchbox/server/serverpb"
"github.com/coreos/coreos-baremetal/matchbox/storage"
"github.com/coreos/coreos-baremetal/matchbox/storage/storagepb"
)
// Possible service errors

View File

@@ -6,10 +6,10 @@ import (
"github.com/stretchr/testify/assert"
"golang.org/x/net/context"
pb "github.com/coreos/coreos-baremetal/bootcfg/server/serverpb"
"github.com/coreos/coreos-baremetal/bootcfg/storage"
"github.com/coreos/coreos-baremetal/bootcfg/storage/storagepb"
fake "github.com/coreos/coreos-baremetal/bootcfg/storage/testfakes"
pb "github.com/coreos/coreos-baremetal/matchbox/server/serverpb"
"github.com/coreos/coreos-baremetal/matchbox/storage"
"github.com/coreos/coreos-baremetal/matchbox/storage/storagepb"
fake "github.com/coreos/coreos-baremetal/matchbox/storage/testfakes"
)
func TestSelectGroup(t *testing.T) {

View File

@@ -33,7 +33,7 @@ package serverpb
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import storagepb "github.com/coreos/coreos-baremetal/bootcfg/storage/storagepb"
import storagepb "github.com/coreos/coreos-baremetal/matchbox/storage/storagepb"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal

View File

@@ -5,7 +5,7 @@ import (
"path/filepath"
"strings"
"github.com/coreos/coreos-baremetal/bootcfg/storage/storagepb"
"github.com/coreos/coreos-baremetal/matchbox/storage/storagepb"
)
// Config initializes a fileStore.

View File

@@ -9,8 +9,8 @@ import (
"github.com/stretchr/testify/assert"
"github.com/coreos/coreos-baremetal/bootcfg/storage/storagepb"
fake "github.com/coreos/coreos-baremetal/bootcfg/storage/testfakes"
"github.com/coreos/coreos-baremetal/matchbox/storage/storagepb"
fake "github.com/coreos/coreos-baremetal/matchbox/storage/testfakes"
)
func TestGroupPut(t *testing.T) {

View File

@@ -3,7 +3,7 @@ package storage
import (
"errors"
"github.com/coreos/coreos-baremetal/bootcfg/storage/storagepb"
"github.com/coreos/coreos-baremetal/matchbox/storage/storagepb"
)
// Storage errors

View File

@@ -3,7 +3,7 @@ package testfakes
import (
"errors"
"github.com/coreos/coreos-baremetal/bootcfg/storage/storagepb"
"github.com/coreos/coreos-baremetal/matchbox/storage/storagepb"
)
var (

View File

@@ -3,7 +3,7 @@ package testfakes
import (
"fmt"
"github.com/coreos/coreos-baremetal/bootcfg/storage/storagepb"
"github.com/coreos/coreos-baremetal/matchbox/storage/storagepb"
)
// EmptyStore is used for testing purposes.

View File

@@ -3,7 +3,7 @@ package testfakes
import (
"fmt"
"github.com/coreos/coreos-baremetal/bootcfg/storage/storagepb"
"github.com/coreos/coreos-baremetal/matchbox/storage/storagepb"
)
// FixedStore is used for testing purposes.

View File

@@ -1,7 +1,7 @@
package testfakes
import (
"github.com/coreos/coreos-baremetal/bootcfg/storage/storagepb"
"github.com/coreos/coreos-baremetal/matchbox/storage/storagepb"
)
var (