pub struct Updater { /* private fields */ }Expand description
Ported from Updater.
Implementations§
Source§impl Updater
impl Updater
Sourcepub fn new(
backend: Arc<dyn GitBackend + Send + Sync>,
options: UpdateOptions,
) -> Self
pub fn new( backend: Arc<dyn GitBackend + Send + Sync>, options: UpdateOptions, ) -> Self
Ported from NewUpdater.
Sourcepub fn update_repositories(
&self,
exec: &dyn CommandRunner,
cfg: &Container,
) -> (Vec<UpdateResult>, bool)
pub fn update_repositories( &self, exec: &dyn CommandRunner, cfg: &Container, ) -> (Vec<UpdateResult>, bool)
Ported from (*Updater).UpdateRepositories. Updates multiple
repositories based on configuration. Returns results for all
repositories and a success flag. The success flag is false if
any repository has UpdateStatus::Failed.
This also invokes the crate::lifecyclehooks::HookType::EditModePrepare
hooks but without the KUBECONFIG because the cluster isn’t
guaranteed to be available yet.
Auto Trait Implementations§
impl !RefUnwindSafe for Updater
impl !UnwindSafe for Updater
impl Freeze for Updater
impl Send for Updater
impl Sync for Updater
impl Unpin for Updater
impl UnsafeUnpin for Updater
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
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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 more