Update mirror
This commit is contained in:
parent
d23c355e72
commit
818498fca0
|
@ -1,22 +0,0 @@
|
|||
{{ range .Versions }}
|
||||
<a name="{{ .Tag.Name }}"></a>
|
||||
## {{ if .Tag.Previous }}[{{ .Tag.Name }}]({{ $.Info.RepositoryURL }}/compare/{{ .Tag.Previous.Name }}...{{ .Tag.Name }}){{ else }}{{ .Tag.Name }}{{ end }} ({{ datetime "2006-01-02" .Tag.Date }})
|
||||
|
||||
{{ range .CommitGroups -}}
|
||||
### {{ .Title }}
|
||||
|
||||
{{ range .Commits -}}
|
||||
* {{ .Subject }}
|
||||
{{ end }}
|
||||
{{ end -}}
|
||||
|
||||
{{- if .NoteGroups -}}
|
||||
{{ range .NoteGroups -}}
|
||||
### {{ .Title }}
|
||||
|
||||
{{ range .Notes }}
|
||||
{{ .Body }}
|
||||
{{ end }}
|
||||
{{ end -}}
|
||||
{{ end -}}
|
||||
{{ end -}}
|
|
@ -1,28 +0,0 @@
|
|||
---
|
||||
style: Github
|
||||
template: CHANGELOG.tpl.md
|
||||
info:
|
||||
title: CHANGELOG
|
||||
repository_url: https://git.mills.io/prologic/bitcask
|
||||
options:
|
||||
commits:
|
||||
filters:
|
||||
Type:
|
||||
- Add
|
||||
- Fix
|
||||
- Update
|
||||
- Document
|
||||
commit_groups:
|
||||
title_maps:
|
||||
Add: Features
|
||||
Update: Updates
|
||||
Fix: Bug Fixes
|
||||
Document: Documentation
|
||||
header:
|
||||
pattern: "^((\\w+)\\s.*)$"
|
||||
pattern_maps:
|
||||
- Subject
|
||||
- Type
|
||||
notes:
|
||||
keywords:
|
||||
- BREAKING CHANGE
|
28
.drone.yml
28
.drone.yml
|
@ -1,28 +0,0 @@
|
|||
---
|
||||
kind: pipeline
|
||||
name: default
|
||||
|
||||
steps:
|
||||
- name: build & run tests
|
||||
image: r.mills.io/prologic/golang-alpine
|
||||
commands:
|
||||
- make build
|
||||
- make test
|
||||
|
||||
- name: notify
|
||||
image: plugins/webhook
|
||||
settings:
|
||||
urls:
|
||||
- https://msgbus.mills.io/ci.mills.io
|
||||
when:
|
||||
status:
|
||||
- success
|
||||
- failure
|
||||
|
||||
trigger:
|
||||
branch:
|
||||
- master
|
||||
event:
|
||||
- tag
|
||||
- push
|
||||
- pull_request
|
|
@ -1,39 +0,0 @@
|
|||
---
|
||||
builds:
|
||||
-
|
||||
id: bitcask
|
||||
binary: bitcask
|
||||
main: ./cmd/bitcask
|
||||
flags: -tags "static_build"
|
||||
ldflags: -w -X git.mills.io/prologic/bitcask/internal.Version={{.Version}} -X git.mills.io/prologic/bitcask/internal.Commit={{.Commit}}
|
||||
env:
|
||||
- CGO_ENABLED=0
|
||||
goos:
|
||||
- darwin
|
||||
- linux
|
||||
goarch:
|
||||
- amd64
|
||||
- arm64
|
||||
-
|
||||
id: bitcaskd
|
||||
binary: bitcaskd
|
||||
main: ./cmd/bitcaskd
|
||||
flags: -tags "static_build"
|
||||
ldflags: -w -X git.mills.io/prologic/bitcask/internal.Version={{.Version}} -X git.mills.io/prologic/bitcask/internal.Commit={{.Commit}}
|
||||
env:
|
||||
- CGO_ENABLED=0
|
||||
goos:
|
||||
- darwin
|
||||
- linux
|
||||
goarch:
|
||||
- amd64
|
||||
- arm64
|
||||
signs:
|
||||
- artifacts: checksum
|
||||
release:
|
||||
gitea:
|
||||
owner: prologic
|
||||
name: bitcask
|
||||
draft: true
|
||||
gitea_urls:
|
||||
api: https://git.mills.io/api/v1/
|
|
@ -1,76 +0,0 @@
|
|||
# Contributor Covenant Code of Conduct
|
||||
|
||||
## Our Pledge
|
||||
|
||||
In the interest of fostering an open and welcoming environment, we as
|
||||
contributors and maintainers pledge to making participation in our project and
|
||||
our community a harassment-free experience for everyone, regardless of age, body
|
||||
size, disability, ethnicity, sex characteristics, gender identity and expression,
|
||||
level of experience, education, socio-economic status, nationality, personal
|
||||
appearance, race, religion, or sexual identity and orientation.
|
||||
|
||||
## Our Standards
|
||||
|
||||
Examples of behavior that contributes to creating a positive environment
|
||||
include:
|
||||
|
||||
* Using welcoming and inclusive language
|
||||
* Being respectful of differing viewpoints and experiences
|
||||
* Gracefully accepting constructive criticism
|
||||
* Focusing on what is best for the community
|
||||
* Showing empathy towards other community members
|
||||
|
||||
Examples of unacceptable behavior by participants include:
|
||||
|
||||
* The use of sexualized language or imagery and unwelcome sexual attention or
|
||||
advances
|
||||
* Trolling, insulting/derogatory comments, and personal or political attacks
|
||||
* Public or private harassment
|
||||
* Publishing others' private information, such as a physical or electronic
|
||||
address, without explicit permission
|
||||
* Other conduct which could reasonably be considered inappropriate in a
|
||||
professional setting
|
||||
|
||||
## Our Responsibilities
|
||||
|
||||
Project maintainers are responsible for clarifying the standards of acceptable
|
||||
behavior and are expected to take appropriate and fair corrective action in
|
||||
response to any instances of unacceptable behavior.
|
||||
|
||||
Project maintainers have the right and responsibility to remove, edit, or
|
||||
reject comments, commits, code, wiki edits, issues, and other contributions
|
||||
that are not aligned to this Code of Conduct, or to ban temporarily or
|
||||
permanently any contributor for other behaviors that they deem inappropriate,
|
||||
threatening, offensive, or harmful.
|
||||
|
||||
## Scope
|
||||
|
||||
This Code of Conduct applies both within project spaces and in public spaces
|
||||
when an individual is representing the project or its community. Examples of
|
||||
representing a project or community include using an official project e-mail
|
||||
address, posting via an official social media account, or acting as an appointed
|
||||
representative at an online or offline event. Representation of a project may be
|
||||
further defined and clarified by project maintainers.
|
||||
|
||||
## Enforcement
|
||||
|
||||
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
||||
reported by contacting the project team at . All
|
||||
complaints will be reviewed and investigated and will result in a response that
|
||||
is deemed necessary and appropriate to the circumstances. The project team is
|
||||
obligated to maintain confidentiality with regard to the reporter of an incident.
|
||||
Further details of specific enforcement policies may be posted separately.
|
||||
|
||||
Project maintainers who do not follow or enforce the Code of Conduct in good
|
||||
faith may face temporary or permanent repercussions as determined by other
|
||||
members of the project's leadership.
|
||||
|
||||
## Attribution
|
||||
|
||||
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
||||
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
|
||||
|
||||
[homepage]: https://www.contributor-covenant.org
|
||||
|
||||
For answers to common questions about this code of conduct, see
|
||||
https://www.contributor-covenant.org/faq
|
|
@ -1,12 +0,0 @@
|
|||
# Contributing
|
||||
|
||||
No preference. If you know how to use Github and have contributed to open source projects before then:
|
||||
|
||||
* File an issue
|
||||
* Submit a pull request
|
||||
* File an issue + Submit a pull request
|
||||
* Use this project somewhere :)
|
||||
|
||||
Be sure to add yourself to the [AUTHORS](/AUTHORS) file when you submit your PR(s). Every contribution counts no how big or small!
|
||||
|
||||
Thanks for using Bitcask!
|
14
Dockerfile
14
Dockerfile
|
@ -1,14 +0,0 @@
|
|||
# Build
|
||||
FROM prologic/go-builder:latest AS build
|
||||
|
||||
# Runtime
|
||||
FROM alpine
|
||||
|
||||
COPY --from=build /src/bitcaskd /bitcaskd
|
||||
|
||||
EXPOSE 6379/tcp
|
||||
|
||||
VOLUME /data
|
||||
|
||||
ENTRYPOINT ["/bitcaskd"]
|
||||
CMD ["/data"]
|
|
@ -1 +0,0 @@
|
|||
theme: jekyll-theme-hacker
|
14
bitcask.go
14
bitcask.go
|
@ -18,13 +18,13 @@ import (
|
|||
art "github.com/plar/go-adaptive-radix-tree"
|
||||
log "github.com/sirupsen/logrus"
|
||||
|
||||
"git.mills.io/prologic/bitcask/internal"
|
||||
"git.mills.io/prologic/bitcask/internal/config"
|
||||
"git.mills.io/prologic/bitcask/internal/data"
|
||||
"git.mills.io/prologic/bitcask/internal/data/codec"
|
||||
"git.mills.io/prologic/bitcask/internal/index"
|
||||
"git.mills.io/prologic/bitcask/internal/metadata"
|
||||
"git.mills.io/prologic/bitcask/scripts/migrations"
|
||||
"git.tcp.direct/Mirrors/bitcask-mirror/internal"
|
||||
"git.tcp.direct/Mirrors/bitcask-mirror/internal/config"
|
||||
"git.tcp.direct/Mirrors/bitcask-mirror/internal/data"
|
||||
"git.tcp.direct/Mirrors/bitcask-mirror/internal/data/codec"
|
||||
"git.tcp.direct/Mirrors/bitcask-mirror/internal/index"
|
||||
"git.tcp.direct/Mirrors/bitcask-mirror/internal/metadata"
|
||||
"git.tcp.direct/Mirrors/bitcask-mirror/scripts/migrations"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
@ -18,9 +18,9 @@ import (
|
|||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"git.mills.io/prologic/bitcask/internal"
|
||||
"git.mills.io/prologic/bitcask/internal/config"
|
||||
"git.mills.io/prologic/bitcask/internal/mocks"
|
||||
"git.tcp.direct/Mirrors/bitcask-mirror/internal"
|
||||
"git.tcp.direct/Mirrors/bitcask-mirror/internal/config"
|
||||
"git.tcp.direct/Mirrors/bitcask-mirror/internal/mocks"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
@ -7,7 +7,7 @@ import (
|
|||
"github.com/spf13/cobra"
|
||||
"github.com/spf13/viper"
|
||||
|
||||
"git.mills.io/prologic/bitcask"
|
||||
"git.tcp.direct/Mirrors/bitcask-mirror"
|
||||
)
|
||||
|
||||
var delCmd = &cobra.Command{
|
||||
|
|
|
@ -11,7 +11,7 @@ import (
|
|||
"github.com/spf13/cobra"
|
||||
"github.com/spf13/viper"
|
||||
|
||||
"git.mills.io/prologic/bitcask"
|
||||
"git.tcp.direct/Mirrors/bitcask-mirror"
|
||||
)
|
||||
|
||||
var errNotAllDataWritten = errors.New("error: not all data written")
|
||||
|
|
|
@ -8,7 +8,7 @@ import (
|
|||
"github.com/spf13/cobra"
|
||||
"github.com/spf13/viper"
|
||||
|
||||
"git.mills.io/prologic/bitcask"
|
||||
"git.tcp.direct/Mirrors/bitcask-mirror"
|
||||
)
|
||||
|
||||
var getCmd = &cobra.Command{
|
||||
|
|
|
@ -11,7 +11,7 @@ import (
|
|||
"github.com/spf13/cobra"
|
||||
"github.com/spf13/viper"
|
||||
|
||||
"git.mills.io/prologic/bitcask"
|
||||
"git.tcp.direct/Mirrors/bitcask-mirror"
|
||||
)
|
||||
|
||||
var importCmd = &cobra.Command{
|
||||
|
|
|
@ -7,7 +7,7 @@ import (
|
|||
"github.com/spf13/cobra"
|
||||
"github.com/spf13/viper"
|
||||
|
||||
"git.mills.io/prologic/bitcask"
|
||||
"git.tcp.direct/Mirrors/bitcask-mirror"
|
||||
)
|
||||
|
||||
var initdbCmd = &cobra.Command{
|
||||
|
|
|
@ -8,7 +8,7 @@ import (
|
|||
"github.com/spf13/cobra"
|
||||
"github.com/spf13/viper"
|
||||
|
||||
"git.mills.io/prologic/bitcask"
|
||||
"git.tcp.direct/Mirrors/bitcask-mirror"
|
||||
)
|
||||
|
||||
var keysCmd = &cobra.Command{
|
||||
|
|
|
@ -7,7 +7,7 @@ import (
|
|||
"github.com/spf13/cobra"
|
||||
"github.com/spf13/viper"
|
||||
|
||||
"git.mills.io/prologic/bitcask"
|
||||
"git.tcp.direct/Mirrors/bitcask-mirror"
|
||||
)
|
||||
|
||||
var mergeCmd = &cobra.Command{
|
||||
|
|
|
@ -10,7 +10,7 @@ import (
|
|||
"github.com/spf13/cobra"
|
||||
"github.com/spf13/viper"
|
||||
|
||||
"git.mills.io/prologic/bitcask"
|
||||
"git.tcp.direct/Mirrors/bitcask-mirror"
|
||||
)
|
||||
|
||||
var putCmd = &cobra.Command{
|
||||
|
|
|
@ -8,7 +8,7 @@ import (
|
|||
"github.com/spf13/cobra"
|
||||
"github.com/spf13/viper"
|
||||
|
||||
"git.mills.io/prologic/bitcask"
|
||||
"git.tcp.direct/Mirrors/bitcask-mirror"
|
||||
)
|
||||
|
||||
var rangeCmd = &cobra.Command{
|
||||
|
|
|
@ -6,11 +6,11 @@ import (
|
|||
"os"
|
||||
"path/filepath"
|
||||
|
||||
"git.mills.io/prologic/bitcask"
|
||||
"git.mills.io/prologic/bitcask/internal"
|
||||
"git.mills.io/prologic/bitcask/internal/config"
|
||||
"git.mills.io/prologic/bitcask/internal/data/codec"
|
||||
"git.mills.io/prologic/bitcask/internal/index"
|
||||
"git.tcp.direct/Mirrors/bitcask-mirror"
|
||||
"git.tcp.direct/Mirrors/bitcask-mirror/internal"
|
||||
"git.tcp.direct/Mirrors/bitcask-mirror/internal/config"
|
||||
"git.tcp.direct/Mirrors/bitcask-mirror/internal/data/codec"
|
||||
"git.tcp.direct/Mirrors/bitcask-mirror/internal/index"
|
||||
log "github.com/sirupsen/logrus"
|
||||
"github.com/spf13/cobra"
|
||||
"github.com/spf13/viper"
|
||||
|
|
|
@ -8,7 +8,7 @@ import (
|
|||
"github.com/spf13/cobra"
|
||||
"github.com/spf13/viper"
|
||||
|
||||
"git.mills.io/prologic/bitcask/internal"
|
||||
"git.tcp.direct/Mirrors/bitcask-mirror/internal"
|
||||
)
|
||||
|
||||
// RootCmd represents the base command when called without any subcommands
|
||||
|
|
|
@ -8,7 +8,7 @@ import (
|
|||
"github.com/spf13/cobra"
|
||||
"github.com/spf13/viper"
|
||||
|
||||
"git.mills.io/prologic/bitcask"
|
||||
"git.tcp.direct/Mirrors/bitcask-mirror"
|
||||
)
|
||||
|
||||
var scanCmd = &cobra.Command{
|
||||
|
|
|
@ -9,7 +9,7 @@ import (
|
|||
"github.com/spf13/cobra"
|
||||
"github.com/spf13/viper"
|
||||
|
||||
"git.mills.io/prologic/bitcask"
|
||||
"git.tcp.direct/Mirrors/bitcask-mirror"
|
||||
)
|
||||
|
||||
var statsCmd = &cobra.Command{
|
||||
|
|
|
@ -7,7 +7,7 @@ import (
|
|||
log "github.com/sirupsen/logrus"
|
||||
flag "github.com/spf13/pflag"
|
||||
|
||||
"git.mills.io/prologic/bitcask/internal"
|
||||
"git.tcp.direct/Mirrors/bitcask-mirror/internal"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
@ -12,7 +12,7 @@ import (
|
|||
log "github.com/sirupsen/logrus"
|
||||
"github.com/tidwall/redcon"
|
||||
|
||||
"git.mills.io/prologic/bitcask"
|
||||
"git.tcp.direct/Mirrors/bitcask-mirror"
|
||||
)
|
||||
|
||||
type server struct {
|
||||
|
|
2
go.mod
2
go.mod
|
@ -1,4 +1,4 @@
|
|||
module git.mills.io/prologic/bitcask
|
||||
module git.tcp.direct/Mirrors/bitcask-mirror
|
||||
|
||||
go 1.16
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ import (
|
|||
"time"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
"git.mills.io/prologic/bitcask/internal"
|
||||
"git.tcp.direct/Mirrors/bitcask-mirror/internal"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
@ -7,7 +7,7 @@ import (
|
|||
"testing"
|
||||
"time"
|
||||
|
||||
"git.mills.io/prologic/bitcask/internal"
|
||||
"git.tcp.direct/Mirrors/bitcask-mirror/internal"
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ import (
|
|||
"io"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
"git.mills.io/prologic/bitcask/internal"
|
||||
"git.tcp.direct/Mirrors/bitcask-mirror/internal"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
@ -6,7 +6,7 @@ import (
|
|||
"testing"
|
||||
"time"
|
||||
|
||||
"git.mills.io/prologic/bitcask/internal"
|
||||
"git.tcp.direct/Mirrors/bitcask-mirror/internal"
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
|
|
|
@ -6,9 +6,10 @@ import (
|
|||
"path/filepath"
|
||||
"sync"
|
||||
|
||||
"git.mills.io/prologic/bitcask/internal"
|
||||
"git.mills.io/prologic/bitcask/internal/data/codec"
|
||||
"github.com/pkg/errors"
|
||||
"git.tcp.direct/Mirrors/bitcask-mirror/internal"
|
||||
"git.tcp.direct/Mirrors/bitcask-mirror/internal/data/codec"
|
||||
|
||||
"golang.org/x/exp/mmap"
|
||||
)
|
||||
|
||||
|
|
|
@ -6,9 +6,9 @@ import (
|
|||
"os"
|
||||
"path/filepath"
|
||||
|
||||
"git.mills.io/prologic/bitcask/internal"
|
||||
"git.mills.io/prologic/bitcask/internal/config"
|
||||
"git.mills.io/prologic/bitcask/internal/data/codec"
|
||||
"git.tcp.direct/Mirrors/bitcask-mirror/internal"
|
||||
"git.tcp.direct/Mirrors/bitcask-mirror/internal/config"
|
||||
"git.tcp.direct/Mirrors/bitcask-mirror/internal/data/codec"
|
||||
)
|
||||
|
||||
// CheckAndRecover checks and recovers the last datafile.
|
||||
|
|
|
@ -6,7 +6,7 @@ import (
|
|||
|
||||
"github.com/pkg/errors"
|
||||
art "github.com/plar/go-adaptive-radix-tree"
|
||||
"git.mills.io/prologic/bitcask/internal"
|
||||
"git.tcp.direct/Mirrors/bitcask-mirror/internal"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
@ -8,7 +8,7 @@ import (
|
|||
|
||||
"github.com/pkg/errors"
|
||||
art "github.com/plar/go-adaptive-radix-tree"
|
||||
"git.mills.io/prologic/bitcask/internal"
|
||||
"git.tcp.direct/Mirrors/bitcask-mirror/internal"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
@ -4,7 +4,7 @@ import (
|
|||
"os"
|
||||
|
||||
art "github.com/plar/go-adaptive-radix-tree"
|
||||
"git.mills.io/prologic/bitcask/internal"
|
||||
"git.tcp.direct/Mirrors/bitcask-mirror/internal"
|
||||
)
|
||||
|
||||
// Indexer is an interface for loading and saving the index (an Adaptive Radix Tree)
|
||||
|
|
|
@ -7,7 +7,7 @@ import (
|
|||
"time"
|
||||
|
||||
art "github.com/plar/go-adaptive-radix-tree"
|
||||
"git.mills.io/prologic/bitcask/internal"
|
||||
"git.tcp.direct/Mirrors/bitcask-mirror/internal"
|
||||
)
|
||||
|
||||
type ttlIndexer struct{}
|
||||
|
|
|
@ -3,7 +3,7 @@ package metadata
|
|||
import (
|
||||
"os"
|
||||
|
||||
"git.mills.io/prologic/bitcask/internal"
|
||||
"git.tcp.direct/Mirrors/bitcask-mirror/internal"
|
||||
)
|
||||
|
||||
type MetaData struct {
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
package mocks
|
||||
|
||||
import internal "git.mills.io/prologic/bitcask/internal"
|
||||
import internal "git.tcp.direct/Mirrors/bitcask-mirror/internal"
|
||||
import mock "github.com/stretchr/testify/mock"
|
||||
|
||||
// Datafile is an autogenerated mock type for the Datafile type
|
||||
|
|
|
@ -3,7 +3,7 @@ package bitcask
|
|||
import (
|
||||
"os"
|
||||
|
||||
"git.mills.io/prologic/bitcask/internal/config"
|
||||
"git.tcp.direct/Mirrors/bitcask-mirror/internal/config"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
@ -9,7 +9,7 @@ import (
|
|||
"path"
|
||||
"path/filepath"
|
||||
|
||||
"git.mills.io/prologic/bitcask/internal"
|
||||
"git.tcp.direct/Mirrors/bitcask-mirror/internal"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
Loading…
Reference in New Issue