{"modulePath":"github.com/newstack-cloud/celerity/apps/cli","version":"v0.0.0-20261125230728-bf62912a2d4e","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package engine\n\nPackage engine gives the CLI its deploy engine client.\n\nThe client, its interface and the error simplification all live in deploy-cli-sdk now, shared with the other CLIs built on it. This package is the seam that remains: it re-exports them under the import path the CLI's commands already use, so the move needed no change at any call site.\n\nCreating the client is the part worth not duplicating. It resolves the endpoint and connect protocol from configuration, loads the engine auth config file and handles all three auth methods -- behaviour every command depends on and which is easy to get subtly wrong in a second copy.\n\n## Variables\n\n```go\nvar Create = sdkengine.Create\n```\nCreate builds a deploy engine client from the CLI's configuration.\n\n```go\nvar SimplifyError = sdkengine.SimplifyError\n```\nSimplifyError turns a transport or API error into something an operator can act on.\n\n## Types\n\n```go\ntype DeployEngine = sdkengine.DeployEngine\n```\nDeployEngine is the deploy engine's v1 API, as implemented by the client.\n\n","path":"github.com/newstack-cloud/celerity/apps/cli/internal/engine","name":"engine","synopsis":"Package engine gives the CLI its deploy engine client.","isRedistributable":true}
