Skip to content

Commit f40c9c0

Browse files
committed
Initial commit
0 parents  commit f40c9c0

File tree

532 files changed

+229318
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

532 files changed

+229318
-0
lines changed

.circleci/config.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
version: 2
2+
jobs:
3+
build:
4+
docker:
5+
- image: bepsays/ci-goreleaser:0.34.2-10
6+
working_directory: /go/src/github.com/bharat-p/mongo-sync-go
7+
steps:
8+
- checkout
9+
- run:
10+
command: |
11+
goreleaser
12+
workflows:
13+
version: 2
14+
release:
15+
jobs:
16+
- build:
17+
filters:
18+
tags:
19+
only: /v[0-9]+(\.[0-9]+)*(-.*)*/
20+
branches:
21+
ignore: /.*/

.gitignore

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
dump/
2+
dist/
3+
test/
4+
*.yaml
5+
mongo-sync-go
6+
# Binaries for programs and plugins
7+
*.exe
8+
*.dll
9+
*.so
10+
*.dylib
11+
12+
# Test binary, build with `go test -c`
13+
*.test
14+
15+
# Output of the go coverage tool, specifically when used with LiteIDE
16+
*.out
17+
18+
# Project-local glide cache, RE: https://github.com/Masterminds/glide/issues/736
19+
.glide/

.goreleaser.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# .goreleaser.yml
2+
# Build customization
3+
# go run -ldflags "-X github.com/bharat-p/mongo-sync-go/cmd.versionString=0.1.0 -X github.com/bharat-p/mongo-sync-go/cmd.buildDate=$BUILD" main.go version
4+
git:
5+
short_hash: true
6+
builds:
7+
- env:
8+
- CGO_ENABLED=0
9+
binary: mongo-sync-go
10+
goos:
11+
- linux
12+
- darwin
13+
goarch:
14+
- 386
15+
- amd64
16+
# Default is `-s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}`.
17+
#ldflags: -s -w -X main.build={{.Version}}
18+
brew:
19+
commit_author:
20+
name: releasebot
21+
email: 13206972+bharat-p@users.noreply.github.com
22+
github:
23+
owner: bharat-p
24+
name: homebrew-tap
25+
folder: Formula
26+
homepage: https://github.com/bharat-p/mongo-sync-go/blob/master/README.md
27+
description: Sync remote/local mongo database

.mongo-sync.yaml.template

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
general:
2+
mongorestore_options: "" # additional options to pass to mongorestore command
3+
mongodump_options: "" # additional options to pass to mongodump command
4+
5+
remote:
6+
host: localhost
7+
port: 27017
8+
username: ""
9+
password: ""
10+
authDatabase: admin
11+
12+
local:
13+
host: localhost
14+
port: 27017
15+
username: ""
16+
password: ""
17+
authDatabase: admin
18+

Gopkg.lock

Lines changed: 141 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Gopkg.toml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Gopkg.toml example
2+
#
3+
# Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md
4+
# for detailed Gopkg.toml documentation.
5+
#
6+
# required = ["github.com/user/thing/cmd/thing"]
7+
# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"]
8+
#
9+
# [[constraint]]
10+
# name = "github.com/user/project"
11+
# version = "1.0.0"
12+
#
13+
# [[constraint]]
14+
# name = "github.com/user/project2"
15+
# branch = "dev"
16+
# source = "github.com/myfork/project2"
17+
#
18+
# [[override]]
19+
# name = "github.com/x/y"
20+
# version = "2.4.0"
21+
#
22+
# [prune]
23+
# non-go = false
24+
# go-tests = true
25+
# unused-packages = true
26+
27+
28+
[prune]
29+
go-tests = true
30+
unused-packages = true
31+
32+
[[constraint]]
33+
branch = "master"
34+
name = "github.com/bharat-p/goutils"

0 commit comments

Comments
 (0)