pub struct LocalProcessDeployerHandler { /* private fields */ }Expand description
Native handler for the local-process deployer env-pack.
Implementations§
Source§impl LocalProcessDeployerHandler
impl LocalProcessDeployerHandler
Sourcepub const DESCRIPTOR_PATH: &'static str = "greentic.deployer.local-process"
pub const DESCRIPTOR_PATH: &'static str = "greentic.deployer.local-process"
Version-independent descriptor path used as the registry key.
Must stay in lock-step with crate::defaults::LOCAL_DEPLOYER_PACK’s
path component (the part before @).
Sourcepub const VERSION_REQ: &'static str = "^0.1.0"
pub const VERSION_REQ: &'static str = "^0.1.0"
Descriptor versions this handler implements. Same ^0.1.0
requirement the metadata-only BuiltinHandler previously declared,
so the existing local env’s greentic.deployer.local-process@0.1.0
binding continues to resolve.
pub fn new() -> Self
Sourcepub fn with_port_range(range: RangeInclusive<u16>) -> Self
pub fn with_port_range(range: RangeInclusive<u16>) -> Self
Construct with an overridden port range for the
local-process.port.available capability probe. Lets tests
exercise the probe with a known-free or known-busy range without
gambling on the default 8080..=8090.
Trait Implementations§
Source§impl Debug for LocalProcessDeployerHandler
impl Debug for LocalProcessDeployerHandler
Source§impl Default for LocalProcessDeployerHandler
impl Default for LocalProcessDeployerHandler
Source§fn default() -> LocalProcessDeployerHandler
fn default() -> LocalProcessDeployerHandler
Returns the “default value” for a type. Read more
Source§impl Deployer for LocalProcessDeployerHandler
impl Deployer for LocalProcessDeployerHandler
Source§fn stage_revision<'life0, 'life1, 'async_trait>(
&'life0 self,
env: &'life1 Environment,
revision_id: RevisionId,
) -> Pin<Box<dyn Future<Output = Result<StageOutcome, DeployerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn stage_revision<'life0, 'life1, 'async_trait>(
&'life0 self,
env: &'life1 Environment,
revision_id: RevisionId,
) -> Pin<Box<dyn Future<Output = Result<StageOutcome, DeployerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Stage-time side effects: upload bundle to registry/storage,
pre-pull images, validate trust-root signatures, etc. Read more
Source§fn warm_revision<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
env: &'life1 Environment,
revision_id: RevisionId,
_answers: Option<&'life2 Value>,
) -> Pin<Box<dyn Future<Output = Result<WarmOutcome, DeployerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn warm_revision<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
env: &'life1 Environment,
revision_id: RevisionId,
_answers: Option<&'life2 Value>,
) -> Pin<Box<dyn Future<Output = Result<WarmOutcome, DeployerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Warm-time side effects: create the cloud resources that serve the
revision (K8s Deployment, ECS task-set, systemd unit, …), wait
until reachable. Read more
Source§fn drain_revision<'life0, 'life1, 'async_trait>(
&'life0 self,
env: &'life1 Environment,
revision_id: RevisionId,
) -> Pin<Box<dyn Future<Output = Result<DrainOutcome, DeployerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn drain_revision<'life0, 'life1, 'async_trait>(
&'life0 self,
env: &'life1 Environment,
revision_id: RevisionId,
) -> Pin<Box<dyn Future<Output = Result<DrainOutcome, DeployerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Drain-time side effects: stop accepting new sessions and wait up
to
drain_seconds for existing sessions to complete. Read moreSource§fn archive_revision<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
env: &'life1 Environment,
revision_id: RevisionId,
_answers: Option<&'life2 Value>,
) -> Pin<Box<dyn Future<Output = Result<ArchiveOutcome, DeployerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn archive_revision<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
env: &'life1 Environment,
revision_id: RevisionId,
_answers: Option<&'life2 Value>,
) -> Pin<Box<dyn Future<Output = Result<ArchiveOutcome, DeployerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Archive-time side effects: tear down the provider resources for
this revision (delete the K8s Deployment, deregister the ECS task-
set, remove the systemd unit, …). Read more
Source§fn apply_traffic_split<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
env: &'life1 Environment,
deployment_id: DeploymentId,
_answers: Option<&'life2 Value>,
) -> Pin<Box<dyn Future<Output = Result<TrafficSplitOutcome, DeployerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn apply_traffic_split<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
env: &'life1 Environment,
deployment_id: DeploymentId,
_answers: Option<&'life2 Value>,
) -> Pin<Box<dyn Future<Output = Result<TrafficSplitOutcome, DeployerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Project the env’s
TrafficSplit for deployment_id into a
provider-native shape (K8s router runtime-config bump, ALB rule
weights, Cloud Run traffic targets, …) and enforce it. Read moreSource§fn report_runtime_config(&self, env: &Environment) -> RuntimeConfig
fn report_runtime_config(&self, env: &Environment) -> RuntimeConfig
The deployer’s view of the runtime-config projection. Read more
Source§impl EnvPackHandler for LocalProcessDeployerHandler
impl EnvPackHandler for LocalProcessDeployerHandler
Source§fn slot(&self) -> CapabilitySlot
fn slot(&self) -> CapabilitySlot
The capability slot this handler serves.
Source§fn descriptor_path(&self) -> &str
fn descriptor_path(&self) -> &str
Version-independent descriptor path (e.g.
greentic.deployer.local-process).
This is the registry key — kind@<semver> resolves on the path alone.Source§fn supported_versions(&self) -> VersionReq
fn supported_versions(&self) -> VersionReq
Descriptor versions this native handler implements. Read more
Source§fn preflight(&self) -> Vec<ToolCheck>
fn preflight(&self) -> Vec<ToolCheck>
Preflight checks the handler needs to pass before it can do real work.
Returns the list of
ToolCheck results — handlers compose the
primitives + named-tool catalog in crate::tool_check. Read moreSource§fn deployer_credentials(&self) -> Option<&dyn DeployerCredentials>
fn deployer_credentials(&self) -> Option<&dyn DeployerCredentials>
Deployer-only: credentials contract (C1). Read more
Source§fn as_deployer(&self) -> Option<&dyn Deployer>
fn as_deployer(&self) -> Option<&dyn Deployer>
Source§fn as_manifest_renderer(&self) -> Option<&dyn ManifestRenderer>
fn as_manifest_renderer(&self) -> Option<&dyn ManifestRenderer>
Deployer-only: declarative manifest rendering seam (plan §6 step 10). Read more
Auto Trait Implementations§
impl Freeze for LocalProcessDeployerHandler
impl RefUnwindSafe for LocalProcessDeployerHandler
impl Send for LocalProcessDeployerHandler
impl Sync for LocalProcessDeployerHandler
impl Unpin for LocalProcessDeployerHandler
impl UnsafeUnpin for LocalProcessDeployerHandler
impl UnwindSafe for LocalProcessDeployerHandler
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> FmtForward for T
impl<T> FmtForward for T
Source§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes
self to use its Binary implementation when Debug-formatted.Source§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes
self to use its Display implementation when
Debug-formatted.Source§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
Causes
self to use its LowerExp implementation when
Debug-formatted.Source§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
Causes
self to use its LowerHex implementation when
Debug-formatted.Source§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
Causes
self to use its Octal implementation when Debug-formatted.Source§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
Causes
self to use its Pointer implementation when
Debug-formatted.Source§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
Causes
self to use its UpperExp implementation when
Debug-formatted.Source§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
Causes
self to use its UpperHex implementation when
Debug-formatted.Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::RequestCreates a shared type from an unshared type.
Source§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
Source§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Pipes by value. This is generally the method you want to use. Read more
Source§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
Borrows
self and passes that borrow into the pipe function. Read moreSource§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
Mutably borrows
self and passes that borrow into the pipe function. Read moreSource§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
Source§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
Source§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
Borrows
self, then passes self.as_ref() into the pipe function.Source§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
Mutably borrows
self, then passes self.as_mut() into the pipe
function.Source§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
Borrows
self, then passes self.deref() into the pipe function.Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> ServiceExt for T
impl<T> ServiceExt for T
Source§fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
Apply a transformation to the response body. Read more
Source§fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using HTTP status codes. Read more
Source§fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using gRPC headers. Read more
Source§fn follow_redirects(self) -> FollowRedirect<Self>where
Self: Sized,
fn follow_redirects(self) -> FollowRedirect<Self>where
Self: Sized,
Source§impl<T> Tap for T
impl<T> Tap for T
Source§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Immutable access to the
Borrow<B> of a value. Read moreSource§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
Mutable access to the
BorrowMut<B> of a value. Read moreSource§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
Immutable access to the
AsRef<R> view of a value. Read moreSource§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
Mutable access to the
AsMut<R> view of a value. Read moreSource§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Immutable access to the
Deref::Target of a value. Read moreSource§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Mutable access to the
Deref::Target of a value. Read moreSource§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
Calls
.tap() only in debug builds, and is erased in release builds.Source§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
Calls
.tap_mut() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
Calls
.tap_borrow() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
Calls
.tap_borrow_mut() only in debug builds, and is erased in release
builds.Source§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
Calls
.tap_ref() only in debug builds, and is erased in release
builds.Source§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
Calls
.tap_ref_mut() only in debug builds, and is erased in release
builds.Source§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
Calls
.tap_deref() only in debug builds, and is erased in release
builds.