package
0.4.0-alpha.0
Repository: https://github.com/konveyor/move2kube-api.git
Documentation: pkg.go.dev

# Functions

GetAuthorizationMiddleWare returns the middleware that checks for authorization.
GetAuthServerIdGivenUserId returns the authz server Id of the user given the user id used in the Move2Kube API URL endpoints.
GetLogger returns the logger from the request's context.
GetLoggingMiddleWare returns the middleware that logs each request method and URL.
GetRemoveTrailingSlashMiddleWare returns the middleware that removes trailing slashes from the request URL.
GetRequestId returns the request id from the request's context.
HandleCreateProject handles creating a new project.
HandleCreateProjectInput is the handler for creating a project input isCommon: if true the input will be available for all the projects in the workspace.
HandleCreateRole handles creating a new role.
HandleCreateRoleBinding handles assigning a role to a particular user.
HandleCreateWorkspace handles creating a new workspace.
HandleDeletePlan handles deleting the plan for a project.
HandleDeleteProject handles deleting an existing project.
HandleDeleteProjectInput is the handler for deleting a project input.
HandleDeleteProjectOutput handles deleting the output of a transformation.
HandleDeleteRole handles deleting an existing role.
HandleDeleteRoleBinding handles removing a role from a particular user.
HandleDeleteWorkspace handles deleting an existing workspace.
HandleGetAccessToken handles access token requests.
HandleGetQuestion handles getting the next question of an ongoing transformation.
HandleListProjects handles listing projects.
HandleListRoleBindings handles list all the roles of a particular user.
HandleListRoles handles listing all the roles.
HandleListWorkspaces handles listing all the workspaces a user has access to.
HandleLogin logs the user in and gets the authorization code.
HandleLoginCallback gets the access and refresh tokens for the user given the authorization code.
HandleLogout logs out the user.
HandlePatchRoleBindings handles patching the roles of a particular user.
HandlePostSolution handles posting the solution to the current question of an ongoing transformation.
HandleReadPlan handles reading the plan for a project.
HandleReadProject handles reading an existing project.
HandleReadProjectInput is the handler for reading a project input.
HandleReadProjectOutput handles reading the output of a transformation.
HandleReadProjectOutputGraph handles reading the graph file from the output of a transformation.
HandleReadRole handles reading an existing role.
HandleReadWorkspace handles reading an existing workspace.
HandleStartPlanning handles starting the planning for a project.
HandleStartTransformation handles starting a new transformation.
HandleSupport is the handler for getting support information.
HandleUpdatePlan handles updating the plan for a project.
HandleUpdateRole handles updating an existing role.
HandleUpdateWorkspace handles updating an existing workspace.
HandleUserProfile is the handler for getting the user profile.
Setup handlers.

# Constants

DEBUG_QUERY_PARAM is the name of the query parameter used for debug mode.
IDP_USER_ID_ROUTE_VAR is the route variable for the user id.
PROJECT_ID_ROUTE_VAR is the route variable that contains the project Id.
PROJECT_INPUT_ID_ROUTE_VAR is the route variable that contains the project input Id.
PROJECT_OUTPUT_ID_ROUTE_VAR is the route variable that contains the project output Id.
ROLE_ID_ROUTE_VAR is the route variable that contains the role Id.
WORKSPACE_ID_ROUTE_VAR is the route variable that contains the workspace Id.