docs.rs failed to build greentic-deployer-0.4.13
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
greentic-deployer-0.4.38
Greentic Deployer
greentic-deployer is a library that builds provider-agnostic deployment plans for Greentic application packs, resolves deployment-pack targets, and persists the runtime metadata an operator or control plane needs to execute those deployment packs.
Concepts
- Application packs (
kind: applicationormixed) describe flows, components, tools, secrets, tenant bindings, and deployment hints. - Deployment plans (
greentic-types::DeploymentPlan) are the normalized output of pack introspection. - Deployment packs (
kind: deployment) consume the deployment plan throughgreentic:deploy-plan@1.0.0. - Providers / strategies map
(provider, strategy)to(deployment_pack_id, flow_id). - Executors are registered by the host, operator, or control plane and are responsible for invoking the deployment pack.
Building
Runtime behavior
- The runtime is capability-first: deployment packs can declare
generate,plan,apply,destroy,status, androllback. planbuilds the deployment plan, resolves the deployment pack, writes runtime metadata, and returns a typed plan payload.generate,status, androllbackreturn typed contract-backed payloads even without an executor.applyanddestroyreturn typed handoff payloads in preview mode and use the registered executor when execution is enabled.- Executed operations keep the same typed payloads and also include an execution report with executor outcomes when available.
Runtime artifacts are written to:
deploy/<provider>/<tenant>/<environment>/._deployer_invocation.jsondeploy/<provider>/<tenant>/<environment>/._runner_cmd.txt.greentic/state/runtime/<tenant>/<environment>/plan.json.greentic/state/runtime/<tenant>/<environment>/invoke.json
Configuration
- Configuration is resolved via
greentic-configwith precedencerequest > env > project (.greentic/config.toml) > user (~/.config/greentic/config.toml) > defaults. DeployerRequest.config_pathreplaces project discovery with an explicit config file.DeployerRequest.allow_remote_in_offlineoverrides the offline guard for distributor-backed pack resolution.deployer.base_domaincontrols the domain used for OAuth redirect URLs and ingress hints.
Deployment packs
Deployment packs own:
- operation schemas
- execution-result schemas
- planner inputs and outputs
- dispatch metadata
- provider-specific validation
- examples, fixtures, and wizard questions
The deployer library does not own target-specific prompts or provider execution logic.
See docs/deployment-packs.md for the runtime contract and authoring model.
Embedding
use PathBuf;
use Arc;
use ;
use DeployerCapability;
use ;
;
let request = new;
let config = resolve?;
set_deployment_executor;
let result = run.await?;
let _ = result.execution;