refactor datastore structure for consistency
This commit is contained in:
parent
a0c7b3f768
commit
5660634c29
22 changed files with 21 additions and 31 deletions
10
AUTHORS
10
AUTHORS
|
@ -1,10 +0,0 @@
|
||||||
# This file lists all individuals having contributed content to the repository.
|
|
||||||
# If you're submitting a patch, please add your name here in alphabetical order as part of the patch.
|
|
||||||
|
|
||||||
Alex Suraci <suraci.alex@gmail.com>
|
|
||||||
Artur Rodrigues <arturhoo@gmail.com>
|
|
||||||
Brad Rydzewski <brad@drone.io>
|
|
||||||
Justin Keller <justin@commando.io>
|
|
||||||
Martin Charles <martincharles07@gmail.com>
|
|
||||||
Michael Nutt <mnutt@movableink.com>
|
|
||||||
Thomas Burke <burke@drone.io>
|
|
|
@ -1 +0,0 @@
|
||||||
package bolt
|
|
1
datastore/builtin/agent.go
Normal file
1
datastore/builtin/agent.go
Normal file
|
@ -0,0 +1 @@
|
||||||
|
package builtin
|
|
@ -1,4 +1,4 @@
|
||||||
package bolt
|
package builtin
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
|
@ -1,4 +1,4 @@
|
||||||
package bolt
|
package builtin
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/binary"
|
"encoding/binary"
|
|
@ -1,4 +1,4 @@
|
||||||
package bolt
|
package builtin
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/drone/drone/common"
|
"github.com/drone/drone/common"
|
|
@ -1,4 +1,4 @@
|
||||||
package bolt
|
package builtin
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
|
@ -1,4 +1,4 @@
|
||||||
package bolt
|
package builtin
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/drone/drone/common"
|
"github.com/drone/drone/common"
|
|
@ -1,4 +1,4 @@
|
||||||
package bolt
|
package builtin
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
|
@ -1,4 +1,4 @@
|
||||||
package bolt
|
package builtin
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/drone/drone/common"
|
"github.com/drone/drone/common"
|
|
@ -1,4 +1,4 @@
|
||||||
package bolt
|
package builtin
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/boltdb/bolt"
|
"github.com/boltdb/bolt"
|
|
@ -1,4 +1,4 @@
|
||||||
package bolt
|
package builtin
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"os"
|
"os"
|
|
@ -1,4 +1,4 @@
|
||||||
package bolt
|
package builtin
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"time"
|
"time"
|
|
@ -1,4 +1,4 @@
|
||||||
package bolt
|
package builtin
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"os"
|
"os"
|
|
@ -1,4 +1,4 @@
|
||||||
package bolt
|
package builtin
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
|
@ -1,4 +1,4 @@
|
||||||
package rpc
|
package plugin
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"time"
|
"time"
|
|
@ -1,4 +1,4 @@
|
||||||
package rpc
|
package plugin
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"net"
|
"net"
|
|
@ -1,4 +1,4 @@
|
||||||
package rpc
|
package plugin
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"time"
|
"time"
|
|
@ -1,4 +1,4 @@
|
||||||
package rpc
|
package plugin
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/drone/drone/common"
|
"github.com/drone/drone/common"
|
|
@ -1,4 +1,4 @@
|
||||||
package rpc
|
package plugin
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/drone/drone/common"
|
"github.com/drone/drone/common"
|
|
@ -1,4 +1,4 @@
|
||||||
package rpc
|
package plugin
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"time"
|
"time"
|
4
drone.go
4
drone.go
|
@ -7,13 +7,13 @@ import (
|
||||||
|
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
|
|
||||||
"github.com/drone/drone/datastore/bolt"
|
|
||||||
"github.com/drone/drone/remote/github"
|
"github.com/drone/drone/remote/github"
|
||||||
"github.com/drone/drone/server"
|
"github.com/drone/drone/server"
|
||||||
"github.com/drone/drone/server/session"
|
"github.com/drone/drone/server/session"
|
||||||
"github.com/drone/drone/settings"
|
"github.com/drone/drone/settings"
|
||||||
"github.com/elazarl/go-bindata-assetfs"
|
"github.com/elazarl/go-bindata-assetfs"
|
||||||
|
|
||||||
|
store "github.com/drone/drone/datastore/builtin"
|
||||||
eventbus "github.com/drone/drone/eventbus/builtin"
|
eventbus "github.com/drone/drone/eventbus/builtin"
|
||||||
queue "github.com/drone/drone/queue/builtin"
|
queue "github.com/drone/drone/queue/builtin"
|
||||||
)
|
)
|
||||||
|
@ -30,7 +30,7 @@ func main() {
|
||||||
remote := github.New(settings.Service)
|
remote := github.New(settings.Service)
|
||||||
session := session.New(settings.Session)
|
session := session.New(settings.Session)
|
||||||
|
|
||||||
ds := bolt.Must(settings.Database.Path)
|
ds := store.Must(settings.Database.Path)
|
||||||
defer ds.Close()
|
defer ds.Close()
|
||||||
|
|
||||||
r := gin.Default()
|
r := gin.Default()
|
||||||
|
|
Loading…
Reference in a new issue