pub struct Hook {
pub name: String,
pub kind: String,
pub path: String,
pub manifest: String,
pub events: Vec<HookEvent>,
pub last_run: HookExecution,
pub weight: i64,
pub delete_policies: Vec<DeletePolicy>,
pub output_log_policies: Vec<OutputLogPolicy>,
}Expand description
A hook of a release as Helm records it (Hook): the manifest plus how and when it runs.
Fields§
§name: StringThe resource name (metadata.name).
kind: StringThe Kubernetes kind.
path: StringThe chart-relative path of the template that produced it.
manifest: StringThe hook’s manifest text.
events: Vec<HookEvent>The events the hook fires on (helm.sh/hook).
last_run: HookExecutionThe last execution; empty for a hook that never ran.
weight: i64The execution order among hooks of the same event (helm.sh/hook-weight).
delete_policies: Vec<DeletePolicy>When the hook resource is deleted (helm.sh/hook-delete-policy).
output_log_policies: Vec<OutputLogPolicy>When the hook’s logs are copied back (helm.sh/hook-output-log-policy).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Hook
impl<'de> Deserialize<'de> for Hook
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Hook
Auto Trait Implementations§
impl Forget for Hook
impl Freeze for Hookwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<HookEvent>: Freeze,
PhantomData<DeletePolicy>: Freeze,
PhantomData<OutputLogPolicy>: Freeze,
impl Move for Hook
impl RefUnwindSafe for Hook
impl Send for Hookwhere
RawVecInner: Send,
impl Sync for Hookwhere
RawVecInner: Sync,
impl Unpin for Hook
impl UnsafeUnpin for Hookwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<HookEvent>: UnsafeUnpin,
PhantomData<DeletePolicy>: UnsafeUnpin,
PhantomData<OutputLogPolicy>: UnsafeUnpin,
impl UnwindSafe for Hookwhere
RawVecInner: UnwindSafe,
Blanket Implementations§
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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> 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