Browse Source
Fix various formatting
feature/update-route-registration
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 { |
|
|
func CreateAuthenticationMiddleware(secret string) AuthenticationMiddleware { |
|
|
return AuthenticationMiddleware{ |
|
|
return AuthenticationMiddleware{ |
|
|
secret: secret, |
|
|
|
|
|
|
|
|
secret, |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
@ -3,8 +3,9 @@ package pipelines |
|
|
import ( |
|
|
import ( |
|
|
"errors" |
|
|
"errors" |
|
|
"fmt" |
|
|
"fmt" |
|
|
"github.com/disintegration/imaging" |
|
|
|
|
|
"image" |
|
|
"image" |
|
|
|
|
|
|
|
|
|
|
|
"github.com/disintegration/imaging" |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
type IExecutableStep interface { |
|
|
type IExecutableStep interface { |
|
|
|
@ -1,8 +1,9 @@ |
|
|
package pipelines |
|
|
package pipelines |
|
|
|
|
|
|
|
|
import ( |
|
|
import ( |
|
|
"github.com/stretchr/testify/assert" |
|
|
|
|
|
"testing" |
|
|
"testing" |
|
|
|
|
|
|
|
|
|
|
|
"github.com/stretchr/testify/assert" |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
func TestDeserializeOptionsResizeImage(t *testing.T) { |
|
|
func TestDeserializeOptionsResizeImage(t *testing.T) { |
|
|
|
@ -5,12 +5,13 @@ import ( |
|
|
"encoding/json" |
|
|
"encoding/json" |
|
|
"errors" |
|
|
"errors" |
|
|
"fmt" |
|
|
"fmt" |
|
|
"github.com/disintegration/imaging" |
|
|
|
|
|
"github.com/geplauder/lithium/storage" |
|
|
|
|
|
"io/fs" |
|
|
"io/fs" |
|
|
"log" |
|
|
"log" |
|
|
"os" |
|
|
"os" |
|
|
"path/filepath" |
|
|
"path/filepath" |
|
|
|
|
|
|
|
|
|
|
|
"github.com/disintegration/imaging" |
|
|
|
|
|
"github.com/geplauder/lithium/storage" |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
// Pipelines
|
|
|
// Pipelines
|
|
|
|
@ -1,12 +1,13 @@ |
|
|
package pipelines |
|
|
package pipelines |
|
|
|
|
|
|
|
|
import ( |
|
|
import ( |
|
|
"github.com/geplauder/lithium/storage" |
|
|
|
|
|
"image" |
|
|
"image" |
|
|
"os" |
|
|
"os" |
|
|
"path/filepath" |
|
|
"path/filepath" |
|
|
"testing" |
|
|
"testing" |
|
|
|
|
|
|
|
|
|
|
|
"github.com/geplauder/lithium/storage" |
|
|
|
|
|
|
|
|
"github.com/stretchr/testify/assert" |
|
|
"github.com/stretchr/testify/assert" |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
|
@ -1,8 +1,9 @@ |
|
|
package pipelines |
|
|
package pipelines |
|
|
|
|
|
|
|
|
import ( |
|
|
import ( |
|
|
"github.com/stretchr/testify/assert" |
|
|
|
|
|
"testing" |
|
|
"testing" |
|
|
|
|
|
|
|
|
|
|
|
"github.com/stretchr/testify/assert" |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
func TestTranslateStep(t *testing.T) { |
|
|
func TestTranslateStep(t *testing.T) { |
|
|