Browse Source

Moved to go.dev.pztrn.name and updated README with badges.

pull/12/head
Stanislav Nikitin 5 months ago
parent
commit
28adacf53e
Signed by: pztrn <pztrn@pztrn.name> GPG Key ID: 106900B32F8192EE
17 changed files with 51 additions and 30 deletions
  1. +21
    -2
      .drone.yml
  2. +2
    -0
      README.md
  3. +2
    -2
      cmd/giredorectl/main.go
  4. +4
    -4
      cmd/giredored/main.go
  5. +2
    -2
      domains/client/v1/config.go
  6. +2
    -2
      domains/client/v1/exported.go
  7. +2
    -2
      domains/client/v1/packages.go
  8. +2
    -2
      domains/server/v1/configapi.go
  9. +2
    -2
      domains/server/v1/exported.go
  10. +2
    -2
      domains/server/v1/goimports.go
  11. +2
    -2
      domains/server/v1/packagesapi.go
  12. +1
    -1
      go.mod
  13. +1
    -1
      internal/configuration/exported.go
  14. +1
    -1
      internal/configuration/fileconfig.go
  15. +2
    -2
      internal/httpserver/checkallowedips.go
  16. +2
    -2
      internal/httpserver/exported.go
  17. +1
    -1
      internal/requester/exported.go

+ 21
- 2
.drone.yml View File

@@ -13,14 +13,33 @@ steps:
from_secret: discord_webhook_secret
message: 'Starting building **{{repo.name}}#{{build.number}}@{{build.commit}}** @ {{datetime build.started "02-Jan-2006 15:04:05 MST" "Asia/Yekaterinburg"}} (See {{build.link}} for logs).'

- name: lint
image: golangci/golangci-lint:latest
environment:
GOFLAGS: -mod=vendor
CGO_ENABLED: 0
commands:
- golangci-lint run

- name: test
image: golang:1.13.1-alpine
environment:
GOFLAGS: -mod=vendor
CGO_ENABLED: 0
commands:
- go test ./...

- name: docker
image: plugins/docker
when:
branch:
master
settings:
username:
from_secret: dockerhub_user
password:
from_secret: dockerhub_password
repo: pztrn/giredore
repo: pztrn/fastpastebin
auto_tag: true

