Rename module to github.com/harness/scm & Fix web/dist.go (PR #2)
This change is renaming the go module to github.com/harness/scm to match the github url of the repository. Furthermore, it adds back the code in web/dist.go that is serving the static web content, as otherwise builds are failing.
This commit is contained in:
commit
a051fd9a28
|
@ -6,4 +6,4 @@ _research
|
||||||
web/node_modules
|
web/node_modules
|
||||||
web/dist/files
|
web/dist/files
|
||||||
release
|
release
|
||||||
my-app
|
scm-app
|
||||||
|
|
22
README.md
22
README.md
|
@ -22,7 +22,7 @@ Build the server and command line tools:
|
||||||
|
|
||||||
```text
|
```text
|
||||||
$ go generate ./...
|
$ go generate ./...
|
||||||
$ go build -o release/my-app
|
$ go build -o release/scm-app
|
||||||
```
|
```
|
||||||
|
|
||||||
# Test
|
# Test
|
||||||
|
@ -41,7 +41,7 @@ This project supports all operating systems and architectures supported by Go.
|
||||||
Start the server at `localhost:3000`
|
Start the server at `localhost:3000`
|
||||||
|
|
||||||
```text
|
```text
|
||||||
$ release/my-app server
|
$ release/scm-app server
|
||||||
```
|
```
|
||||||
|
|
||||||
# User Interface
|
# User Interface
|
||||||
|
@ -59,53 +59,53 @@ This project includes simple command line tools for interacting with the system.
|
||||||
Register a new user:
|
Register a new user:
|
||||||
|
|
||||||
```text
|
```text
|
||||||
$ release/my-app register
|
$ release/scm-app register
|
||||||
```
|
```
|
||||||
|
|
||||||
Login to the application:
|
Login to the application:
|
||||||
|
|
||||||
```text
|
```text
|
||||||
$ release/my-app login
|
$ release/scm-app login
|
||||||
```
|
```
|
||||||
|
|
||||||
Logout from the application:
|
Logout from the application:
|
||||||
|
|
||||||
```text
|
```text
|
||||||
$ release/my-app logout
|
$ release/scm-app logout
|
||||||
```
|
```
|
||||||
|
|
||||||
View your account details:
|
View your account details:
|
||||||
|
|
||||||
```text
|
```text
|
||||||
$ release/my-app account
|
$ release/scm-app account
|
||||||
```
|
```
|
||||||
|
|
||||||
Generate a peronsal access token:
|
Generate a peronsal access token:
|
||||||
|
|
||||||
```text
|
```text
|
||||||
$ release/my-app token
|
$ release/scm-app token
|
||||||
```
|
```
|
||||||
|
|
||||||
Create a pipeline:
|
Create a pipeline:
|
||||||
|
|
||||||
```text
|
```text
|
||||||
$ release/my-app pipeline create <name>
|
$ release/scm-app pipeline create <name>
|
||||||
```
|
```
|
||||||
|
|
||||||
List pipelines:
|
List pipelines:
|
||||||
|
|
||||||
```text
|
```text
|
||||||
$ release/my-app pipeline ls
|
$ release/scm-app pipeline ls
|
||||||
```
|
```
|
||||||
|
|
||||||
Debug and output http responses from the server:
|
Debug and output http responses from the server:
|
||||||
|
|
||||||
```text
|
```text
|
||||||
$ DEBUG=true release/my-app pipeline ls
|
$ DEBUG=true release/scm-app pipeline ls
|
||||||
```
|
```
|
||||||
|
|
||||||
View all commands:
|
View all commands:
|
||||||
|
|
||||||
```text
|
```text
|
||||||
$ release/my-app --help
|
$ release/scm-app --help
|
||||||
```
|
```
|
||||||
|
|
12
Taskfile.yml
12
Taskfile.yml
|
@ -26,7 +26,7 @@ tasks:
|
||||||
--detach
|
--detach
|
||||||
--rm
|
--rm
|
||||||
postgres:9-alpine
|
postgres:9-alpine
|
||||||
- cmd: go test -v -cover github.com/bradrydzewski/my-app/internal/store/database
|
- cmd: go test -v -cover github.com/harness/scm/internal/store/database
|
||||||
- cmd: docker kill postgres
|
- cmd: docker kill postgres
|
||||||
silent: true
|
silent: true
|
||||||
|
|
||||||
|
@ -45,16 +45,16 @@ tasks:
|
||||||
- rm -rf web/node_modules
|
- rm -rf web/node_modules
|
||||||
- rm -rf web/.env.development.local
|
- rm -rf web/.env.development.local
|
||||||
- rm -rf web/swagger.yaml
|
- rm -rf web/swagger.yaml
|
||||||
- rm -rf my-app
|
- rm -rf scm-app
|
||||||
- rm -rf database.sqlite3
|
- rm -rf database.sqlite3
|
||||||
- rm -rf .env
|
- rm -rf .env
|
||||||
|
|
||||||
docker-build:
|
docker-build:
|
||||||
cmds:
|
cmds:
|
||||||
- docker build -t bradrydzewski/my-app:linux-amd64 -f docker/Dockerfile .
|
- docker build -t harness/scm:linux-amd64 -f docker/Dockerfile .
|
||||||
|
|
||||||
docker-build-all:
|
docker-build-all:
|
||||||
cmds:
|
cmds:
|
||||||
- docker build -t bradrydzewski/my-app:linux-amd64 -f docker/Dockerfile .
|
- docker build -t harness/scm:linux-amd64 -f docker/Dockerfile .
|
||||||
- docker build -t bradrydzewski/my-app:linux-arm64 -f docker/Dockerfile.linux.arm64 .
|
- docker build -t harness/scm:linux-arm64 -f docker/Dockerfile.linux.arm64 .
|
||||||
- docker build -t bradrydzewski/my-app:linux-arm -f docker/Dockerfile.linux.arm .
|
- docker build -t harness/scm:linux-arm -f docker/Dockerfile.linux.arm .
|
||||||
|
|
16
cli/cli.go
16
cli/cli.go
|
@ -8,13 +8,13 @@ import (
|
||||||
"context"
|
"context"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/bradrydzewski/my-app/cli/execution"
|
"github.com/harness/scm/cli/execution"
|
||||||
"github.com/bradrydzewski/my-app/cli/pipeline"
|
"github.com/harness/scm/cli/pipeline"
|
||||||
"github.com/bradrydzewski/my-app/cli/server"
|
"github.com/harness/scm/cli/server"
|
||||||
"github.com/bradrydzewski/my-app/cli/token"
|
"github.com/harness/scm/cli/token"
|
||||||
"github.com/bradrydzewski/my-app/cli/user"
|
"github.com/harness/scm/cli/user"
|
||||||
"github.com/bradrydzewski/my-app/cli/users"
|
"github.com/harness/scm/cli/users"
|
||||||
"github.com/bradrydzewski/my-app/version"
|
"github.com/harness/scm/version"
|
||||||
|
|
||||||
"gopkg.in/alecthomas/kingpin.v2"
|
"gopkg.in/alecthomas/kingpin.v2"
|
||||||
)
|
)
|
||||||
|
@ -23,7 +23,7 @@ import (
|
||||||
var nocontext = context.Background()
|
var nocontext = context.Background()
|
||||||
|
|
||||||
// application name
|
// application name
|
||||||
var application = "my-app"
|
var application = "scm-app"
|
||||||
|
|
||||||
// application description
|
// application description
|
||||||
var description = "description goes here" // TODO edit this application description
|
var description = "description goes here" // TODO edit this application description
|
||||||
|
|
|
@ -9,8 +9,8 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"text/template"
|
"text/template"
|
||||||
|
|
||||||
"github.com/bradrydzewski/my-app/cli/util"
|
"github.com/harness/scm/cli/util"
|
||||||
"github.com/bradrydzewski/my-app/types"
|
"github.com/harness/scm/types"
|
||||||
|
|
||||||
"github.com/drone/funcmap"
|
"github.com/drone/funcmap"
|
||||||
"gopkg.in/alecthomas/kingpin.v2"
|
"gopkg.in/alecthomas/kingpin.v2"
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
package execution
|
package execution
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/bradrydzewski/my-app/cli/util"
|
"github.com/harness/scm/cli/util"
|
||||||
|
|
||||||
"gopkg.in/alecthomas/kingpin.v2"
|
"gopkg.in/alecthomas/kingpin.v2"
|
||||||
)
|
)
|
||||||
|
|
|
@ -9,7 +9,7 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"text/template"
|
"text/template"
|
||||||
|
|
||||||
"github.com/bradrydzewski/my-app/cli/util"
|
"github.com/harness/scm/cli/util"
|
||||||
|
|
||||||
"github.com/drone/funcmap"
|
"github.com/drone/funcmap"
|
||||||
"gopkg.in/alecthomas/kingpin.v2"
|
"gopkg.in/alecthomas/kingpin.v2"
|
||||||
|
|
|
@ -9,9 +9,9 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"text/template"
|
"text/template"
|
||||||
|
|
||||||
"github.com/bradrydzewski/my-app/cli/util"
|
|
||||||
"github.com/bradrydzewski/my-app/types"
|
|
||||||
"github.com/drone/funcmap"
|
"github.com/drone/funcmap"
|
||||||
|
"github.com/harness/scm/cli/util"
|
||||||
|
"github.com/harness/scm/types"
|
||||||
|
|
||||||
"gopkg.in/alecthomas/kingpin.v2"
|
"gopkg.in/alecthomas/kingpin.v2"
|
||||||
)
|
)
|
||||||
|
|
|
@ -9,9 +9,9 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"text/template"
|
"text/template"
|
||||||
|
|
||||||
"github.com/bradrydzewski/my-app/cli/util"
|
|
||||||
"github.com/bradrydzewski/my-app/types"
|
|
||||||
"github.com/gotidy/ptr"
|
"github.com/gotidy/ptr"
|
||||||
|
"github.com/harness/scm/cli/util"
|
||||||
|
"github.com/harness/scm/types"
|
||||||
|
|
||||||
"github.com/drone/funcmap"
|
"github.com/drone/funcmap"
|
||||||
"gopkg.in/alecthomas/kingpin.v2"
|
"gopkg.in/alecthomas/kingpin.v2"
|
||||||
|
|
|
@ -8,8 +8,8 @@ import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
|
|
||||||
"github.com/bradrydzewski/my-app/cli/util"
|
"github.com/harness/scm/cli/util"
|
||||||
"github.com/bradrydzewski/my-app/client"
|
"github.com/harness/scm/client"
|
||||||
|
|
||||||
"gopkg.in/alecthomas/kingpin.v2"
|
"gopkg.in/alecthomas/kingpin.v2"
|
||||||
)
|
)
|
||||||
|
|
|
@ -7,7 +7,7 @@ package cli
|
||||||
import (
|
import (
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/bradrydzewski/my-app/cli/util"
|
"github.com/harness/scm/cli/util"
|
||||||
|
|
||||||
"gopkg.in/alecthomas/kingpin.v2"
|
"gopkg.in/alecthomas/kingpin.v2"
|
||||||
)
|
)
|
||||||
|
|
|
@ -9,8 +9,8 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"text/template"
|
"text/template"
|
||||||
|
|
||||||
"github.com/bradrydzewski/my-app/cli/util"
|
"github.com/harness/scm/cli/util"
|
||||||
"github.com/bradrydzewski/my-app/types"
|
"github.com/harness/scm/types"
|
||||||
|
|
||||||
"github.com/drone/funcmap"
|
"github.com/drone/funcmap"
|
||||||
"gopkg.in/alecthomas/kingpin.v2"
|
"gopkg.in/alecthomas/kingpin.v2"
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
package pipeline
|
package pipeline
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/bradrydzewski/my-app/cli/util"
|
"github.com/harness/scm/cli/util"
|
||||||
|
|
||||||
"gopkg.in/alecthomas/kingpin.v2"
|
"gopkg.in/alecthomas/kingpin.v2"
|
||||||
)
|
)
|
||||||
|
|
|
@ -9,7 +9,7 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"text/template"
|
"text/template"
|
||||||
|
|
||||||
"github.com/bradrydzewski/my-app/cli/util"
|
"github.com/harness/scm/cli/util"
|
||||||
|
|
||||||
"github.com/drone/funcmap"
|
"github.com/drone/funcmap"
|
||||||
"gopkg.in/alecthomas/kingpin.v2"
|
"gopkg.in/alecthomas/kingpin.v2"
|
||||||
|
|
|
@ -9,9 +9,9 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"text/template"
|
"text/template"
|
||||||
|
|
||||||
"github.com/bradrydzewski/my-app/cli/util"
|
|
||||||
"github.com/bradrydzewski/my-app/types"
|
|
||||||
"github.com/drone/funcmap"
|
"github.com/drone/funcmap"
|
||||||
|
"github.com/harness/scm/cli/util"
|
||||||
|
"github.com/harness/scm/types"
|
||||||
|
|
||||||
"gopkg.in/alecthomas/kingpin.v2"
|
"gopkg.in/alecthomas/kingpin.v2"
|
||||||
)
|
)
|
||||||
|
|
|
@ -9,9 +9,9 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"text/template"
|
"text/template"
|
||||||
|
|
||||||
"github.com/bradrydzewski/my-app/cli/util"
|
|
||||||
"github.com/bradrydzewski/my-app/types"
|
|
||||||
"github.com/gotidy/ptr"
|
"github.com/gotidy/ptr"
|
||||||
|
"github.com/harness/scm/cli/util"
|
||||||
|
"github.com/harness/scm/types"
|
||||||
|
|
||||||
"github.com/drone/funcmap"
|
"github.com/drone/funcmap"
|
||||||
"gopkg.in/alecthomas/kingpin.v2"
|
"gopkg.in/alecthomas/kingpin.v2"
|
||||||
|
|
|
@ -8,8 +8,8 @@ import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
|
|
||||||
"github.com/bradrydzewski/my-app/cli/util"
|
"github.com/harness/scm/cli/util"
|
||||||
"github.com/bradrydzewski/my-app/client"
|
"github.com/harness/scm/client"
|
||||||
"gopkg.in/alecthomas/kingpin.v2"
|
"gopkg.in/alecthomas/kingpin.v2"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@ package server
|
||||||
import (
|
import (
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/bradrydzewski/my-app/types"
|
"github.com/harness/scm/types"
|
||||||
|
|
||||||
"github.com/kelseyhightower/envconfig"
|
"github.com/kelseyhightower/envconfig"
|
||||||
)
|
)
|
||||||
|
|
|
@ -8,8 +8,8 @@ import (
|
||||||
"context"
|
"context"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/bradrydzewski/my-app/types"
|
"github.com/harness/scm/types"
|
||||||
"github.com/bradrydzewski/my-app/version"
|
"github.com/harness/scm/version"
|
||||||
|
|
||||||
"github.com/joho/godotenv"
|
"github.com/joho/godotenv"
|
||||||
"github.com/mattn/go-isatty"
|
"github.com/mattn/go-isatty"
|
||||||
|
|
|
@ -5,8 +5,8 @@
|
||||||
package server
|
package server
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/bradrydzewski/my-app/internal/cron"
|
"github.com/harness/scm/internal/cron"
|
||||||
"github.com/bradrydzewski/my-app/internal/server"
|
"github.com/harness/scm/internal/server"
|
||||||
)
|
)
|
||||||
|
|
||||||
// system stores high level system sub-routines.
|
// system stores high level system sub-routines.
|
||||||
|
|
|
@ -2,17 +2,18 @@
|
||||||
// Use of this source code is governed by the Polyform Free Trial License
|
// Use of this source code is governed by the Polyform Free Trial License
|
||||||
// that can be found in the LICENSE.md file for this repository.
|
// that can be found in the LICENSE.md file for this repository.
|
||||||
|
|
||||||
//+build wireinject
|
//go:build wireinject
|
||||||
|
// +build wireinject
|
||||||
|
|
||||||
package server
|
package server
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/bradrydzewski/my-app/internal/cron"
|
"github.com/harness/scm/internal/cron"
|
||||||
"github.com/bradrydzewski/my-app/internal/router"
|
"github.com/harness/scm/internal/router"
|
||||||
"github.com/bradrydzewski/my-app/internal/server"
|
"github.com/harness/scm/internal/server"
|
||||||
"github.com/bradrydzewski/my-app/internal/store/database"
|
"github.com/harness/scm/internal/store/database"
|
||||||
"github.com/bradrydzewski/my-app/internal/store/memory"
|
"github.com/harness/scm/internal/store/memory"
|
||||||
"github.com/bradrydzewski/my-app/types"
|
"github.com/harness/scm/types"
|
||||||
|
|
||||||
"github.com/google/wire"
|
"github.com/google/wire"
|
||||||
)
|
)
|
||||||
|
|
|
@ -7,12 +7,12 @@
|
||||||
package server
|
package server
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/bradrydzewski/my-app/internal/cron"
|
"github.com/harness/scm/internal/cron"
|
||||||
"github.com/bradrydzewski/my-app/internal/router"
|
"github.com/harness/scm/internal/router"
|
||||||
"github.com/bradrydzewski/my-app/internal/server"
|
"github.com/harness/scm/internal/server"
|
||||||
"github.com/bradrydzewski/my-app/internal/store/database"
|
"github.com/harness/scm/internal/store/database"
|
||||||
"github.com/bradrydzewski/my-app/internal/store/memory"
|
"github.com/harness/scm/internal/store/memory"
|
||||||
"github.com/bradrydzewski/my-app/types"
|
"github.com/harness/scm/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Injectors from wire.go:
|
// Injectors from wire.go:
|
||||||
|
|
|
@ -8,7 +8,7 @@ import (
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/bradrydzewski/my-app/internal/api/openapi"
|
"github.com/harness/scm/internal/api/openapi"
|
||||||
"gopkg.in/alecthomas/kingpin.v2"
|
"gopkg.in/alecthomas/kingpin.v2"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/bradrydzewski/my-app/cli/util"
|
"github.com/harness/scm/cli/util"
|
||||||
|
|
||||||
"gopkg.in/alecthomas/kingpin.v2"
|
"gopkg.in/alecthomas/kingpin.v2"
|
||||||
)
|
)
|
||||||
|
|
|
@ -9,7 +9,7 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"text/template"
|
"text/template"
|
||||||
|
|
||||||
"github.com/bradrydzewski/my-app/cli/util"
|
"github.com/harness/scm/cli/util"
|
||||||
|
|
||||||
"github.com/drone/funcmap"
|
"github.com/drone/funcmap"
|
||||||
"gopkg.in/alecthomas/kingpin.v2"
|
"gopkg.in/alecthomas/kingpin.v2"
|
||||||
|
|
|
@ -9,8 +9,8 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"text/template"
|
"text/template"
|
||||||
|
|
||||||
"github.com/bradrydzewski/my-app/cli/util"
|
"github.com/harness/scm/cli/util"
|
||||||
"github.com/bradrydzewski/my-app/types"
|
"github.com/harness/scm/types"
|
||||||
|
|
||||||
"github.com/drone/funcmap"
|
"github.com/drone/funcmap"
|
||||||
"gopkg.in/alecthomas/kingpin.v2"
|
"gopkg.in/alecthomas/kingpin.v2"
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
package users
|
package users
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/bradrydzewski/my-app/cli/util"
|
"github.com/harness/scm/cli/util"
|
||||||
|
|
||||||
"gopkg.in/alecthomas/kingpin.v2"
|
"gopkg.in/alecthomas/kingpin.v2"
|
||||||
)
|
)
|
||||||
|
|
|
@ -9,7 +9,7 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"text/template"
|
"text/template"
|
||||||
|
|
||||||
"github.com/bradrydzewski/my-app/cli/util"
|
"github.com/harness/scm/cli/util"
|
||||||
|
|
||||||
"github.com/drone/funcmap"
|
"github.com/drone/funcmap"
|
||||||
"gopkg.in/alecthomas/kingpin.v2"
|
"gopkg.in/alecthomas/kingpin.v2"
|
||||||
|
|
|
@ -9,9 +9,9 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"text/template"
|
"text/template"
|
||||||
|
|
||||||
"github.com/bradrydzewski/my-app/cli/util"
|
|
||||||
"github.com/bradrydzewski/my-app/types"
|
|
||||||
"github.com/drone/funcmap"
|
"github.com/drone/funcmap"
|
||||||
|
"github.com/harness/scm/cli/util"
|
||||||
|
"github.com/harness/scm/types"
|
||||||
|
|
||||||
"gopkg.in/alecthomas/kingpin.v2"
|
"gopkg.in/alecthomas/kingpin.v2"
|
||||||
)
|
)
|
||||||
|
|
|
@ -10,8 +10,8 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"text/template"
|
"text/template"
|
||||||
|
|
||||||
"github.com/bradrydzewski/my-app/cli/util"
|
"github.com/harness/scm/cli/util"
|
||||||
"github.com/bradrydzewski/my-app/types"
|
"github.com/harness/scm/types"
|
||||||
|
|
||||||
"github.com/dchest/uniuri"
|
"github.com/dchest/uniuri"
|
||||||
"github.com/drone/funcmap"
|
"github.com/drone/funcmap"
|
||||||
|
|
|
@ -16,8 +16,8 @@ import (
|
||||||
"syscall"
|
"syscall"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/bradrydzewski/my-app/client"
|
"github.com/harness/scm/client"
|
||||||
"github.com/bradrydzewski/my-app/types"
|
"github.com/harness/scm/types"
|
||||||
|
|
||||||
"github.com/adrg/xdg"
|
"github.com/adrg/xdg"
|
||||||
"golang.org/x/crypto/ssh/terminal"
|
"golang.org/x/crypto/ssh/terminal"
|
||||||
|
|
|
@ -13,8 +13,8 @@ import (
|
||||||
"net/http/httputil"
|
"net/http/httputil"
|
||||||
"net/url"
|
"net/url"
|
||||||
|
|
||||||
"github.com/bradrydzewski/my-app/types"
|
"github.com/harness/scm/types"
|
||||||
"github.com/bradrydzewski/my-app/version"
|
"github.com/harness/scm/version"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ensure HTTPClient implements Client interface.
|
// ensure HTTPClient implements Client interface.
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
package client
|
package client
|
||||||
|
|
||||||
import "github.com/bradrydzewski/my-app/types"
|
import "github.com/harness/scm/types"
|
||||||
|
|
||||||
// Client to access the remote APIs.
|
// Client to access the remote APIs.
|
||||||
type Client interface {
|
type Client interface {
|
||||||
|
|
|
@ -5,41 +5,41 @@ items:
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: my-app
|
app: scm-app
|
||||||
name: my-app
|
name: scm-app
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: my-app
|
app: scm-app
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: my-app
|
app: scm-app
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- image: gcr.io/XXXXX-XXXXXXX/my-app
|
- image: gcr.io/XXXXX-XXXXXXX/scm-app
|
||||||
imagePullPolicy: Never
|
imagePullPolicy: Never
|
||||||
name: my-app
|
name: scm-app
|
||||||
|
|
||||||
- apiVersion: v1
|
- apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: my-app
|
app: scm-app
|
||||||
name: my-app
|
name: scm-app
|
||||||
spec:
|
spec:
|
||||||
ports:
|
ports:
|
||||||
- port: 3000
|
- port: 3000
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
targetPort: 3000
|
targetPort: 3000
|
||||||
selector:
|
selector:
|
||||||
app: my-app
|
app: scm-app
|
||||||
|
|
||||||
- apiVersion: networking.k8s.io/v1beta1
|
- apiVersion: networking.k8s.io/v1beta1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
name: my-app
|
name: scm-app
|
||||||
annotations:
|
annotations:
|
||||||
nginx.ingress.kubernetes.io/rewrite-target: /$1
|
nginx.ingress.kubernetes.io/rewrite-target: /$1
|
||||||
kubernetes.io/ingress.class: "nginx"
|
kubernetes.io/ingress.class: "nginx"
|
||||||
|
@ -49,7 +49,7 @@ items:
|
||||||
paths:
|
paths:
|
||||||
- path: /pm/(.*)
|
- path: /pm/(.*)
|
||||||
backend:
|
backend:
|
||||||
serviceName: my-app
|
serviceName: scm-app
|
||||||
servicePort: 3000
|
servicePort: 3000
|
||||||
|
|
||||||
kind: List
|
kind: List
|
||||||
|
|
|
@ -8,5 +8,5 @@ EXPOSE 443
|
||||||
COPY --from=alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
COPY --from=alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
||||||
|
|
||||||
ENV GODEBUG netdns=go
|
ENV GODEBUG netdns=go
|
||||||
ADD release/linux/amd64/my-app /bin/
|
ADD release/linux/amd64/scm-app /bin/
|
||||||
ENTRYPOINT ["/bin/my-app", "server"]
|
ENTRYPOINT ["/bin/scm-app", "server"]
|
||||||
|
|
|
@ -8,5 +8,5 @@ EXPOSE 443
|
||||||
COPY --from=alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
COPY --from=alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
||||||
|
|
||||||
ENV GODEBUG netdns=go
|
ENV GODEBUG netdns=go
|
||||||
ADD release/linux/amd64/my-app /bin/
|
ADD release/linux/amd64/scm-app /bin/
|
||||||
ENTRYPOINT ["/bin/my-app", "server"]
|
ENTRYPOINT ["/bin/scm-app", "server"]
|
6
go.mod
6
go.mod
|
@ -1,4 +1,4 @@
|
||||||
module github.com/bradrydzewski/my-app
|
module github.com/harness/scm
|
||||||
|
|
||||||
go 1.17
|
go 1.17
|
||||||
|
|
||||||
|
@ -35,17 +35,21 @@ require (
|
||||||
require (
|
require (
|
||||||
github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751 // indirect
|
github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751 // indirect
|
||||||
github.com/alecthomas/units v0.0.0-20210208195552-ff826a37aa15 // indirect
|
github.com/alecthomas/units v0.0.0-20210208195552-ff826a37aa15 // indirect
|
||||||
|
github.com/google/subcommands v1.0.1 // indirect
|
||||||
github.com/gosimple/unidecode v1.0.1 // indirect
|
github.com/gosimple/unidecode v1.0.1 // indirect
|
||||||
github.com/lann/builder v0.0.0-20180802200727-47ae307949d0 // indirect
|
github.com/lann/builder v0.0.0-20180802200727-47ae307949d0 // indirect
|
||||||
github.com/lann/ps v0.0.0-20150810152359-62de8c46ede0 // indirect
|
github.com/lann/ps v0.0.0-20150810152359-62de8c46ede0 // indirect
|
||||||
|
github.com/pmezard/go-difflib v1.0.0 // indirect
|
||||||
github.com/rs/xid v1.3.0 // indirect
|
github.com/rs/xid v1.3.0 // indirect
|
||||||
github.com/swaggest/jsonschema-go v0.3.24 // indirect
|
github.com/swaggest/jsonschema-go v0.3.24 // indirect
|
||||||
github.com/swaggest/refl v1.0.1 // indirect
|
github.com/swaggest/refl v1.0.1 // indirect
|
||||||
github.com/vearutop/statigz v1.1.5 // indirect
|
github.com/vearutop/statigz v1.1.5 // indirect
|
||||||
|
golang.org/x/mod v0.4.2 // indirect
|
||||||
golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2 // indirect
|
golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2 // indirect
|
||||||
golang.org/x/sys v0.0.0-20210809222454-d867a43fc93e // indirect
|
golang.org/x/sys v0.0.0-20210809222454-d867a43fc93e // indirect
|
||||||
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1 // indirect
|
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1 // indirect
|
||||||
golang.org/x/text v0.3.6 // indirect
|
golang.org/x/text v0.3.6 // indirect
|
||||||
|
golang.org/x/tools v0.1.7 // indirect
|
||||||
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect
|
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect
|
||||||
gopkg.in/yaml.v2 v2.4.0 // indirect
|
gopkg.in/yaml.v2 v2.4.0 // indirect
|
||||||
)
|
)
|
||||||
|
|
3
go.sum
3
go.sum
|
@ -130,6 +130,7 @@ github.com/google/go-cmp v0.5.5 h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU=
|
||||||
github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||||
github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
|
github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
|
||||||
github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI=
|
github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI=
|
||||||
|
github.com/google/subcommands v1.0.1 h1:/eqq+otEXm5vhfBrbREPCSVQbvofip6kIz+mX5TUH7k=
|
||||||
github.com/google/subcommands v1.0.1/go.mod h1:ZjhPrFU+Olkh9WazFPsl27BQ4UPiG37m3yTrtFlrHVk=
|
github.com/google/subcommands v1.0.1/go.mod h1:ZjhPrFU+Olkh9WazFPsl27BQ4UPiG37m3yTrtFlrHVk=
|
||||||
github.com/google/uuid v1.0.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
|
github.com/google/uuid v1.0.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
|
||||||
github.com/google/wire v0.5.0 h1:I7ELFeVBr3yfPIcc8+MWvrjk+3VjbcSzoXm3JVa+jD8=
|
github.com/google/wire v0.5.0 h1:I7ELFeVBr3yfPIcc8+MWvrjk+3VjbcSzoXm3JVa+jD8=
|
||||||
|
@ -474,6 +475,7 @@ golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHl
|
||||||
golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc=
|
golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc=
|
||||||
golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg=
|
golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg=
|
||||||
golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
||||||
|
golang.org/x/mod v0.4.2 h1:Gz96sIWK3OalVv/I/qNygP42zyoKp3xptRVCWRFEBvo=
|
||||||
golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
||||||
golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
||||||
golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
||||||
|
@ -568,6 +570,7 @@ golang.org/x/tools v0.0.0-20191029190741-b9c20aec41a5/go.mod h1:b+2E5dAYhXwXZwtn
|
||||||
golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
||||||
golang.org/x/tools v0.0.0-20200103221440-774c71fcf114/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
|
golang.org/x/tools v0.0.0-20200103221440-774c71fcf114/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
|
||||||
golang.org/x/tools v0.0.0-20201224043029-2b0845dc783e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
|
golang.org/x/tools v0.0.0-20201224043029-2b0845dc783e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
|
||||||
|
golang.org/x/tools v0.1.7 h1:6j8CgantCy3yc8JGBqkDLMKWqZ0RDU2g1HVgacojGWQ=
|
||||||
golang.org/x/tools v0.1.7/go.mod h1:LGqMHiF4EqQNHR1JncWGqT5BVaXmza+X+BDGol+dOxo=
|
golang.org/x/tools v0.1.7/go.mod h1:LGqMHiF4EqQNHR1JncWGqT5BVaXmza+X+BDGol+dOxo=
|
||||||
golang.org/x/xerrors v0.0.0-20190410155217-1f06c39b4373/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
golang.org/x/xerrors v0.0.0-20190410155217-1f06c39b4373/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||||
golang.org/x/xerrors v0.0.0-20190513163551-3ee3066db522/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
golang.org/x/xerrors v0.0.0-20190513163551-3ee3066db522/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||||
|
|
|
@ -8,10 +8,10 @@ import (
|
||||||
"net/http"
|
"net/http"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/bradrydzewski/my-app/internal/api/render"
|
"github.com/harness/scm/internal/api/render"
|
||||||
"github.com/bradrydzewski/my-app/internal/store"
|
"github.com/harness/scm/internal/store"
|
||||||
"github.com/bradrydzewski/my-app/internal/token"
|
"github.com/harness/scm/internal/token"
|
||||||
"github.com/bradrydzewski/my-app/types"
|
"github.com/harness/scm/types"
|
||||||
|
|
||||||
"github.com/rs/zerolog/hlog"
|
"github.com/rs/zerolog/hlog"
|
||||||
"golang.org/x/crypto/bcrypt"
|
"golang.org/x/crypto/bcrypt"
|
||||||
|
|
|
@ -8,11 +8,11 @@ import (
|
||||||
"net/http"
|
"net/http"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/bradrydzewski/my-app/internal/api/render"
|
"github.com/harness/scm/internal/api/render"
|
||||||
"github.com/bradrydzewski/my-app/internal/store"
|
"github.com/harness/scm/internal/store"
|
||||||
"github.com/bradrydzewski/my-app/internal/token"
|
"github.com/harness/scm/internal/token"
|
||||||
"github.com/bradrydzewski/my-app/types"
|
"github.com/harness/scm/types"
|
||||||
"github.com/bradrydzewski/my-app/types/check"
|
"github.com/harness/scm/types/check"
|
||||||
|
|
||||||
"github.com/dchest/uniuri"
|
"github.com/dchest/uniuri"
|
||||||
"github.com/rs/zerolog/hlog"
|
"github.com/rs/zerolog/hlog"
|
||||||
|
|
|
@ -9,13 +9,13 @@ import (
|
||||||
"net/http"
|
"net/http"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/bradrydzewski/my-app/internal/api/render"
|
|
||||||
"github.com/bradrydzewski/my-app/internal/store"
|
|
||||||
"github.com/bradrydzewski/my-app/types"
|
|
||||||
"github.com/bradrydzewski/my-app/types/check"
|
|
||||||
"github.com/go-chi/chi"
|
"github.com/go-chi/chi"
|
||||||
"github.com/gosimple/slug"
|
"github.com/gosimple/slug"
|
||||||
"github.com/gotidy/ptr"
|
"github.com/gotidy/ptr"
|
||||||
|
"github.com/harness/scm/internal/api/render"
|
||||||
|
"github.com/harness/scm/internal/store"
|
||||||
|
"github.com/harness/scm/types"
|
||||||
|
"github.com/harness/scm/types/check"
|
||||||
"github.com/rs/zerolog/hlog"
|
"github.com/rs/zerolog/hlog"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -7,8 +7,8 @@ package executions
|
||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/bradrydzewski/my-app/internal/api/render"
|
"github.com/harness/scm/internal/api/render"
|
||||||
"github.com/bradrydzewski/my-app/internal/store"
|
"github.com/harness/scm/internal/store"
|
||||||
|
|
||||||
"github.com/go-chi/chi"
|
"github.com/go-chi/chi"
|
||||||
"github.com/rs/zerolog/hlog"
|
"github.com/rs/zerolog/hlog"
|
||||||
|
|
|
@ -7,8 +7,8 @@ package executions
|
||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/bradrydzewski/my-app/internal/api/render"
|
"github.com/harness/scm/internal/api/render"
|
||||||
"github.com/bradrydzewski/my-app/internal/store"
|
"github.com/harness/scm/internal/store"
|
||||||
|
|
||||||
"github.com/go-chi/chi"
|
"github.com/go-chi/chi"
|
||||||
"github.com/rs/zerolog/hlog"
|
"github.com/rs/zerolog/hlog"
|
||||||
|
|
|
@ -7,10 +7,10 @@ package executions
|
||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/bradrydzewski/my-app/internal/api/render"
|
"github.com/harness/scm/internal/api/render"
|
||||||
"github.com/bradrydzewski/my-app/internal/api/request"
|
"github.com/harness/scm/internal/api/request"
|
||||||
"github.com/bradrydzewski/my-app/internal/store"
|
"github.com/harness/scm/internal/store"
|
||||||
"github.com/bradrydzewski/my-app/types"
|
"github.com/harness/scm/types"
|
||||||
|
|
||||||
"github.com/go-chi/chi"
|
"github.com/go-chi/chi"
|
||||||
"github.com/rs/zerolog/hlog"
|
"github.com/rs/zerolog/hlog"
|
||||||
|
|
|
@ -9,10 +9,10 @@ import (
|
||||||
"net/http"
|
"net/http"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/bradrydzewski/my-app/internal/api/render"
|
"github.com/harness/scm/internal/api/render"
|
||||||
"github.com/bradrydzewski/my-app/internal/store"
|
"github.com/harness/scm/internal/store"
|
||||||
"github.com/bradrydzewski/my-app/types"
|
"github.com/harness/scm/types"
|
||||||
"github.com/bradrydzewski/my-app/types/check"
|
"github.com/harness/scm/types/check"
|
||||||
|
|
||||||
"github.com/go-chi/chi"
|
"github.com/go-chi/chi"
|
||||||
"github.com/gotidy/ptr"
|
"github.com/gotidy/ptr"
|
||||||
|
|
|
@ -9,10 +9,10 @@ import (
|
||||||
"net/http"
|
"net/http"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/bradrydzewski/my-app/internal/api/render"
|
"github.com/harness/scm/internal/api/render"
|
||||||
"github.com/bradrydzewski/my-app/internal/store"
|
"github.com/harness/scm/internal/store"
|
||||||
"github.com/bradrydzewski/my-app/types"
|
"github.com/harness/scm/types"
|
||||||
"github.com/bradrydzewski/my-app/types/check"
|
"github.com/harness/scm/types/check"
|
||||||
|
|
||||||
"github.com/dchest/uniuri"
|
"github.com/dchest/uniuri"
|
||||||
"github.com/gosimple/slug"
|
"github.com/gosimple/slug"
|
||||||
|
|
|
@ -7,8 +7,8 @@ package pipelines
|
||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/bradrydzewski/my-app/internal/api/render"
|
"github.com/harness/scm/internal/api/render"
|
||||||
"github.com/bradrydzewski/my-app/internal/store"
|
"github.com/harness/scm/internal/store"
|
||||||
|
|
||||||
"github.com/go-chi/chi"
|
"github.com/go-chi/chi"
|
||||||
"github.com/rs/zerolog/hlog"
|
"github.com/rs/zerolog/hlog"
|
||||||
|
|
|
@ -7,9 +7,9 @@ package pipelines
|
||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/bradrydzewski/my-app/internal/api/render"
|
"github.com/harness/scm/internal/api/render"
|
||||||
"github.com/bradrydzewski/my-app/internal/store"
|
"github.com/harness/scm/internal/store"
|
||||||
"github.com/bradrydzewski/my-app/types"
|
"github.com/harness/scm/types"
|
||||||
"github.com/rs/zerolog/hlog"
|
"github.com/rs/zerolog/hlog"
|
||||||
|
|
||||||
"github.com/go-chi/chi"
|
"github.com/go-chi/chi"
|
||||||
|
|
|
@ -7,10 +7,10 @@ package pipelines
|
||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/bradrydzewski/my-app/internal/api/render"
|
"github.com/harness/scm/internal/api/render"
|
||||||
"github.com/bradrydzewski/my-app/internal/api/request"
|
"github.com/harness/scm/internal/api/request"
|
||||||
"github.com/bradrydzewski/my-app/internal/store"
|
"github.com/harness/scm/internal/store"
|
||||||
"github.com/bradrydzewski/my-app/types"
|
"github.com/harness/scm/types"
|
||||||
|
|
||||||
"github.com/rs/zerolog/log"
|
"github.com/rs/zerolog/log"
|
||||||
)
|
)
|
||||||
|
|
|
@ -10,10 +10,10 @@ import (
|
||||||
"net/http/httptest"
|
"net/http/httptest"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/bradrydzewski/my-app/internal/api/render"
|
"github.com/harness/scm/internal/api/render"
|
||||||
"github.com/bradrydzewski/my-app/internal/api/request"
|
"github.com/harness/scm/internal/api/request"
|
||||||
"github.com/bradrydzewski/my-app/mocks"
|
"github.com/harness/scm/mocks"
|
||||||
"github.com/bradrydzewski/my-app/types"
|
"github.com/harness/scm/types"
|
||||||
|
|
||||||
"github.com/golang/mock/gomock"
|
"github.com/golang/mock/gomock"
|
||||||
"github.com/google/go-cmp/cmp"
|
"github.com/google/go-cmp/cmp"
|
||||||
|
|
|
@ -9,10 +9,10 @@ import (
|
||||||
"net/http"
|
"net/http"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/bradrydzewski/my-app/internal/api/render"
|
"github.com/harness/scm/internal/api/render"
|
||||||
"github.com/bradrydzewski/my-app/internal/store"
|
"github.com/harness/scm/internal/store"
|
||||||
"github.com/bradrydzewski/my-app/types"
|
"github.com/harness/scm/types"
|
||||||
"github.com/bradrydzewski/my-app/types/check"
|
"github.com/harness/scm/types/check"
|
||||||
|
|
||||||
"github.com/go-chi/chi"
|
"github.com/go-chi/chi"
|
||||||
"github.com/gotidy/ptr"
|
"github.com/gotidy/ptr"
|
||||||
|
|
|
@ -7,8 +7,8 @@ package projects
|
||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/bradrydzewski/my-app/internal/api/render/platform"
|
"github.com/harness/scm/internal/api/render/platform"
|
||||||
"github.com/bradrydzewski/my-app/types"
|
"github.com/harness/scm/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
// standalone version of the product uses a single,
|
// standalone version of the product uses a single,
|
||||||
|
|
|
@ -7,8 +7,8 @@ package projects
|
||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/bradrydzewski/my-app/internal/api/render/platform"
|
"github.com/harness/scm/internal/api/render/platform"
|
||||||
"github.com/bradrydzewski/my-app/types"
|
"github.com/harness/scm/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
// standalone version of the product uses a single,
|
// standalone version of the product uses a single,
|
||||||
|
|
|
@ -8,7 +8,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/bradrydzewski/my-app/version"
|
"github.com/harness/scm/version"
|
||||||
)
|
)
|
||||||
|
|
||||||
// HandleVersion writes the server version number
|
// HandleVersion writes the server version number
|
||||||
|
|
|
@ -7,9 +7,9 @@ package user
|
||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/bradrydzewski/my-app/internal/api/render"
|
"github.com/harness/scm/internal/api/render"
|
||||||
"github.com/bradrydzewski/my-app/internal/api/render/platform"
|
"github.com/harness/scm/internal/api/render/platform"
|
||||||
"github.com/bradrydzewski/my-app/internal/api/request"
|
"github.com/harness/scm/internal/api/request"
|
||||||
)
|
)
|
||||||
|
|
||||||
// HandleFind returns an http.HandlerFunc that writes json-encoded
|
// HandleFind returns an http.HandlerFunc that writes json-encoded
|
||||||
|
|
|
@ -9,8 +9,8 @@ import (
|
||||||
"net/http/httptest"
|
"net/http/httptest"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/bradrydzewski/my-app/internal/api/request"
|
"github.com/harness/scm/internal/api/request"
|
||||||
"github.com/bradrydzewski/my-app/types"
|
"github.com/harness/scm/types"
|
||||||
|
|
||||||
"github.com/google/go-cmp/cmp"
|
"github.com/google/go-cmp/cmp"
|
||||||
)
|
)
|
||||||
|
|
|
@ -7,11 +7,11 @@ package user
|
||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/bradrydzewski/my-app/internal/api/render"
|
"github.com/harness/scm/internal/api/render"
|
||||||
"github.com/bradrydzewski/my-app/internal/api/request"
|
"github.com/harness/scm/internal/api/request"
|
||||||
"github.com/bradrydzewski/my-app/internal/store"
|
"github.com/harness/scm/internal/store"
|
||||||
"github.com/bradrydzewski/my-app/internal/token"
|
"github.com/harness/scm/internal/token"
|
||||||
"github.com/bradrydzewski/my-app/types"
|
"github.com/harness/scm/types"
|
||||||
"github.com/rs/zerolog/hlog"
|
"github.com/rs/zerolog/hlog"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -9,9 +9,9 @@ import (
|
||||||
"net/http/httptest"
|
"net/http/httptest"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/bradrydzewski/my-app/internal/api/request"
|
|
||||||
"github.com/bradrydzewski/my-app/types"
|
|
||||||
"github.com/dgrijalva/jwt-go"
|
"github.com/dgrijalva/jwt-go"
|
||||||
|
"github.com/harness/scm/internal/api/request"
|
||||||
|
"github.com/harness/scm/types"
|
||||||
|
|
||||||
"github.com/golang/mock/gomock"
|
"github.com/golang/mock/gomock"
|
||||||
)
|
)
|
||||||
|
|
|
@ -8,10 +8,10 @@ import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/bradrydzewski/my-app/internal/api/render"
|
"github.com/harness/scm/internal/api/render"
|
||||||
"github.com/bradrydzewski/my-app/internal/api/request"
|
"github.com/harness/scm/internal/api/request"
|
||||||
"github.com/bradrydzewski/my-app/internal/store"
|
"github.com/harness/scm/internal/store"
|
||||||
"github.com/bradrydzewski/my-app/types"
|
"github.com/harness/scm/types"
|
||||||
"github.com/rs/zerolog/hlog"
|
"github.com/rs/zerolog/hlog"
|
||||||
|
|
||||||
"github.com/gotidy/ptr"
|
"github.com/gotidy/ptr"
|
||||||
|
|
|
@ -10,10 +10,10 @@ import (
|
||||||
"net/http/httptest"
|
"net/http/httptest"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/bradrydzewski/my-app/internal/api/render"
|
"github.com/harness/scm/internal/api/render"
|
||||||
"github.com/bradrydzewski/my-app/internal/api/request"
|
"github.com/harness/scm/internal/api/request"
|
||||||
"github.com/bradrydzewski/my-app/mocks"
|
"github.com/harness/scm/mocks"
|
||||||
"github.com/bradrydzewski/my-app/types"
|
"github.com/harness/scm/types"
|
||||||
"golang.org/x/crypto/bcrypt"
|
"golang.org/x/crypto/bcrypt"
|
||||||
|
|
||||||
"github.com/golang/mock/gomock"
|
"github.com/golang/mock/gomock"
|
||||||
|
|
|
@ -9,10 +9,10 @@ import (
|
||||||
"net/http"
|
"net/http"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/bradrydzewski/my-app/internal/api/render"
|
"github.com/harness/scm/internal/api/render"
|
||||||
"github.com/bradrydzewski/my-app/internal/store"
|
"github.com/harness/scm/internal/store"
|
||||||
"github.com/bradrydzewski/my-app/types"
|
"github.com/harness/scm/types"
|
||||||
"github.com/bradrydzewski/my-app/types/check"
|
"github.com/harness/scm/types/check"
|
||||||
"github.com/rs/zerolog/hlog"
|
"github.com/rs/zerolog/hlog"
|
||||||
"golang.org/x/crypto/bcrypt"
|
"golang.org/x/crypto/bcrypt"
|
||||||
|
|
||||||
|
|
|
@ -7,8 +7,8 @@ package users
|
||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/bradrydzewski/my-app/internal/api/render"
|
"github.com/harness/scm/internal/api/render"
|
||||||
"github.com/bradrydzewski/my-app/internal/store"
|
"github.com/harness/scm/internal/store"
|
||||||
"github.com/rs/zerolog/hlog"
|
"github.com/rs/zerolog/hlog"
|
||||||
|
|
||||||
"github.com/go-chi/chi"
|
"github.com/go-chi/chi"
|
||||||
|
|
|
@ -7,8 +7,8 @@ package users
|
||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/bradrydzewski/my-app/internal/api/render"
|
"github.com/harness/scm/internal/api/render"
|
||||||
"github.com/bradrydzewski/my-app/internal/store"
|
"github.com/harness/scm/internal/store"
|
||||||
"github.com/rs/zerolog/hlog"
|
"github.com/rs/zerolog/hlog"
|
||||||
|
|
||||||
"github.com/go-chi/chi"
|
"github.com/go-chi/chi"
|
||||||
|
|
|
@ -7,10 +7,10 @@ package users
|
||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/bradrydzewski/my-app/internal/api/render"
|
"github.com/harness/scm/internal/api/render"
|
||||||
"github.com/bradrydzewski/my-app/internal/api/request"
|
"github.com/harness/scm/internal/api/request"
|
||||||
"github.com/bradrydzewski/my-app/internal/store"
|
"github.com/harness/scm/internal/store"
|
||||||
"github.com/bradrydzewski/my-app/types/enum"
|
"github.com/harness/scm/types/enum"
|
||||||
"github.com/rs/zerolog/hlog"
|
"github.com/rs/zerolog/hlog"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -9,11 +9,11 @@ import (
|
||||||
"net/http"
|
"net/http"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/bradrydzewski/my-app/internal/api/render"
|
|
||||||
"github.com/bradrydzewski/my-app/internal/store"
|
|
||||||
"github.com/bradrydzewski/my-app/types"
|
|
||||||
"github.com/bradrydzewski/my-app/types/check"
|
|
||||||
"github.com/gotidy/ptr"
|
"github.com/gotidy/ptr"
|
||||||
|
"github.com/harness/scm/internal/api/render"
|
||||||
|
"github.com/harness/scm/internal/store"
|
||||||
|
"github.com/harness/scm/types"
|
||||||
|
"github.com/harness/scm/types/check"
|
||||||
"github.com/rs/zerolog/hlog"
|
"github.com/rs/zerolog/hlog"
|
||||||
|
|
||||||
"github.com/go-chi/chi"
|
"github.com/go-chi/chi"
|
||||||
|
|
|
@ -8,8 +8,8 @@ import (
|
||||||
"errors"
|
"errors"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/bradrydzewski/my-app/internal/api/render"
|
"github.com/harness/scm/internal/api/render"
|
||||||
"github.com/bradrydzewski/my-app/internal/api/request"
|
"github.com/harness/scm/internal/api/request"
|
||||||
)
|
)
|
||||||
|
|
||||||
// SystemAdmin returns an http.HandlerFunc middleware that authorizes
|
// SystemAdmin returns an http.HandlerFunc middleware that authorizes
|
||||||
|
|
|
@ -11,11 +11,11 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/bradrydzewski/my-app/internal/api/render"
|
"github.com/harness/scm/internal/api/render"
|
||||||
"github.com/bradrydzewski/my-app/internal/api/request"
|
"github.com/harness/scm/internal/api/request"
|
||||||
"github.com/bradrydzewski/my-app/internal/store"
|
"github.com/harness/scm/internal/store"
|
||||||
"github.com/bradrydzewski/my-app/internal/token"
|
"github.com/harness/scm/internal/token"
|
||||||
"github.com/bradrydzewski/my-app/types"
|
"github.com/harness/scm/types"
|
||||||
|
|
||||||
"github.com/dgrijalva/jwt-go"
|
"github.com/dgrijalva/jwt-go"
|
||||||
"github.com/rs/zerolog"
|
"github.com/rs/zerolog"
|
||||||
|
|
|
@ -7,8 +7,8 @@ package openapi
|
||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/bradrydzewski/my-app/internal/api/render"
|
"github.com/harness/scm/internal/api/render"
|
||||||
"github.com/bradrydzewski/my-app/types"
|
"github.com/harness/scm/types"
|
||||||
|
|
||||||
"github.com/swaggest/openapi-go/openapi3"
|
"github.com/swaggest/openapi-go/openapi3"
|
||||||
)
|
)
|
||||||
|
|
|
@ -7,8 +7,8 @@ package openapi
|
||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/bradrydzewski/my-app/internal/api/render"
|
"github.com/harness/scm/internal/api/render"
|
||||||
"github.com/bradrydzewski/my-app/types"
|
"github.com/harness/scm/types"
|
||||||
|
|
||||||
"github.com/swaggest/openapi-go/openapi3"
|
"github.com/swaggest/openapi-go/openapi3"
|
||||||
)
|
)
|
||||||
|
|
|
@ -9,7 +9,7 @@ import (
|
||||||
"net/http"
|
"net/http"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/bradrydzewski/my-app/version"
|
"github.com/harness/scm/version"
|
||||||
|
|
||||||
"github.com/swaggest/openapi-go/openapi3"
|
"github.com/swaggest/openapi-go/openapi3"
|
||||||
)
|
)
|
||||||
|
|
|
@ -7,8 +7,8 @@ package openapi
|
||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/bradrydzewski/my-app/internal/api/render"
|
"github.com/harness/scm/internal/api/render"
|
||||||
"github.com/bradrydzewski/my-app/types"
|
"github.com/harness/scm/types"
|
||||||
|
|
||||||
"github.com/swaggest/openapi-go/openapi3"
|
"github.com/swaggest/openapi-go/openapi3"
|
||||||
)
|
)
|
||||||
|
|
|
@ -7,8 +7,8 @@ package openapi
|
||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/bradrydzewski/my-app/internal/api/render"
|
"github.com/harness/scm/internal/api/render"
|
||||||
"github.com/bradrydzewski/my-app/types"
|
"github.com/harness/scm/types"
|
||||||
|
|
||||||
"github.com/swaggest/openapi-go/openapi3"
|
"github.com/swaggest/openapi-go/openapi3"
|
||||||
)
|
)
|
||||||
|
|
|
@ -7,8 +7,8 @@ package openapi
|
||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/bradrydzewski/my-app/internal/api/render"
|
"github.com/harness/scm/internal/api/render"
|
||||||
"github.com/bradrydzewski/my-app/types"
|
"github.com/harness/scm/types"
|
||||||
|
|
||||||
"github.com/swaggest/openapi-go/openapi3"
|
"github.com/swaggest/openapi-go/openapi3"
|
||||||
)
|
)
|
||||||
|
|
|
@ -7,8 +7,8 @@ package openapi
|
||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/bradrydzewski/my-app/internal/api/render"
|
"github.com/harness/scm/internal/api/render"
|
||||||
"github.com/bradrydzewski/my-app/types"
|
"github.com/harness/scm/types"
|
||||||
|
|
||||||
"github.com/swaggest/openapi-go/openapi3"
|
"github.com/swaggest/openapi-go/openapi3"
|
||||||
)
|
)
|
||||||
|
|
|
@ -4,7 +4,7 @@ import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/bradrydzewski/my-app/internal/api/render"
|
"github.com/harness/scm/internal/api/render"
|
||||||
)
|
)
|
||||||
|
|
||||||
// RenderResource is a helper function that renders a single
|
// RenderResource is a helper function that renders a single
|
||||||
|
|
|
@ -10,7 +10,7 @@ package request
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
"github.com/bradrydzewski/my-app/types"
|
"github.com/harness/scm/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
type key int
|
type key int
|
||||||
|
|
|
@ -8,8 +8,8 @@ import (
|
||||||
"net/http"
|
"net/http"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
"github.com/bradrydzewski/my-app/types"
|
"github.com/harness/scm/types"
|
||||||
"github.com/bradrydzewski/my-app/types/enum"
|
"github.com/harness/scm/types/enum"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ParsePage extracts the page parameter from the url.
|
// ParsePage extracts the page parameter from the url.
|
||||||
|
|
|
@ -10,19 +10,19 @@ import (
|
||||||
"context"
|
"context"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/bradrydzewski/my-app/internal/api/handler/account"
|
"github.com/harness/scm/internal/api/handler/account"
|
||||||
"github.com/bradrydzewski/my-app/internal/api/handler/executions"
|
"github.com/harness/scm/internal/api/handler/executions"
|
||||||
"github.com/bradrydzewski/my-app/internal/api/handler/pipelines"
|
"github.com/harness/scm/internal/api/handler/pipelines"
|
||||||
"github.com/bradrydzewski/my-app/internal/api/handler/projects"
|
"github.com/harness/scm/internal/api/handler/projects"
|
||||||
"github.com/bradrydzewski/my-app/internal/api/handler/system"
|
"github.com/harness/scm/internal/api/handler/system"
|
||||||
"github.com/bradrydzewski/my-app/internal/api/handler/user"
|
"github.com/harness/scm/internal/api/handler/user"
|
||||||
"github.com/bradrydzewski/my-app/internal/api/handler/users"
|
"github.com/harness/scm/internal/api/handler/users"
|
||||||
"github.com/bradrydzewski/my-app/internal/api/middleware/access"
|
"github.com/harness/scm/internal/api/middleware/access"
|
||||||
"github.com/bradrydzewski/my-app/internal/api/middleware/address"
|
"github.com/harness/scm/internal/api/middleware/address"
|
||||||
"github.com/bradrydzewski/my-app/internal/api/middleware/token"
|
"github.com/harness/scm/internal/api/middleware/token"
|
||||||
"github.com/bradrydzewski/my-app/internal/api/openapi"
|
"github.com/harness/scm/internal/api/openapi"
|
||||||
"github.com/bradrydzewski/my-app/internal/store"
|
"github.com/harness/scm/internal/store"
|
||||||
"github.com/bradrydzewski/my-app/web"
|
"github.com/harness/scm/web"
|
||||||
|
|
||||||
"github.com/go-chi/chi"
|
"github.com/go-chi/chi"
|
||||||
"github.com/go-chi/chi/middleware"
|
"github.com/go-chi/chi/middleware"
|
||||||
|
|
|
@ -7,7 +7,7 @@ package server
|
||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/bradrydzewski/my-app/types"
|
"github.com/harness/scm/types"
|
||||||
|
|
||||||
"github.com/google/wire"
|
"github.com/google/wire"
|
||||||
)
|
)
|
||||||
|
|
|
@ -7,8 +7,8 @@ package database
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
"github.com/bradrydzewski/my-app/internal/store"
|
"github.com/harness/scm/internal/store"
|
||||||
"github.com/bradrydzewski/my-app/types"
|
"github.com/harness/scm/types"
|
||||||
|
|
||||||
"github.com/jmoiron/sqlx"
|
"github.com/jmoiron/sqlx"
|
||||||
)
|
)
|
||||||
|
|
|
@ -7,9 +7,9 @@ package database
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
"github.com/bradrydzewski/my-app/internal/store"
|
"github.com/harness/scm/internal/store"
|
||||||
"github.com/bradrydzewski/my-app/internal/store/database/mutex"
|
"github.com/harness/scm/internal/store/database/mutex"
|
||||||
"github.com/bradrydzewski/my-app/types"
|
"github.com/harness/scm/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
var _ store.ExecutionStore = (*ExecutionStoreSync)(nil)
|
var _ store.ExecutionStore = (*ExecutionStoreSync)(nil)
|
||||||
|
|
|
@ -8,10 +8,10 @@ import (
|
||||||
"database/sql"
|
"database/sql"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/bradrydzewski/my-app/internal/store"
|
|
||||||
"github.com/bradrydzewski/my-app/types"
|
|
||||||
"github.com/google/go-cmp/cmp"
|
"github.com/google/go-cmp/cmp"
|
||||||
"github.com/google/go-cmp/cmp/cmpopts"
|
"github.com/google/go-cmp/cmp/cmpopts"
|
||||||
|
"github.com/harness/scm/internal/store"
|
||||||
|
"github.com/harness/scm/types"
|
||||||
"github.com/jmoiron/sqlx"
|
"github.com/jmoiron/sqlx"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -7,8 +7,8 @@ package database
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
"github.com/bradrydzewski/my-app/internal/store"
|
"github.com/harness/scm/internal/store"
|
||||||
"github.com/bradrydzewski/my-app/types"
|
"github.com/harness/scm/types"
|
||||||
|
|
||||||
"github.com/jmoiron/sqlx"
|
"github.com/jmoiron/sqlx"
|
||||||
)
|
)
|
||||||
|
|
|
@ -7,9 +7,9 @@ package database
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
"github.com/bradrydzewski/my-app/internal/store"
|
"github.com/harness/scm/internal/store"
|
||||||
"github.com/bradrydzewski/my-app/internal/store/database/mutex"
|
"github.com/harness/scm/internal/store/database/mutex"
|
||||||
"github.com/bradrydzewski/my-app/types"
|
"github.com/harness/scm/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
var _ store.PipelineStore = (*PipelineStoreSync)(nil)
|
var _ store.PipelineStore = (*PipelineStoreSync)(nil)
|
||||||
|
|
|
@ -10,8 +10,8 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/bradrydzewski/my-app/internal/store"
|
"github.com/harness/scm/internal/store"
|
||||||
"github.com/bradrydzewski/my-app/types"
|
"github.com/harness/scm/types"
|
||||||
|
|
||||||
"github.com/google/go-cmp/cmp"
|
"github.com/google/go-cmp/cmp"
|
||||||
"github.com/google/go-cmp/cmp/cmpopts"
|
"github.com/google/go-cmp/cmp/cmpopts"
|
||||||
|
|
|
@ -10,7 +10,7 @@ import (
|
||||||
"database/sql"
|
"database/sql"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/bradrydzewski/my-app/internal/store/database/migrate"
|
"github.com/harness/scm/internal/store/database/migrate"
|
||||||
|
|
||||||
"github.com/Masterminds/squirrel"
|
"github.com/Masterminds/squirrel"
|
||||||
"github.com/jmoiron/sqlx"
|
"github.com/jmoiron/sqlx"
|
||||||
|
|
|
@ -8,9 +8,9 @@ import (
|
||||||
"context"
|
"context"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
"github.com/bradrydzewski/my-app/internal/store"
|
"github.com/harness/scm/internal/store"
|
||||||
"github.com/bradrydzewski/my-app/types"
|
"github.com/harness/scm/types"
|
||||||
"github.com/bradrydzewski/my-app/types/enum"
|
"github.com/harness/scm/types/enum"
|
||||||
|
|
||||||
"github.com/jmoiron/sqlx"
|
"github.com/jmoiron/sqlx"
|
||||||
)
|
)
|
||||||
|
|
|
@ -7,9 +7,9 @@ package database
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
"github.com/bradrydzewski/my-app/internal/store"
|
"github.com/harness/scm/internal/store"
|
||||||
"github.com/bradrydzewski/my-app/internal/store/database/mutex"
|
"github.com/harness/scm/internal/store/database/mutex"
|
||||||
"github.com/bradrydzewski/my-app/types"
|
"github.com/harness/scm/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
var _ store.UserStore = (*UserStoreSync)(nil)
|
var _ store.UserStore = (*UserStoreSync)(nil)
|
||||||
|
|
|
@ -11,8 +11,8 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/bradrydzewski/my-app/internal/store"
|
"github.com/harness/scm/internal/store"
|
||||||
"github.com/bradrydzewski/my-app/types"
|
"github.com/harness/scm/types"
|
||||||
|
|
||||||
"github.com/google/go-cmp/cmp"
|
"github.com/google/go-cmp/cmp"
|
||||||
"github.com/google/go-cmp/cmp/cmpopts"
|
"github.com/google/go-cmp/cmp/cmpopts"
|
||||||
|
|
|
@ -5,8 +5,8 @@
|
||||||
package database
|
package database
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/bradrydzewski/my-app/internal/store"
|
"github.com/harness/scm/internal/store"
|
||||||
"github.com/bradrydzewski/my-app/types"
|
"github.com/harness/scm/types"
|
||||||
|
|
||||||
"github.com/google/wire"
|
"github.com/google/wire"
|
||||||
"github.com/jmoiron/sqlx"
|
"github.com/jmoiron/sqlx"
|
||||||
|
|
|
@ -8,7 +8,7 @@ package memory
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
"github.com/bradrydzewski/my-app/types"
|
"github.com/harness/scm/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
// New returns a new system configuration store.
|
// New returns a new system configuration store.
|
||||||
|
|
|
@ -5,8 +5,8 @@
|
||||||
package memory
|
package memory
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/bradrydzewski/my-app/internal/store"
|
|
||||||
"github.com/google/wire"
|
"github.com/google/wire"
|
||||||
|
"github.com/harness/scm/internal/store"
|
||||||
)
|
)
|
||||||
|
|
||||||
// WireSet provides a wire set for this package
|
// WireSet provides a wire set for this package
|
||||||
|
|
|
@ -8,7 +8,7 @@ package store
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
"github.com/bradrydzewski/my-app/types"
|
"github.com/harness/scm/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
type (
|
type (
|
||||||
|
|
|
@ -8,7 +8,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/bradrydzewski/my-app/types"
|
"github.com/harness/scm/types"
|
||||||
|
|
||||||
"github.com/dgrijalva/jwt-go"
|
"github.com/dgrijalva/jwt-go"
|
||||||
)
|
)
|
||||||
|
|
|
@ -9,7 +9,7 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/bradrydzewski/my-app/types"
|
"github.com/harness/scm/types"
|
||||||
|
|
||||||
"github.com/dgrijalva/jwt-go"
|
"github.com/dgrijalva/jwt-go"
|
||||||
)
|
)
|
||||||
|
|
2
main.go
2
main.go
|
@ -5,7 +5,7 @@
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/bradrydzewski/my-app/cli"
|
"github.com/harness/scm/cli"
|
||||||
|
|
||||||
_ "github.com/lib/pq"
|
_ "github.com/lib/pq"
|
||||||
_ "github.com/mattn/go-sqlite3"
|
_ "github.com/mattn/go-sqlite3"
|
||||||
|
|
|
@ -5,5 +5,5 @@
|
||||||
// Package mocks provides mock interfaces.
|
// Package mocks provides mock interfaces.
|
||||||
package mocks
|
package mocks
|
||||||
|
|
||||||
//go:generate mockgen -package=mocks -destination=mock_store.go github.com/bradrydzewski/my-app/internal/store ExecutionStore,PipelineStore,SystemStore,UserStore
|
//go:generate mockgen -package=mocks -destination=mock_store.go github.com/harness/scm/internal/store ExecutionStore,PipelineStore,SystemStore,UserStore
|
||||||
//go:generate mockgen -package=mocks -destination=mock_client.go github.com/bradrydzewski/my-app/client Client
|
//go:generate mockgen -package=mocks -destination=mock_client.go github.com/harness/scm/client Client
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// Code generated by MockGen. DO NOT EDIT.
|
// Code generated by MockGen. DO NOT EDIT.
|
||||||
// Source: github.com/bradrydzewski/my-app/client (interfaces: Client)
|
// Source: github.com/harness/scm/client (interfaces: Client)
|
||||||
|
|
||||||
// Package mocks is a generated GoMock package.
|
// Package mocks is a generated GoMock package.
|
||||||
package mocks
|
package mocks
|
||||||
|
@ -7,8 +7,8 @@ package mocks
|
||||||
import (
|
import (
|
||||||
reflect "reflect"
|
reflect "reflect"
|
||||||
|
|
||||||
types "github.com/bradrydzewski/my-app/types"
|
|
||||||
gomock "github.com/golang/mock/gomock"
|
gomock "github.com/golang/mock/gomock"
|
||||||
|
types "github.com/harness/scm/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
// MockClient is a mock of Client interface.
|
// MockClient is a mock of Client interface.
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// Code generated by MockGen. DO NOT EDIT.
|
// Code generated by MockGen. DO NOT EDIT.
|
||||||
// Source: github.com/bradrydzewski/my-app/internal/store (interfaces: ExecutionStore,PipelineStore,SystemStore,UserStore)
|
// Source: github.com/harness/scm/internal/store (interfaces: ExecutionStore,PipelineStore,SystemStore,UserStore)
|
||||||
|
|
||||||
// Package mocks is a generated GoMock package.
|
// Package mocks is a generated GoMock package.
|
||||||
package mocks
|
package mocks
|
||||||
|
@ -8,8 +8,8 @@ import (
|
||||||
context "context"
|
context "context"
|
||||||
reflect "reflect"
|
reflect "reflect"
|
||||||
|
|
||||||
types "github.com/bradrydzewski/my-app/types"
|
|
||||||
gomock "github.com/golang/mock/gomock"
|
gomock "github.com/golang/mock/gomock"
|
||||||
|
types "github.com/harness/scm/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
// MockExecutionStore is a mock of ExecutionStore interface.
|
// MockExecutionStore is a mock of ExecutionStore interface.
|
||||||
|
|
|
@ -7,7 +7,7 @@ package check
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
|
|
||||||
"github.com/bradrydzewski/my-app/types"
|
"github.com/harness/scm/types"
|
||||||
|
|
||||||
"github.com/gosimple/slug"
|
"github.com/gosimple/slug"
|
||||||
)
|
)
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue