Fabian Vowie
3 years ago
No known key found for this signature in database
GPG Key ID: C27317C33B27C410
6 changed files with
12 additions and
7 deletions
-
auth/authorization.go
-
pipelines/executable_step.go
-
pipelines/executable_step_test.go
-
pipelines/pipeline.go
-
pipelines/pipeline_test.go
-
pipelines/step_test.go
|
|
@ -23,6 +23,6 @@ func (middleware AuthenticationMiddleware) Middleware(next http.Handler) http.Ha |
|
|
|
|
|
|
|
func CreateAuthenticationMiddleware(secret string) AuthenticationMiddleware { |
|
|
|
return AuthenticationMiddleware{ |
|
|
|
secret: secret, |
|
|
|
secret, |
|
|
|
} |
|
|
|
} |
|
|
@ -3,8 +3,9 @@ package pipelines |
|
|
|
import ( |
|
|
|
"errors" |
|
|
|
"fmt" |
|
|
|
"github.com/disintegration/imaging" |
|
|
|
"image" |
|
|
|
|
|
|
|
"github.com/disintegration/imaging" |
|
|
|
) |
|
|
|
|
|
|
|
type IExecutableStep interface { |
|
|
|
|
|
@ -1,8 +1,9 @@ |
|
|
|
package pipelines |
|
|
|
|
|
|
|
import ( |
|
|
|
"github.com/stretchr/testify/assert" |
|
|
|
"testing" |
|
|
|
|
|
|
|
"github.com/stretchr/testify/assert" |
|
|
|
) |
|
|
|
|
|
|
|
func TestDeserializeOptionsResizeImage(t *testing.T) { |
|
|
|
|
|
@ -5,12 +5,13 @@ import ( |
|
|
|
"encoding/json" |
|
|
|
"errors" |
|
|
|
"fmt" |
|
|
|
"github.com/disintegration/imaging" |
|
|
|
"github.com/geplauder/lithium/storage" |
|
|
|
"io/fs" |
|
|
|
"log" |
|
|
|
"os" |
|
|
|
"path/filepath" |
|
|
|
|
|
|
|
"github.com/disintegration/imaging" |
|
|
|
"github.com/geplauder/lithium/storage" |
|
|
|
) |
|
|
|
|
|
|
|
// Pipelines
|
|
|
|
|
|
@ -1,12 +1,13 @@ |
|
|
|
package pipelines |
|
|
|
|
|
|
|
import ( |
|
|
|
"github.com/geplauder/lithium/storage" |
|
|
|
"image" |
|
|
|
"os" |
|
|
|
"path/filepath" |
|
|
|
"testing" |
|
|
|
|
|
|
|
"github.com/geplauder/lithium/storage" |
|
|
|
|
|
|
|
"github.com/stretchr/testify/assert" |
|
|
|
) |
|
|
|
|
|
|
|
|
|
@ -1,8 +1,9 @@ |
|
|
|
package pipelines |
|
|
|
|
|
|
|
import ( |
|
|
|
"github.com/stretchr/testify/assert" |
|
|
|
"testing" |
|
|
|
|
|
|
|
"github.com/stretchr/testify/assert" |
|
|
|
) |
|
|
|
|
|
|
|
func TestTranslateStep(t *testing.T) { |
|
|
|