- name: notify-end
@@ -36,7 +55,7 @@ steps:
from_secret: discord_webhook_secret
message: "
{{#success build.status}}
**{{repo.name}}#{{build.number}}@{{build.commit}}** deployed.
**{{repo.name}}#{{build.number}}@{{build.commit}}** built and pushed to hub.docker.com.
{{ else }}
**{{repo.name}}#{{build.number}}@{{build.commit}}** failed. See {{build.link}}.
{{/success}}"

+ 2
- 0
README.md View File

@@ -1,3 +1,5 @@
[![Build Status](https://ci.dev.pztrn.name/api/badges/pztrn/giredore/status.svg)](https://ci.dev.pztrn.name/pztrn/giredore) [![Discord](https://img.shields.io/discord/632359730089689128)](https://discord.gg/qHN6KsD) ![Keybase XLM](https://img.shields.io/keybase/xlm/pztrn)

# Giredore

**Giredore** is an utility that does go-import redirects right. Main idea of this project is to provide easy-to-use yet powerful tool for Go developers to serve they packages right and help them with getting nice and very static URLs for their packages.


+ 2
- 2
cmd/giredorectl/main.go View File

@@ -5,8 +5,8 @@ import (
"os"

// local
clientv1 "sources.dev.pztrn.name/pztrn/giredore/domains/client/v1"
"sources.dev.pztrn.name/pztrn/giredore/internal/logger"
clientv1 "go.dev.pztrn.name/giredore/domains/client/v1"
"go.dev.pztrn.name/giredore/internal/logger"

// other
"github.com/teris-io/cli"


+ 4
- 4
cmd/giredored/main.go View File

@@ -7,10 +7,10 @@ import (
"syscall"

// local
serverv1 "sources.dev.pztrn.name/pztrn/giredore/domains/server/v1"
"sources.dev.pztrn.name/pztrn/giredore/internal/configuration"
"sources.dev.pztrn.name/pztrn/giredore/internal/httpserver"
"sources.dev.pztrn.name/pztrn/giredore/internal/logger"
serverv1 "go.dev.pztrn.name/giredore/domains/server/v1"
"go.dev.pztrn.name/giredore/internal/configuration"
"go.dev.pztrn.name/giredore/internal/httpserver"
"go.dev.pztrn.name/giredore/internal/logger"
)

func main() {


+ 2
- 2
domains/client/v1/config.go View File

@@ -5,8 +5,8 @@ import (
"strings"

// local
"sources.dev.pztrn.name/pztrn/giredore/internal/requester"
"sources.dev.pztrn.name/pztrn/giredore/internal/structs"
"go.dev.pztrn.name/giredore/internal/requester"
"go.dev.pztrn.name/giredore/internal/structs"
)

func GetConfiguration(options map[string]string) {


+ 2
- 2
domains/client/v1/exported.go View File

@@ -2,8 +2,8 @@ package clientv1

import (
// local
"sources.dev.pztrn.name/pztrn/giredore/internal/logger"
"sources.dev.pztrn.name/pztrn/giredore/internal/requester"
"go.dev.pztrn.name/giredore/internal/logger"
"go.dev.pztrn.name/giredore/internal/requester"

// other
"github.com/rs/zerolog"


+ 2
- 2
domains/client/v1/packages.go View File

@@ -5,8 +5,8 @@ import (
"strings"

// local
"sources.dev.pztrn.name/pztrn/giredore/internal/requester"
"sources.dev.pztrn.name/pztrn/giredore/internal/structs"
"go.dev.pztrn.name/giredore/internal/requester"
"go.dev.pztrn.name/giredore/internal/structs"
)

func DeletePackage(args []string, options map[string]string) {


+ 2
- 2
domains/server/v1/configapi.go View File

@@ -5,8 +5,8 @@ import (
"net/http"

// local
"sources.dev.pztrn.name/pztrn/giredore/internal/configuration"
"sources.dev.pztrn.name/pztrn/giredore/internal/structs"
"go.dev.pztrn.name/giredore/internal/configuration"
"go.dev.pztrn.name/giredore/internal/structs"

// other
"github.com/labstack/echo"


+ 2
- 2
domains/server/v1/exported.go View File

@@ -2,8 +2,8 @@ package serverv1

import (
// local
"sources.dev.pztrn.name/pztrn/giredore/internal/httpserver"
"sources.dev.pztrn.name/pztrn/giredore/internal/logger"
"go.dev.pztrn.name/giredore/internal/httpserver"
"go.dev.pztrn.name/giredore/internal/logger"

// other
"github.com/rs/zerolog"


+ 2
- 2
domains/server/v1/goimports.go View File

@@ -6,8 +6,8 @@ import (
"strings"

// local
"sources.dev.pztrn.name/pztrn/giredore/internal/configuration"
"sources.dev.pztrn.name/pztrn/giredore/internal/structs"
"go.dev.pztrn.name/giredore/internal/configuration"
"go.dev.pztrn.name/giredore/internal/structs"

// other
"github.com/labstack/echo"


+ 2
- 2
domains/server/v1/packagesapi.go View File

@@ -6,8 +6,8 @@ import (
"strings"

// local
"sources.dev.pztrn.name/pztrn/giredore/internal/configuration"
"sources.dev.pztrn.name/pztrn/giredore/internal/structs"
"go.dev.pztrn.name/giredore/internal/configuration"
"go.dev.pztrn.name/giredore/internal/structs"

// other
"github.com/labstack/echo"


+ 1
- 1
go.mod View File

@@ -1,4 +1,4 @@
module sources.dev.pztrn.name/pztrn/giredore
module go.dev.pztrn.name/giredore

go 1.13



+ 1
- 1
internal/configuration/exported.go View File

@@ -2,7 +2,7 @@ package configuration

import (
// local
"sources.dev.pztrn.name/pztrn/giredore/internal/logger"
"go.dev.pztrn.name/giredore/internal/logger"

// other
"github.com/rs/zerolog"


+ 1
- 1
internal/configuration/fileconfig.go View File

@@ -10,7 +10,7 @@ import (
"sync"

// local
"sources.dev.pztrn.name/pztrn/giredore/internal/structs"
"go.dev.pztrn.name/giredore/internal/structs"
)

// This structure represents configuration that will be parsed via file.


+ 2
- 2
internal/httpserver/checkallowedips.go View File

@@ -7,8 +7,8 @@ import (
"strings"

// local
"sources.dev.pztrn.name/pztrn/giredore/internal/configuration"
"sources.dev.pztrn.name/pztrn/giredore/internal/structs"
"go.dev.pztrn.name/giredore/internal/configuration"
"go.dev.pztrn.name/giredore/internal/structs"

// other
"github.com/labstack/echo"


+ 2
- 2
internal/httpserver/exported.go View File

@@ -9,8 +9,8 @@ import (
"time"

// local
"sources.dev.pztrn.name/pztrn/giredore/internal/configuration"
"sources.dev.pztrn.name/pztrn/giredore/internal/logger"
"go.dev.pztrn.name/giredore/internal/configuration"
"go.dev.pztrn.name/giredore/internal/logger"

// other
"github.com/labstack/echo"


+ 1
- 1
internal/requester/exported.go View File

@@ -8,7 +8,7 @@ import (
"net/http"

// local
"sources.dev.pztrn.name/pztrn/giredore/internal/logger"
"go.dev.pztrn.name/giredore/internal/logger"

// other
"github.com/rs/zerolog"


Loading…
Cancel
Save