Crate greentic_types

Crate greentic_types 

Source
Expand description

Shared types and helpers for Greentic multi-tenant flows.

Re-exports§

pub use context::Cloud;
pub use context::DeploymentCtx;
pub use context::Platform;
pub use error::ErrorCode;
pub use error::GResult;
pub use error::GreenticError;
pub use outcome::Outcome;
pub use pack::PackRef;
pub use pack::Signature;
pub use pack::SignatureAlgorithm;
pub use pack_spec::PackSpec;
pub use pack_spec::ToolSpec;
pub use policy::AllowList;
pub use policy::NetworkPolicy;
pub use policy::PolicyDecision;
pub use policy::Protocol;
pub use session::SessionCursor;
pub use session::SessionKey;
pub use state::StateKey;
pub use state::StatePath;
pub use telemetry::SpanContext;
pub use tenant::Impersonation;
pub use tenant::TenantIdentity;

Modules§

context
Shared deployment context primitives for Greentic runtimes.
error
Shared error types for Greentic crates.
outcome
Normalized execution outcomes.
pack
Pack reference metadata.
pack_spec
Serde-ready representations for Greentic pack.yaml manifests.
policy
Network policy primitives.
session
Session identity and cursor helpers.
state
State key and JSON pointer helpers.
telemetry
Telemetry helpers exposed by greentic-types.
tenant
Tenant-centric identity helpers.

Structs§

EnvId
Environment identifier for a tenant context.
InvocationDeadline
Deadline metadata for an invocation, stored as Unix epoch milliseconds.
InvocationEnvelope
Normalized ingress payload delivered to nodes.
NodeError
Error type emitted by Greentic nodes.
TeamId
Team identifier belonging to a tenant.
TenantCtx
Context that accompanies every invocation across Greentic runtimes.
TenantId
Tenant identifier within an environment.
UserId
User identifier within a tenant.

Enums§

ErrorDetail
Structured detail payload attached to a node error.

Functions§

make_idempotency_key
Generates a stable idempotency key for a node invocation.

Type Aliases§

BinaryPayload
Primary payload representation shared across envelopes.
NodeResult
Alias for results returned by node handlers.