Skip to main content

function_sdk_rust/
context.rs

1//! Well-known function context keys.
2//!
3//! Context is a scratch key-value area threaded through every function call
4//! in a pipeline. Read keys with [`crate::request::get_context_key`] and set
5//! them with [`crate::response::set_context_key`].
6
7/// The context key Crossplane sets to inject the composition environment
8/// into function context.
9///
10/// This is an alpha Crossplane feature. It is not honored unless the
11/// relevant Crossplane feature flag is enabled, and may change or be removed
12/// without notice.
13pub const KEY_ENVIRONMENT: &str = "apiextensions.crossplane.io/environment";