{"modulePath":"github.com/eclipse-che/che-operator","version":"v0.0.0-20261201105157-fe5a0a6d481e","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package solver\n\nPackage solver contains the implementation of the \"devworkspace routing solver\" which provides che-specific logic to the otherwise generic dev workspace routing controller. The devworkspace routing controller needs to be provided with a \"solver getter\" in its configuration prior to starting the reconciliation loop. See \\`CheRouterGetter\\`.\n\n## Types\n\n```go\ntype CheRouterGetter struct {\n\t// contains filtered or unexported fields\n}\n```\nCheRouterGetter negotiates the solver with the calling code\n\n```go\nfunc Getter(scheme *runtime.Scheme) *CheRouterGetter\n```\nGetter creates a new CheRouterGetter\n\n```go\nfunc (g *CheRouterGetter) GetSolver(client client.Client, routingClass controllerv1alpha1.DevWorkspaceRoutingClass) (solver solvers.RoutingSolver, err error)\n```\n\n```go\nfunc (g *CheRouterGetter) HasSolver(routingClass controllerv1alpha1.DevWorkspaceRoutingClass) bool\n```\n\n```go\nfunc (g *CheRouterGetter) SetupControllerManager(mgr *builder.Builder) error\n```\n\n```go\ntype CheRoutingSolver struct {\n\t// contains filtered or unexported fields\n}\n```\nCheRoutingSolver is a struct representing the routing solver for Che specific routing of devworkspaces\n\n```go\nfunc (c *CheRoutingSolver) Finalize(routing *controllerv1alpha1.DevWorkspaceRouting) error\n```\n\n```go\nfunc (c *CheRoutingSolver) FinalizerRequired(routing *controllerv1alpha1.DevWorkspaceRouting) bool\n```\n\n```go\nfunc (c *CheRoutingSolver) GetExposedEndpoints(endpoints map[string]controllerv1alpha1.EndpointList, routingObj solvers.RoutingObjects) (exposedEndpoints map[string]controllerv1alpha1.ExposedEndpointList, ready bool, err error)\n```\nGetExposedEndpoints retreives the URL for each endpoint in a devfile spec from a set of RoutingObjects. Returns is a map from component ids (as defined in the devfile) to the list of endpoints for that component Return value \"ready\" specifies if all endpoints are resolved on the cluster; if false it is necessary to retry, as URLs will be undefined.\n\n```go\nfunc (c *CheRoutingSolver) GetSpecObjects(routing *controllerv1alpha1.DevWorkspaceRouting, workspaceMeta solvers.DevWorkspaceMetadata) (solvers.RoutingObjects, error)\n```\nGetSpecObjects constructs cluster routing objects which should be applied on the cluster\n\n```go\ntype EndpointInfo struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\ntype EndpointStrategy interface {\n\t// contains filtered or unexported methods\n}\n```\nInterface for different workspace and endpoint url path strategies\n\n```go\ntype IngressExposer struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\ntype Legacy struct {\n\t// contains filtered or unexported fields\n}\n```\nPublic endpoints defined in the devfile are exposed on the following path via route or ingress: \\\u003cWORKSPACE\\_ID\u003e-\\\u003cENDPOINT\\_ORDER\\_NUMBER\u003e.\\\u003cCLUSTER\\_INGRESS\\_DOMAIN\u003e/\\\u003cENDPOINT\\_PATH\u003e\n\n```go\ntype RouteExposer struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\ntype UsernameWkspName struct {\n\t// contains filtered or unexported fields\n}\n```\nPublic endpoints defined in the devfile are exposed on the following path via route or ingress: \\\u003cUSERNAME\u003e-\\\u003cWORKSPACE\\_NAME\u003e-\\\u003cENDPOINT\\_NAME\u003e.\\\u003cCLUSTER\\_INGRESS\\_DOMAIN\u003e/\\\u003cENDPOINT\\_PATH\u003e\n\n","path":"github.com/eclipse-che/che-operator/controllers/devworkspace/solver","name":"solver","synopsis":"Package solver contains the implementation of the \"devworkspace routing solver\" which provides che-specific logic to the otherwise generic dev workspace routing controller.","isRedistributable":true}
