Skip to content

Commit

Permalink
move server definitions into the server folder
Browse files Browse the repository at this point in the history
  • Loading branch information
lostbean committed Dec 8, 2023
1 parent 4014d70 commit cf78ef9
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion api/openapi/generators/core_server.cfg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ generate:
additional-imports:
- package: github.com/kurtosis-tech/kurtosis/api/golang/http_rest/api_types
alias: .
output: api/golang/http_rest/core_rest_api/api_container_server.gen.go
output: api/golang/http_rest/server/core_rest_api/api_container_server.gen.go
output-options:
include-tags:
- enclave
2 changes: 1 addition & 1 deletion api/openapi/generators/engine_server.cfg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ generate:
additional-imports:
- package: github.com/kurtosis-tech/kurtosis/api/golang/http_rest/api_types
alias: .
output: api/golang/http_rest/engine_rest_api/engine_server.gen.go
output: api/golang/http_rest/server/engine_rest_api/engine_server.gen.go
output-options:
include-tags:
- engine
2 changes: 1 addition & 1 deletion api/openapi/generators/websocket_server.cfg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ generate:
additional-imports:
- package: github.com/kurtosis-tech/kurtosis/api/golang/http_rest/api_types
alias: .
output: api/golang/http_rest/websocket_api/websocket_server.gen.go
output: api/golang/http_rest/server/websocket_api/websocket_server.gen.go
output-options:
include-tags:
- streaming
6 changes: 3 additions & 3 deletions engine/server/engine/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ import (

"github.com/kurtosis-tech/kurtosis/api/golang/core/kurtosis_core_rpc_api_bindings"
"github.com/kurtosis-tech/kurtosis/api/golang/engine/kurtosis_engine_rpc_api_bindings/kurtosis_engine_rpc_api_bindingsconnect"
enclaveApi "github.com/kurtosis-tech/kurtosis/api/golang/http_rest/core_rest_api"
engineApi "github.com/kurtosis-tech/kurtosis/api/golang/http_rest/engine_rest_api"
loggingApi "github.com/kurtosis-tech/kurtosis/api/golang/http_rest/websocket_api"
enclaveApi "github.com/kurtosis-tech/kurtosis/api/golang/http_rest/server/core_rest_api"
engineApi "github.com/kurtosis-tech/kurtosis/api/golang/http_rest/server/engine_rest_api"
loggingApi "github.com/kurtosis-tech/kurtosis/api/golang/http_rest/server/websocket_api"
connect_server "github.com/kurtosis-tech/kurtosis/connect-server"
"github.com/kurtosis-tech/kurtosis/container-engine-lib/lib/backend_impls/docker/docker_kurtosis_backend/backend_creator"
"github.com/kurtosis-tech/kurtosis/container-engine-lib/lib/backend_impls/docker/docker_kurtosis_backend/consts"
Expand Down
2 changes: 1 addition & 1 deletion engine/server/engine/server/enclave_rest_api_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (

rpc_api "github.com/kurtosis-tech/kurtosis/api/golang/core/kurtosis_core_rpc_api_bindings"
api_type "github.com/kurtosis-tech/kurtosis/api/golang/http_rest/api_types"
api "github.com/kurtosis-tech/kurtosis/api/golang/http_rest/core_rest_api"
api "github.com/kurtosis-tech/kurtosis/api/golang/http_rest/server/core_rest_api"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion engine/server/engine/server/engine_rest_api_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"github.com/sirupsen/logrus"

api_type "github.com/kurtosis-tech/kurtosis/api/golang/http_rest/api_types"
api "github.com/kurtosis-tech/kurtosis/api/golang/http_rest/engine_rest_api"
api "github.com/kurtosis-tech/kurtosis/api/golang/http_rest/server/engine_rest_api"
)

type EngineRuntime struct {
Expand Down

0 comments on commit cf78ef9

Please sign in to comment.