Browse Source

Re-home project, dependencies, and fix imports.

master
Benjamin Shelton 1 year ago
parent
commit
633e022fdf
54 changed files with 161 additions and 168 deletions
  1. +2
    -2
      auth/authn.go
  2. +1
    -1
      auth/authz.go
  3. +1
    -1
      auth/funcs.go
  4. +1
    -1
      auth/types_test.go
  5. +4
    -4
      cli/admin.go
  6. +3
    -3
      cli/client.go
  7. +3
    -3
      cli/server.go
  8. +2
    -2
      cli/utils.go
  9. +7
    -7
      client/client.go
  10. +3
    -3
      client/init_test.go
  11. +2
    -2
      client/key_test.go
  12. +3
    -3
      cmd/keystar/main.go
  13. +2
    -2
      crypto/engine.go
  14. +3
    -3
      crypto/engine_test.go
  15. +1
    -1
      crypto/errors.go
  16. +1
    -1
      crypto/generators_test.go
  17. +1
    -1
      crypto/serializers_test.go
  18. +1
    -1
      crypto/validators_test.go
  19. +1
    -1
      errors/errors.go
  20. +7
    -8
      go.mod
  21. +2
    -2
      keystar.go
  22. +8
    -8
      keystar_test.go
  23. +5
    -5
      server/auth_handler.go
  24. +1
    -1
      server/encoding/funcs.go
  25. +1
    -1
      server/encoding/server.go
  26. +2
    -2
      server/funcs.go
  27. +2
    -2
      server/generator_handlers.go
  28. +1
    -5
      server/generatorcontrollers.go
  29. +4
    -4
      server/helpers.go
  30. +9
    -9
      server/keycontroller.go
  31. +8
    -8
      server/keyringcontroller.go
  32. +1
    -1
      server/middleware.go
  33. +5
    -5
      server/namespacecontroller.go
  34. +6
    -6
      server/rotatecontroller.go
  35. +3
    -3
      server/routes.go
  36. +6
    -6
      server/server.go
  37. +6
    -6
      server/templatecontroller.go
  38. +4
    -4
      server/types.go
  39. +0
    -2
      server/writer.go
  40. +4
    -4
      storage/fs/file.go
  41. +1
    -1
      storage/fs/types.go
  42. +6
    -6
      storage/loader.go
  43. +2
    -2
      storage/mem/storage.go
  44. +4
    -4
      storage/mem/storage_test.go
  45. +1
    -1
      types/api/funcs.go
  46. +3
    -3
      types/api/key.go
  47. +3
    -3
      types/api/namespace.go
  48. +1
    -1
      types/config.go
  49. +1
    -1
      types/encapsulators.go
  50. +5
    -5
      types/helpers/funcs.go
  51. +4
    -4
      types/keyspace.go
  52. +1
    -1
      types/primitives.go
  53. +1
    -1
      types/proxy.go
  54. +1
    -1
      types/serializers.go

+ 2
- 2
auth/authn.go View File

