Expand description
A Rust SDK for writing Crossplane composition functions.
Composition functions are gRPC servers implementing the
FunctionRunnerService defined by Crossplane’s
apiextensions.fn.proto.v1 API. This SDK provides the generated protocol
types, a spec-compliant server runtime, and helpers for working with
requests and responses.
The most important protocol rule: desired state is a fully specified
server-side apply intent, not a merge patch. Build responses with
response::to so the desired state and context accumulated by earlier
pipeline steps are copied forward; anything left out is deleted from the
cluster.
Re-exports§
Modules§
- context
- Well-known function context keys.
- logging
- Logging setup for composition functions.
- proto
- Generated protobuf, gRPC, and protojson (serde) code for the
apiextensions.fn.proto.v1FunctionRunnerService API. - request
- Helpers for working with RunFunctionRequests.
- resource
- Helpers for working with composite and composed resources.
- response
- Helpers for working with RunFunctionResponses.
- server
- A spec-compliant gRPC server runtime for composition functions.
Enums§
- Error
- Errors returned by the SDK.