Skip to content

Commit

Permalink
feat(services/zip): Move services zip back (#934)
Browse files Browse the repository at this point in the history
* Move zip back

* Move zip back
  • Loading branch information
Joey-1445601153 authored Oct 21, 2021
1 parent 259f541 commit e342d44
Show file tree
Hide file tree
Showing 12 changed files with 761 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,3 +96,7 @@ updates:
directory: "/services/webdav"
schedule:
interval: daily
- package-ecosystem: gomod
directory: "/services/zip"
schedule:
interval: daily
2 changes: 2 additions & 0 deletions services/zip/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
coverage.*
bin/
41 changes: 41 additions & 0 deletions services/zip/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
SHELL := /bin/bash

.PHONY: all check format lint build test generate tidy

help:
@echo "Please use \`make <target>\` where <target> is one of"
@echo " check to do static check"
@echo " build to create bin directory and build"
@echo " generate to generate code"
@echo " test to run test"

check: vet

format:
go fmt ./...

vet:
go vet ./...

generate:
@echo "generate code"
go generate ./...
go fmt ./...

build: tidy generate check
go build ./...

test:
go test -race -coverprofile=coverage.txt -covermode=atomic -v .
go tool cover -html="coverage.txt" -o "coverage.html"

integration_test:
go test -race -count=1 -covermode=atomic -v ./tests

tidy:
go mod tidy
go mod verify

clean:
@echo "clean generated files"
find . -type f -name 'generated.go' -delete
9 changes: 9 additions & 0 deletions services/zip/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
## zip

zip services support for [go-storage](https://github.com/beyondstorage/go-storage)

## Install

```go
go get go.beyondstorage.io/services/zip
```
6 changes: 6 additions & 0 deletions services/zip/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/*
Package zip provided support for zip archive files.
*/
package zip

//go:generate go run -tags tools go.beyondstorage.io/v5/cmd/definitions service.toml
Loading

0 comments on commit e342d44

Please sign in to comment.