committed by
Nick Craig-Wood
parent
e0356f5aae
commit
6d58d9a86f
-2
@@ -1,2 +0,0 @@
|
||||
testdata
|
||||
coverage.txt
|
||||
-14
@@ -1,14 +0,0 @@
|
||||
dependencies:
|
||||
override:
|
||||
- mkdir -p ~/.go_workspace/src/github.com/goftp
|
||||
- ln -s ${HOME}/${CIRCLE_PROJECT_REPONAME} ${HOME}/.go_workspace/src/github.com/goftp/${CIRCLE_PROJECT_REPONAME}
|
||||
# './...' is a relative pattern which means all subdirectories
|
||||
- go get -t -d -v ./...
|
||||
- go build -v
|
||||
|
||||
test:
|
||||
override:
|
||||
# './...' is a relative pattern which means all subdirectories
|
||||
- go test -v -race -coverprofile=coverage.txt -covermode=atomic
|
||||
post:
|
||||
- bash <(curl -s https://codecov.io/bash)
|
||||
Generated
+3
@@ -0,0 +1,3 @@
|
||||
testdata
|
||||
coverage.txt
|
||||
exampleftpd/exampleftpd
|
||||
+8
-9
@@ -1,12 +1,11 @@
|
||||
# server
|
||||
|
||||
[](https://circleci.com/gh/goftp/server)
|
||||
[](https://goreportcard.com/report/github.com/goftp/server)
|
||||
[](https://codecov.io/gh/goftp/server)
|
||||
[](https://drone.gitea.com/goftp/server) [](http://gocover.io/gitea.com/goftp/server)
|
||||
[](https://goreportcard.com/report/gitea.com/goftp/server)
|
||||
|
||||
A FTP server framework forked from [github.com/yob/graval](http://github.com/yob/graval) and changed a lot.
|
||||
|
||||
Full documentation for the package is available on [godoc](http://godoc.org/github.com/goftp/server)
|
||||
Full documentation for the package is available on [godoc](http://godoc.org/goftp.io/server)
|
||||
|
||||
## Version
|
||||
|
||||
@@ -14,21 +13,21 @@ Full documentation for the package is available on [godoc](http://godoc.org/gith
|
||||
|
||||
## Installation
|
||||
|
||||
go get github.com/goftp/server
|
||||
go get goftp.io/server
|
||||
|
||||
## Usage
|
||||
|
||||
To boot a FTP server you will need to provide a driver that speaks to
|
||||
your persistence layer - the required driver contract is in [the
|
||||
documentation](http://godoc.org/github.com/goftp/server).
|
||||
documentation](http://godoc.org/goftp.io/server).
|
||||
|
||||
Look at the [file driver](https://github.com/goftp/file-driver) to see
|
||||
Look at the [file driver](https://gitea.com/goftp/file-driver) to see
|
||||
an example of how to build a backend.
|
||||
|
||||
There is a [sample ftp server](/exampleftpd) as a demo. You can build it with this
|
||||
command:
|
||||
|
||||
go install github.com/goftp/server/exampleftpd
|
||||
go install goftp.io/server/exampleftpd
|
||||
|
||||
Then run it if you have add $GOPATH to your $PATH:
|
||||
|
||||
@@ -46,7 +45,7 @@ This uses the file driver mentioned above to serve files.
|
||||
|
||||
## Contributors
|
||||
|
||||
see [https://github.com/goftp/server/graphs/contributors](https://github.com/goftp/server/graphs/contributors)
|
||||
see [https://gitea.com/goftp/server/graphs/contributors](https://gitea.com/goftp/server/graphs/contributors)
|
||||
|
||||
## Warning
|
||||
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
module goftp.io/server
|
||||
|
||||
go 1.12
|
||||
|
||||
require (
|
||||
gitea.com/goftp/file-driver v0.0.0-20190812052443-efcdcba68b34
|
||||
github.com/jlaffaye/ftp v0.0.0-20190624084859-c1312a7102bf
|
||||
github.com/stretchr/testify v1.3.0
|
||||
)
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
gitea.com/goftp/file-driver v0.0.0-20190712091345-f79c2ed973f8/go.mod h1:ghdogu0Da3rwYCSJ20JPgTiMcDpzeRbzvuFIOOW3G7w=
|
||||
gitea.com/goftp/file-driver v0.0.0-20190812052443-efcdcba68b34 h1:3wshUWDKHcy8hrNafCS4rtuAdON2KYsuznc05zdHTrQ=
|
||||
gitea.com/goftp/file-driver v0.0.0-20190812052443-efcdcba68b34/go.mod h1:6+f1gclV97PmaVmE4YJbH3KIKnl+r3/HWR0zD/z1CG4=
|
||||
github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8=
|
||||
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||
github.com/jlaffaye/ftp v0.0.0-20190624084859-c1312a7102bf h1:2IYBd5TD/maMqTU2YUzp2tJL4cNaOYQ9EBullN9t9pk=
|
||||
github.com/jlaffaye/ftp v0.0.0-20190624084859-c1312a7102bf/go.mod h1:lli8NYPQOFy3O++YmYbqVgOcQ1JPCwdOy+5zSjKJ9qY=
|
||||
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
|
||||
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
|
||||
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
|
||||
github.com/stretchr/testify v1.3.0 h1:TivCn/peBQ7UY8ooIcPgZFpTNSz0Q2U6UrFlUfqbe0Q=
|
||||
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
|
||||
goftp.io/server v0.0.0-20190712054601-1149070ae46b/go.mod h1:xreggPYu7ZuNe9PfbxiQca7bYGwU44IvlCCg3KzWJtQ=
|
||||
goftp.io/server v0.0.0-20190812034929-9b3874d17690/go.mod h1:99FISrRpwKfaL4Ey/dX8N48WToveng/s2OXR5sJ3cnc=
|
||||
Generated
Vendored
Vendored
+2
-2
@@ -85,8 +85,6 @@ github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/team_common
|
||||
github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/team_policies
|
||||
github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/users
|
||||
github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/users_common
|
||||
# github.com/goftp/server v0.0.0-20190712054601-1149070ae46b
|
||||
github.com/goftp/server
|
||||
# github.com/golang/protobuf v1.3.2
|
||||
github.com/golang/protobuf/proto
|
||||
github.com/golang/protobuf/ptypes
|
||||
@@ -204,6 +202,8 @@ go.opencensus.io/trace
|
||||
go.opencensus.io/trace/internal
|
||||
go.opencensus.io/trace/propagation
|
||||
go.opencensus.io/trace/tracestate
|
||||
# goftp.io/server v0.0.0-20190812052725-72a57b186803
|
||||
goftp.io/server
|
||||
# golang.org/x/crypto v0.0.0-20190820162420-60c769a6c586
|
||||
golang.org/x/crypto/bcrypt
|
||||
golang.org/x/crypto/blowfish
|
||||
|
||||
Reference in New Issue
Block a user