@ -6,8 +6,8 @@ import (
"crypto/subtle"
"hash"
"git.pluggableideas.com/destrealm/go/keystar"
. "git.pluggableideas.com/destrealm/go/keystar/errors"
"git.destrealm.org/go/keystar"
. "git.destrealm.org/go/keystar/errors"
)
type Authenticator struct {


+ 1
- 1
auth/authz.go View File

@ -6,7 +6,7 @@ import (
"hash"
"time"
"git.pluggableideas.com/destrealm/go/keystar"
"git.destrealm.org/go/keystar"
)
type Authorizer struct {


+ 1
- 1
auth/funcs.go View File

@ -6,7 +6,7 @@ import (
"encoding/base64"
"encoding/binary"
"gitlab.com/destrealm/go/errors"
"git.destrealm.org/go/errors"
)
type AccountIdentifier uint16


+ 1
- 1
auth/types_test.go View File

@ -9,7 +9,7 @@ import (
"testing"
"time"
"git.pluggableideas.com/destrealm/go/keystar/auth"
"git.destrealm.org/go/keystar/auth"
)
var id = "wpJvEgF-UQ7Cq8OFESFHw58ew5DDmMK9HMKpbU3Dl8M="


+ 4
- 4
cli/admin.go View File

@ -3,12 +3,12 @@ package cli
import (
"fmt"
"git.destrealm.org/go/errors"
"github.com/urfave/cli"
"gitlab.com/destrealm/go/errors"
"git.pluggableideas.com/destrealm/go/keystar"
kt "git.pluggableideas.com/destrealm/go/keystar/types"
"git.pluggableideas.com/destrealm/go/keystar/types/helpers"
"git.destrealm.org/go/keystar"
kt "git.destrealm.org/go/keystar/types"
"git.destrealm.org/go/keystar/types/helpers"
)
var Admin = cli.Command{


+ 3
- 3
cli/client.go View File

@ -3,9 +3,9 @@ package cli
import (
"fmt"
"git.pluggableideas.com/destrealm/go/keystar"
"git.pluggableideas.com/destrealm/go/keystar/auth"
kt "git.pluggableideas.com/destrealm/go/keystar/types"
"git.destrealm.org/go/keystar"
"git.destrealm.org/go/keystar/auth"
kt "git.destrealm.org/go/keystar/types"
"github.com/urfave/cli"
)


+ 3
- 3
cli/server.go View File

@ -7,10 +7,10 @@ import (
"net/url"
"os"
"git.pluggableideas.com/destrealm/go/keystar/server"
"git.destrealm.org/go/errors"
"git.destrealm.org/go/keystar/server"
"git.destrealm.org/go/logging"
"github.com/urfave/cli"
"gitlab.com/destrealm/go/errors"
"gitlab.com/destrealm/go/logging"
)
var Server = cli.Command{


+ 2
- 2
cli/utils.go View File

@ -6,8 +6,8 @@ import (
"os"
"strings"
"git.pluggableideas.com/destrealm/go/fileutils"
"git.pluggableideas.com/destrealm/go/keystar/server"
"git.destrealm.org/go/fileutils"
"git.destrealm.org/go/keystar/server"
"gopkg.in/yaml.v2"
)


+ 7
- 7
client/client.go View File

@ -8,14 +8,14 @@ import (
"sync"
"time"
"git.pluggableideas.com/destrealm/go/keystar/crypto"
. "git.pluggableideas.com/destrealm/go/keystar/errors"
"git.pluggableideas.com/destrealm/go/keystar/server/encoding"
"git.pluggableideas.com/destrealm/go/keystar/types"
"git.pluggableideas.com/destrealm/go/keystar/types/api"
"git.pluggableideas.com/destrealm/go/please"
"git.destrealm.org/go/errors"
"git.destrealm.org/go/keystar/crypto"
. "git.destrealm.org/go/keystar/errors"
"git.destrealm.org/go/keystar/server/encoding"
"git.destrealm.org/go/keystar/types"
"git.destrealm.org/go/keystar/types/api"
"git.destrealm.org/go/please"
"github.com/valyala/fasttemplate"
"gitlab.com/destrealm/go/errors"
)
// TODO: Reconsider client implementation and make compatible with in-process


+ 3
- 3
client/init_test.go View File

@ -7,9 +7,9 @@ import (
"os"
"testing"
"git.pluggableideas.com/destrealm/go/keystar"
"git.pluggableideas.com/destrealm/go/keystar/server"
kt "git.pluggableideas.com/destrealm/go/keystar/types"
"git.destrealm.org/go/keystar"
"git.destrealm.org/go/keystar/server"
kt "git.destrealm.org/go/keystar/types"
)
var testServer *httptest.Server


+ 2
- 2
client/key_test.go View File

@ -4,8 +4,8 @@ package client_test
import (
"testing"
"git.pluggableideas.com/destrealm/go/keystar/client"
"gitlab.com/destrealm/go/errors"
"git.destrealm.org/go/keystar/client"
"git.destrealm.org/go/errors"
)
func Test_InteractiveKeyReader(t *testing.T) {


+ 3
- 3
cmd/keystar/main.go View File

@ -4,9 +4,9 @@ import (
"fmt"
"os"
kcli "git.pluggableideas.com/destrealm/go/keystar/cli"
"git.pluggableideas.com/destrealm/go/keystar/crypto"
"git.pluggableideas.com/destrealm/go/keystar/server"
kcli "git.destrealm.org/go/keystar/cli"
"git.destrealm.org/go/keystar/crypto"
"git.destrealm.org/go/keystar/server"
"github.com/urfave/cli"
)


+ 2
- 2
crypto/engine.go View File

@ -8,8 +8,8 @@ import (
"crypto/sha512"
"hash"
"git.pluggableideas.com/destrealm/go/keystar/types/api"
"gitlab.com/destrealm/go/errors"
"git.destrealm.org/go/errors"
"git.destrealm.org/go/keystar/types/api"
"golang.org/x/crypto/pbkdf2"
)


+ 3
- 3
crypto/engine_test.go View File

@ -7,9 +7,9 @@ import (
"testing"
"time"
"git.pluggableideas.com/destrealm/go/keystar/crypto"
_ "git.pluggableideas.com/destrealm/go/keystar/storage"
"git.pluggableideas.com/destrealm/go/keystar/types/api"
"git.destrealm.org/go/keystar/crypto"
_ "git.destrealm.org/go/keystar/storage"
"git.destrealm.org/go/keystar/types/api"
)
func Test_Sealer_WithDefaults(t *testing.T) {


+ 1
- 1
crypto/errors.go View File

@ -1,6 +1,6 @@
package crypto
import "gitlab.com/destrealm/go/errors"
import "git.destrealm.org/go/errors"
// ErrCreatingCipher is typically returned when initializing a cipher fails. As
// we only use AES in this package, this is most likely due to key length


+ 1
- 1
crypto/generators_test.go View File

@ -4,7 +4,7 @@ import (
"testing"
"time"
"git.pluggableideas.com/destrealm/go/keystar/crypto"
"git.destrealm.org/go/keystar/crypto"
)
func Test_DefaultIVGenerator(t *testing.T) {


+ 1
- 1
crypto/serializers_test.go View File

@ -5,7 +5,7 @@ import (
"reflect"
"testing"
"git.pluggableideas.com/destrealm/go/keystar/crypto"
"git.destrealm.org/go/keystar/crypto"
)
var (


+ 1
- 1
crypto/validators_test.go View File

@ -4,7 +4,7 @@ import (
"testing"
"time"
"git.pluggableideas.com/destrealm/go/keystar/crypto"
"git.destrealm.org/go/keystar/crypto"
)
func Test_TimeBasedIVValidator(t *testing.T) {


+ 1
- 1
errors/errors.go View File

@ -1,7 +1,7 @@
package errors
import (
"gitlab.com/destrealm/go/errors"
"git.destrealm.org/go/errors"
)
// ErrCreatingCipher is typically returned when initializing a cipher fails. As


+ 7
- 8
go.mod View File

@ -1,20 +1,19 @@
module git.pluggableideas.com/destrealm/go/keystar
module git.destrealm.org/go/keystar
go 1.12
require (
git.pluggableideas.com/destrealm/go/capstan v0.0.0-20200202062001-1c0455e88273
git.pluggableideas.com/destrealm/go/fileutils v0.0.0-20190726233730-be4a1e553a5e
git.pluggableideas.com/destrealm/go/please v0.0.0-20200124081557-f3aa5b2202c0
git.pluggableideas.com/destrealm/go/signals v0.0.0-20191006220848-2207fdbd02c1
git.destrealm.org/go/capstan v0.0.0-20200224064441-af22fa72efe8 // indirect
git.destrealm.org/go/errors v0.0.0-20200222072452-ca11c73fd578
git.destrealm.org/go/fileutils v0.0.0-20200224031645-b70c9692d5a6 // indirect
git.destrealm.org/go/please v0.0.0-20200223224415-236b7da10a9d
git.destrealm.org/go/signals v0.0.0-20200224010432-0d3ad2920b96
github.com/etcd-io/bbolt v1.3.2
github.com/go-chi/chi v4.0.2+incompatible
github.com/joho/godotenv v1.3.0
github.com/urfave/cli v1.22.1
github.com/valyala/fasttemplate v1.0.1
gitlab.com/destrealm/go/errors v0.0.0-20191103041055-f29f841ea456
gitlab.com/destrealm/go/logging v0.0.0-20200127081609-311e59b9d313
golang.org/x/crypto v0.0.0-20190829043050-9756ffdc2472
golang.org/x/net v0.0.0-20190926025831-c00fd9afed17
gopkg.in/yaml.v2 v2.2.2
gopkg.in/yaml.v2 v2.2.8
)

+ 2
- 2
keystar.go View File

@ -1,8 +1,8 @@
package keystar
import (
"git.pluggableideas.com/destrealm/go/keystar/storage"
kt "git.pluggableideas.com/destrealm/go/keystar/types"
"git.destrealm.org/go/keystar/storage"
kt "git.destrealm.org/go/keystar/types"
)
// KeyStar is the primary entrypoint for clients and servers. All KeyStar


+ 8
- 8
keystar_test.go View File

@ -6,14 +6,14 @@ import (
"testing"
"time"
"git.pluggableideas.com/destrealm/go/keystar"
"git.pluggableideas.com/destrealm/go/keystar/client"
. "git.pluggableideas.com/destrealm/go/keystar/errors"
"git.pluggableideas.com/destrealm/go/keystar/server"
kt "git.pluggableideas.com/destrealm/go/keystar/types"
"git.pluggableideas.com/destrealm/go/keystar/types/api"
"git.pluggableideas.com/destrealm/go/keystar/types/helpers"
"gitlab.com/destrealm/go/errors"
"git.destrealm.org/go/errors"
"git.destrealm.org/go/keystar"
"git.destrealm.org/go/keystar/client"
. "git.destrealm.org/go/keystar/errors"
"git.destrealm.org/go/keystar/server"
kt "git.destrealm.org/go/keystar/types"
"git.destrealm.org/go/keystar/types/api"
"git.destrealm.org/go/keystar/types/helpers"
)
func clientTest(ns *api.Namespace, keyringName string, t *testing.T) {


+ 5
- 5
server/auth_handler.go View File

@ -4,11 +4,11 @@ import (
"encoding/base64"
"strconv"
"git.pluggableideas.com/destrealm/go/capstan"
"git.pluggableideas.com/destrealm/go/capstan/status"
"git.pluggableideas.com/destrealm/go/keystar"
"git.pluggableideas.com/destrealm/go/keystar/auth"
"gitlab.com/destrealm/go/logging"
"git.destrealm.org/go/capstan"
"git.destrealm.org/go/capstan/status"
"git.destrealm.org/go/keystar"
"git.destrealm.org/go/keystar/auth"
"git.destrealm.org/go/logging"
)
type AuthorizationHandler struct {


+ 1
- 1
server/encoding/funcs.go View File

@ -3,7 +3,7 @@ package encoding
import (
"time"
"git.pluggableideas.com/destrealm/go/keystar/types/api"
"git.destrealm.org/go/keystar/types/api"
)
func Encode(data Encodable) *Encoded {


+ 1
- 1
server/encoding/server.go View File

@ -3,7 +3,7 @@ package encoding
import (
"time"
"git.pluggableideas.com/destrealm/go/keystar/types/api"
"git.destrealm.org/go/keystar/types/api"
)
// Server encoding.


+ 2
- 2
server/funcs.go View File

@ -6,8 +6,8 @@ import (
"io/ioutil"
"time"
"git.pluggableideas.com/destrealm/go/keystar/server/encoding"
"git.pluggableideas.com/destrealm/go/keystar/types/api"
"git.destrealm.org/go/keystar/server/encoding"
"git.destrealm.org/go/keystar/types/api"
)
func keyFromJSON(reader io.ReadCloser) (*keydata, error) {


+ 2
- 2
server/generator_handlers.go View File

@ -8,8 +8,8 @@ import (
"encoding/json"
"net/http"
"git.pluggableideas.com/destrealm/go/keystar"
"gitlab.com/destrealm/go/logging"
"git.destrealm.org/go/keystar"
"git.destrealm.org/go/logging"
)
func makeSigner(ks *keystar.KeyStar) func(http.ResponseWriter, *http.Request) {


+ 1
- 5
server/generatorcontrollers.go View File

@ -1,11 +1,7 @@
package server
import (
_ "git.pluggableideas.com/destrealm/go/capstan"
_ "git.pluggableideas.com/destrealm/go/capstan/status"
_ "git.pluggableideas.com/destrealm/go/keystar"
_ "git.pluggableideas.com/destrealm/go/keystar/types/api"
"gitlab.com/destrealm/go/logging"
"git.destrealm.org/go/logging"
)
type GeneratorController struct {


+ 4
- 4
server/helpers.go View File

@ -11,10 +11,10 @@ import (
"sync"
"time"
"git.pluggableideas.com/destrealm/go/keystar"
"git.pluggableideas.com/destrealm/go/keystar/auth"
"git.pluggableideas.com/destrealm/go/keystar/types/api"
"gitlab.com/destrealm/go/logging"
"git.destrealm.org/go/keystar"
"git.destrealm.org/go/keystar/auth"
"git.destrealm.org/go/keystar/types/api"
"git.destrealm.org/go/logging"
)
var noop = func(next http.Handler) http.Handler {


+ 9
- 9
server/keycontroller.go View File

@ -4,15 +4,15 @@ import (
"fmt"
"time"
"git.pluggableideas.com/destrealm/go/capstan"
"git.pluggableideas.com/destrealm/go/capstan/mappers"
"git.pluggableideas.com/destrealm/go/capstan/status"
"git.pluggableideas.com/destrealm/go/keystar"
. "git.pluggableideas.com/destrealm/go/keystar/errors"
"git.pluggableideas.com/destrealm/go/keystar/server/encoding"
"git.pluggableideas.com/destrealm/go/keystar/types/api"
"gitlab.com/destrealm/go/errors"
"gitlab.com/destrealm/go/logging"
"git.destrealm.org/go/capstan"
"git.destrealm.org/go/capstan/mappers"
"git.destrealm.org/go/capstan/status"
"git.destrealm.org/go/errors"
"git.destrealm.org/go/keystar"
. "git.destrealm.org/go/keystar/errors"
"git.destrealm.org/go/keystar/server/encoding"
"git.destrealm.org/go/keystar/types/api"
"git.destrealm.org/go/logging"
)
type KeyController struct {


+ 8
- 8
server/keyringcontroller.go View File

@ -3,14 +3,14 @@ package server
import (
"fmt"
"git.pluggableideas.com/destrealm/go/capstan"
"git.pluggableideas.com/destrealm/go/capstan/mappers"
"git.pluggableideas.com/destrealm/go/capstan/status"
"git.pluggableideas.com/destrealm/go/keystar"
. "git.pluggableideas.com/destrealm/go/keystar/errors"
"git.pluggableideas.com/destrealm/go/keystar/types/api"
"gitlab.com/destrealm/go/errors"
"gitlab.com/destrealm/go/logging"
"git.destrealm.org/go/capstan"
"git.destrealm.org/go/capstan/mappers"
"git.destrealm.org/go/capstan/status"
"git.destrealm.org/go/errors"
"git.destrealm.org/go/keystar"
. "git.destrealm.org/go/keystar/errors"
"git.destrealm.org/go/keystar/types/api"
"git.destrealm.org/go/logging"
)
// KeyRingController manages and views key ring contents. To view specific key


+ 1
- 1
server/middleware.go View File

@ -3,7 +3,7 @@ package server
import (
"net/http"
"git.pluggableideas.com/destrealm/go/keystar"
"git.destrealm.org/go/keystar"
)
// Authorizer creates a new authorization handler. This utilizes the authorizer


+ 5
- 5
server/namespacecontroller.go View File

@ -1,11 +1,11 @@
package server
import (
"git.pluggableideas.com/destrealm/go/capstan"
"git.pluggableideas.com/destrealm/go/capstan/status"
"git.pluggableideas.com/destrealm/go/keystar"
"git.pluggableideas.com/destrealm/go/keystar/types/api"
"gitlab.com/destrealm/go/logging"
"git.destrealm.org/go/capstan"
"git.destrealm.org/go/capstan/status"
"git.destrealm.org/go/keystar"
"git.destrealm.org/go/keystar/types/api"
"git.destrealm.org/go/logging"
)
type NamespaceController struct {


+ 6
- 6
server/rotatecontroller.go View File

@ -1,12 +1,12 @@
package server
import (
"git.pluggableideas.com/destrealm/go/capstan"
"git.pluggableideas.com/destrealm/go/capstan/mappers"
"git.pluggableideas.com/destrealm/go/capstan/status"
"git.pluggableideas.com/destrealm/go/keystar"
"git.pluggableideas.com/destrealm/go/keystar/types/api"
"gitlab.com/destrealm/go/logging"
"git.destrealm.org/go/capstan"
"git.destrealm.org/go/capstan/mappers"
"git.destrealm.org/go/capstan/status"
"git.destrealm.org/go/keystar"
"git.destrealm.org/go/keystar/types/api"
"git.destrealm.org/go/logging"
)
type RotateController struct {


+ 3
- 3
server/routes.go View File

@ -4,11 +4,11 @@ import (
"net/http"
"time"
"git.pluggableideas.com/destrealm/go/capstan"
"git.pluggableideas.com/destrealm/go/keystar"
"git.destrealm.org/go/capstan"
"git.destrealm.org/go/keystar"
"git.destrealm.org/go/logging"
"github.com/go-chi/chi"
"github.com/go-chi/chi/middleware"
"gitlab.com/destrealm/go/logging"
)
// No-op request handler.


+ 6
- 6
server/server.go View File

@ -11,12 +11,12 @@ import (
"os/signal"
"time"
"git.pluggableideas.com/destrealm/go/capstan"
"git.pluggableideas.com/destrealm/go/keystar"
. "git.pluggableideas.com/destrealm/go/keystar/errors"
kt "git.pluggableideas.com/destrealm/go/keystar/types"
"gitlab.com/destrealm/go/errors"
"gitlab.com/destrealm/go/logging"
"git.destrealm.org/go/capstan"
"git.destrealm.org/go/errors"
"git.destrealm.org/go/keystar"
. "git.destrealm.org/go/keystar/errors"
kt "git.destrealm.org/go/keystar/types"
"git.destrealm.org/go/logging"
)
type Config struct {


+ 6
- 6
server/templatecontroller.go View File

@ -1,12 +1,12 @@
package server
import (
"git.pluggableideas.com/destrealm/go/capstan"
"git.pluggableideas.com/destrealm/go/capstan/mappers"
"git.pluggableideas.com/destrealm/go/capstan/status"
"git.pluggableideas.com/destrealm/go/keystar"
"git.pluggableideas.com/destrealm/go/keystar/types/api"
"gitlab.com/destrealm/go/logging"
"git.destrealm.org/go/capstan"
"git.destrealm.org/go/capstan/mappers"
"git.destrealm.org/go/capstan/status"
"git.destrealm.org/go/keystar"
"git.destrealm.org/go/keystar/types/api"
"git.destrealm.org/go/logging"
)
type TemplateController struct {


+ 4
- 4
server/types.go View File

@ -7,10 +7,10 @@ import (
"strings"
"time"
. "git.pluggableideas.com/destrealm/go/keystar/errors"
"git.pluggableideas.com/destrealm/go/keystar/server/encoding"
"git.pluggableideas.com/destrealm/go/keystar/types/api"
"gitlab.com/destrealm/go/errors"
"git.destrealm.org/go/errors"
. "git.destrealm.org/go/keystar/errors"
"git.destrealm.org/go/keystar/server/encoding"
"git.destrealm.org/go/keystar/types/api"
)
const json500 = `{"error":"internal server error"}`


+ 0
- 2
server/writer.go View File

@ -2,8 +2,6 @@ package server
import (
"time"
_ "gitlab.com/destrealm/go/logging"
)
type encodedKey struct {


+ 4
- 4
storage/fs/file.go View File

@ -14,10 +14,10 @@ import (
"strings"
"sync"
. "git.pluggableideas.com/destrealm/go/keystar/errors"
kt "git.pluggableideas.com/destrealm/go/keystar/types"
"git.pluggableideas.com/destrealm/go/keystar/types/api"
"gitlab.com/destrealm/go/errors"
"git.destrealm.org/go/errors"
. "git.destrealm.org/go/keystar/errors"
kt "git.destrealm.org/go/keystar/types"
"git.destrealm.org/go/keystar/types/api"
)
// TODO: Fail on IsEphemeral.


+ 1
- 1
storage/fs/types.go View File

@ -3,7 +3,7 @@ package fs
import (
"time"
"git.pluggableideas.com/destrealm/go/keystar/types/api"
"git.destrealm.org/go/keystar/types/api"
)
// Account is used by the file system storage backend to persist user account


+ 6
- 6
storage/loader.go View File

@ -11,12 +11,12 @@ package storage
import (
"net/url"
"git.pluggableideas.com/destrealm/go/keystar/client"
. "git.pluggableideas.com/destrealm/go/keystar/errors"
"git.pluggableideas.com/destrealm/go/keystar/storage/fs"
"git.pluggableideas.com/destrealm/go/keystar/storage/mem"
kt "git.pluggableideas.com/destrealm/go/keystar/types"
"git.pluggableideas.com/destrealm/go/keystar/types/api"
"git.destrealm.org/go/keystar/client"
. "git.destrealm.org/go/keystar/errors"
"git.destrealm.org/go/keystar/storage/fs"
"git.destrealm.org/go/keystar/storage/mem"
kt "git.destrealm.org/go/keystar/types"
"git.destrealm.org/go/keystar/types/api"
)
func Loader(options *kt.Options) (kt.NamespaceInitializer, error) {


+ 2
- 2
storage/mem/storage.go View File

@ -3,8 +3,8 @@ package mem
import (
"sync"
. "git.pluggableideas.com/destrealm/go/keystar/errors"
"git.pluggableideas.com/destrealm/go/keystar/types/api"
. "git.destrealm.org/go/keystar/errors"
"git.destrealm.org/go/keystar/types/api"
)
type MemoryKeyRingBackend struct {


+ 4
- 4
storage/mem/storage_test.go View File

@ -3,10 +3,10 @@ package mem_test
import (
"testing"
. "git.pluggableideas.com/destrealm/go/keystar/errors"
"git.pluggableideas.com/destrealm/go/keystar/storage/mem"
"git.pluggableideas.com/destrealm/go/keystar/types/api"
"gitlab.com/destrealm/go/errors"
"git.destrealm.org/go/errors"
. "git.destrealm.org/go/keystar/errors"
"git.destrealm.org/go/keystar/storage/mem"
"git.destrealm.org/go/keystar/types/api"
)
// Test basic functionality of the proxy.


+ 1
- 1
types/api/funcs.go View File

@ -5,7 +5,7 @@ import (
"encoding/base64"
"fmt"
. "git.pluggableideas.com/destrealm/go/keystar/errors"
. "git.destrealm.org/go/keystar/errors"
)
// GenerateKeyData generates a cryptographically-secure byte slice for use as a key


+ 3
- 3
types/api/key.go View File

@ -6,9 +6,9 @@ import (
"sync"
"time"
. "git.pluggableideas.com/destrealm/go/keystar/errors"
"git.pluggableideas.com/destrealm/go/signals"
"gitlab.com/destrealm/go/errors"
"git.destrealm.org/go/errors"
. "git.destrealm.org/go/keystar/errors"
"git.destrealm.org/go/signals"
)
// KeyRing defines any of several key types that may be persisted to backend


+ 3
- 3
types/api/namespace.go View File

@ -1,9 +1,9 @@
package api
import (
. "git.pluggableideas.com/destrealm/go/keystar/errors"
"git.pluggableideas.com/destrealm/go/signals"
"gitlab.com/destrealm/go/errors"
"git.destrealm.org/go/errors"
. "git.destrealm.org/go/keystar/errors"
"git.destrealm.org/go/signals"
)
// Namespace instance container.


+ 1
- 1
types/config.go View File

@ -1,7 +1,7 @@
package types
import (
"git.pluggableideas.com/destrealm/go/keystar/types/api"
"git.destrealm.org/go/keystar/types/api"
)
// Options provides configuration information for KeyStar. This may be


+ 1
- 1
types/encapsulators.go View File

@ -1,7 +1,7 @@
package types
import (
"git.pluggableideas.com/destrealm/go/keystar/types/api"
"git.destrealm.org/go/keystar/types/api"
)
// Encapsulator is a type that specifies how multiple keys may be encapsulated


+ 5
- 5
types/helpers/funcs.go View File

@ -1,11 +1,11 @@
package helpers
import (
"git.pluggableideas.com/destrealm/go/keystar"
"git.pluggableideas.com/destrealm/go/keystar/auth"
. "git.pluggableideas.com/destrealm/go/keystar/errors"
"git.pluggableideas.com/destrealm/go/keystar/types/api"
"gitlab.com/destrealm/go/errors"
"git.destrealm.org/go/errors"
"git.destrealm.org/go/keystar"
"git.destrealm.org/go/keystar/auth"
. "git.destrealm.org/go/keystar/errors"
"git.destrealm.org/go/keystar/types/api"
)
// Initialize KeyStar's keyspace.


+ 4
- 4
types/keyspace.go View File

@ -3,10 +3,10 @@ package types
import (
"sync"
. "git.pluggableideas.com/destrealm/go/keystar/errors"
"git.pluggableideas.com/destrealm/go/keystar/types/api"
"git.pluggableideas.com/destrealm/go/signals"
"gitlab.com/destrealm/go/errors"
"git.destrealm.org/go/errors"
. "git.destrealm.org/go/keystar/errors"
"git.destrealm.org/go/keystar/types/api"
"git.destrealm.org/go/signals"
)
type KeySpace struct {


+ 1
- 1
types/primitives.go View File

@ -1,7 +1,7 @@
package types
import (
"git.pluggableideas.com/destrealm/go/keystar/types/api"
"git.destrealm.org/go/keystar/types/api"
)
type AccountsLoader func(uri string) (api.AccountHandler, error)


+ 1
- 1
types/proxy.go View File

@ -1,7 +1,7 @@
package types
import (
"git.pluggableideas.com/destrealm/go/keystar/types/api"
"git.destrealm.org/go/keystar/types/api"
)
// Proxy configures backend data structures using the loader provided. This is


+ 1
- 1
types/serializers.go View File

@ -1,7 +1,7 @@
package types
import (
"git.pluggableideas.com/destrealm/go/keystar/types/api"
"git.destrealm.org/go/keystar/types/api"
)
// Serializer is used by some backend storage types for persisting secret data.


Loading…
Cancel
Save