Permalink
Browse files

Initial code import

Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
  • Loading branch information...
puiterwijk committed Jul 12, 2018
0 parents commit 03714c879345f794ff4f01200cdc8b7d2cd775f7
Showing with 12,010 additions and 0 deletions.
  1. +31 −0 .gitignore
  2. +15 −0 .mergify.yml
  3. +1 −0 CODEOWNERS
  4. +287 −0 Gopkg.lock
  5. +31 −0 Gopkg.toml
  6. +26 −0 LICENSE
  7. +182 −0 README.md
  8. +1 −0 VERSION
  9. +30 −0 build.sh
  10. +111 −0 client/bridge.go
  11. +260 −0 client/root.go
  12. +17 −0 client_config.yml.example
  13. +23 −0 cmd/repoclient/main.go
  14. +363 −0 cmd/repohookrunner/main.go
  15. +18 −0 cmd/repospanner/main.go
  16. +51 −0 config.yml.example
  17. +651 −0 functional_tests/base.go
  18. +10 −0 functional_tests/blobs/test-blocking.sh
  19. +14 −0 functional_tests/blobs/test.sh
  20. +125 −0 functional_tests/ca_test.go
  21. +101 −0 functional_tests/hooks_test.go
  22. +33 −0 functional_tests/multi_node_test.go
  23. +326 −0 functional_tests/pull_push_test.go
  24. +95 −0 functional_tests/repomgmt_test.go
  25. +37 −0 functional_tests/single_node_test.go
  26. +7 −0 repospanner.service
  27. +36 −0 server/cmd/admin-nodeinfo.go
  28. +52 −0 server/cmd/admin-repo-create.go
  29. +125 −0 server/cmd/admin-repo-edit.go
  30. +50 −0 server/cmd/admin-repo-list.go
  31. +167 −0 server/cmd/admin.go
  32. +138 −0 server/cmd/ca-init.go
  33. +138 −0 server/cmd/ca-leaf.go
  34. +113 −0 server/cmd/ca-node.go
  35. +42 −0 server/cmd/ca.go
  36. +156 −0 server/cmd/cert-utils.go
  37. +48 −0 server/cmd/root.go
  38. +87 −0 server/cmd/serve.go
  39. +30 −0 server/cmd/version.go
  40. +5 −0 server/constants/assorted.go
  41. +22 −0 server/constants/certinfo.go
  42. +30 −0 server/constants/versioninfo.go
  43. +67 −0 server/datastructures/admin.go
  44. +109 −0 server/protobuf/pushrequest.go
  45. +423 −0 server/protobuf/pushrequest.pb.go
  46. +45 −0 server/protobuf/pushrequest.proto
  47. +115 −0 server/service/authutils.go
  48. +715 −0 server/service/clustered_storage.go
  49. +522 −0 server/service/core.go
  50. +1,721 −0 server/service/gitutils.go
  51. +142 −0 server/service/gitutils_test.go
  52. +107 −0 server/service/hooks.go
  53. +250 −0 server/service/http-admin.go
  54. +140 −0 server/service/http-git-discovery.go
  55. +431 −0 server/service/http-git-receive-pack.go
  56. +186 −0 server/service/http-git-upload-pack.go
  57. +172 −0 server/service/http.go
  58. +326 −0 server/service/objectutils.go
  59. +479 −0 server/service/raft.go
  60. +396 −0 server/service/rpchttp.go
  61. +737 −0 server/service/statestore.go
  62. +243 −0 server/service/syncer.go
  63. +147 −0 server/storage/generic.go
  64. +168 −0 server/storage/generic_test.go
  65. +147 −0 server/storage/tree.go
  66. +137 −0 server/utils/logwrapper.go
@@ -0,0 +1,31 @@
# Binaries for programs and plugins
/repospanner
/repoclient
/repohookrunner
*.exe
*.dll
*.so
*.dylib

# Test binary, build with `go test -c`
*.test

# Output of the go coverage tool, specifically when used with LiteIDE
*.out

# Project-local glide cache, RE: https://github.com/Masterminds/glide/issues/736
.glide/

# Vendor directory
vendor/

# Certificates, keys, config files and ticket key sets
*.crt
*.key
*.yaml
*.yml
*.tks
!.mergify.yml

# Test directories
/livetest/
@@ -0,0 +1,15 @@
rules:
default:
merge_strategy:
method: rebase
rebase_fallback: none
protection:
required_status_checks:
strict: true
contexts:
- CodeFactor
- DCO
required_pull_request_reviews:
dismiss_stale_reviews: true
require_code_owner_reviews: true
required_approving_review_count: 1
@@ -0,0 +1 @@
* @repoSpanner/core

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -0,0 +1,31 @@
[[constraint]]
name = "github.com/golang/protobuf"
version = "^1.0.0"

[[constraint]]
name = "github.com/spf13/cobra"
version = "0.0.3"

[[constraint]]
name = "github.com/spf13/viper"
version = "^1.0.0"

[[constraint]]
branch = "release-branch.go1.10"
name = "golang.org/x/net"

[[constraint]]
name = "github.com/coreos/etcd"
version = "~3.3.7"

[[constraint]]
name = "go.uber.org/zap"
version = "^1.8.0"

[[constraint]]
name = "github.com/pkg/errors"
version = "~0.8.0"

[[constraint]]
name = "github.com/mattn/go-sqlite3"
version = "^1.9.0"
26 LICENSE
@@ -0,0 +1,26 @@
Copyright (c) 2018, repoSpanner Contributors
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

The views and conclusions contained in the software and documentation are those
of the authors and should not be interpreted as representing official policies,
either expressed or implied, of the <project name> project.
Oops, something went wrong.

0 comments on commit 03714c8

Please sign in to comment.