api,config,sign: Organize bootcfg packages together

This commit is contained in:
Dalton Hubble
2016-03-04 11:18:43 -08:00
parent 9a0de72de8
commit e990320dae
41 changed files with 10 additions and 10 deletions

View File

@@ -51,7 +51,7 @@ func cloudHandler(store Store) ContextHandler {
config := buf.String()
if !cloudinit.IsCloudConfig(config) && !cloudinit.IsScript(config) {
log.Errorf("error parsing user-data")
log.Error("error parsing user-data")
http.NotFound(w, req)
return
}

View File

@@ -3,7 +3,7 @@ package api
import (
"net/http"
"github.com/coreos/coreos-baremetal/sign"
"github.com/coreos/coreos-baremetal/bootcfg/sign"
"github.com/coreos/pkg/capnslog"
)
@@ -12,7 +12,7 @@ const (
APIVersion = "v1alpha1"
)
var log = capnslog.NewPackageLogger("github.com/coreos/coreos-baremetal", "api")
var log = capnslog.NewPackageLogger("github.com/coreos/coreos-baremetal/bootcfg", "api")
// Config configures the api Server.
type Config struct {

View File

@@ -8,7 +8,7 @@ import (
"os"
"strings"
"github.com/coreos/coreos-baremetal/api"
"github.com/coreos/coreos-baremetal/bootcfg/api"
"github.com/coreos/coreos-baremetal/bootcfg/storage/storagepb"
"github.com/satori/go.uuid"
"gopkg.in/yaml.v2"

View File

@@ -6,7 +6,7 @@ import (
"os"
"testing"
"github.com/coreos/coreos-baremetal/api"
"github.com/coreos/coreos-baremetal/bootcfg/api"
"github.com/stretchr/testify/assert"
)

View File

@@ -11,10 +11,10 @@ import (
"github.com/coreos/pkg/flagutil"
"google.golang.org/grpc"
"github.com/coreos/coreos-baremetal/bootcfg/config"
bootcfg "github.com/coreos/coreos-baremetal/bootcfg/server"
pb "github.com/coreos/coreos-baremetal/bootcfg/server/serverpb"
"github.com/coreos/coreos-baremetal/bootcfg/storage"
"github.com/coreos/coreos-baremetal/config"
)
var (

View File

@@ -11,9 +11,9 @@ import (
"github.com/coreos/pkg/capnslog"
"github.com/coreos/pkg/flagutil"
"github.com/coreos/coreos-baremetal/api"
"github.com/coreos/coreos-baremetal/config"
"github.com/coreos/coreos-baremetal/sign"
"github.com/coreos/coreos-baremetal/bootcfg/api"
"github.com/coreos/coreos-baremetal/bootcfg/config"
"github.com/coreos/coreos-baremetal/bootcfg/sign"
)
var (
@@ -79,7 +79,7 @@ func main() {
// logging setup
lvl, err := capnslog.ParseLevel(strings.ToUpper(flags.logLevel))
if err != nil {
log.Fatalf("Invalid log-level: %v", err.Error())
log.Fatalf("invalid log-level: %v", err)
}
capnslog.SetGlobalLogLevel(lvl)
capnslog.SetFormatter(capnslog.NewPrettyFormatter(os.Stdout, false))