-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Move code to various dirs Signed-off-by: Ali Ok <aliok@redhat.com> * More moving around Signed-off-by: Ali Ok <aliok@redhat.com> * Version the OpenAPI Signed-off-by: Ali Ok <aliok@redhat.com> * Fix code generation Signed-off-by: Ali Ok <aliok@redhat.com> --------- Signed-off-by: Ali Ok <aliok@redhat.com>
- Loading branch information
Showing
18 changed files
with
72 additions
and
45 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
...conciler/eventmesh/authtokenmiddleware.go → ...pkg/eventmesh/auth/authtokenmiddleware.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package eventmesh | ||
package auth | ||
|
||
import ( | ||
"context" | ||
|
4 changes: 2 additions & 2 deletions
4
backends/pkg/reconciler/eventmesh/api.gen.go → backends/pkg/eventmesh/v1/api.gen.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../pkg/reconciler/eventmesh/builder_test.go → backends/pkg/eventmesh/v1/builder_test.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package eventmesh | ||
package v1 | ||
|
||
import ( | ||
"context" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...ds/pkg/reconciler/eventmesh/server.gen.go → backends/pkg/eventmesh/v1/server.gen.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...s/pkg/reconciler/eventmesh/annotations.go → backends/pkg/util/annotations.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../reconciler/eventmesh/annotations_test.go → backends/pkg/util/annotations_test.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package eventmesh | ||
package util | ||
|
||
import ( | ||
"reflect" | ||
|
2 changes: 1 addition & 1 deletion
2
backends/pkg/reconciler/eventmesh/util.go → backends/pkg/util/util.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package eventmesh | ||
package util | ||
|
||
import ( | ||
"fmt" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package hack | ||
|
||
//go:generate go run github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen -config oapi-models-config-event-mesh.yaml ../specs/event-mesh.yaml | ||
//go:generate go run github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen -config oapi-server-config-event-mesh.yaml ../specs/event-mesh.yaml | ||
//go:generate go run github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen -config oapi-models-config-event-mesh-v1.yaml ../specs/event-mesh-v1.yaml | ||
//go:generate go run github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen -config oapi-server-config-event-mesh-v1.yaml ../specs/event-mesh-v1.yaml |
4 changes: 2 additions & 2 deletions
4
hack/oapi-models-config-event-mesh.yaml → hack/oapi-models-config-event-mesh-v1.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# yaml-language-server: $schema=https://raw.githubusercontent.com/oapi-codegen/oapi-codegen/HEAD/configuration-schema.json | ||
package: eventmesh | ||
package: v1 | ||
generate: | ||
models: true | ||
output: ../backends/pkg/reconciler/eventmesh/api.gen.go | ||
output: ../backends/pkg/eventmesh/v1/api.gen.go |
4 changes: 2 additions & 2 deletions
4
hack/oapi-server-config-event-mesh.yaml → hack/oapi-server-config-event-mesh-v1.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
# yaml-language-server: $schema=https://raw.githubusercontent.com/oapi-codegen/oapi-codegen/HEAD/configuration-schema.json | ||
package: eventmesh | ||
package: v1 | ||
generate: | ||
gorilla-server: true | ||
strict-server: true | ||
embedded-spec: true | ||
output: ../backends/pkg/reconciler/eventmesh/server.gen.go | ||
output: ../backends/pkg/eventmesh/v1/server.gen.go | ||
compatibility: | ||
apply-gorilla-middleware-first-to-last: true |
File renamed without changes.