pub struct DriftGitOpsHandler { /* private fields */ }Expand description
GitOps handler for drift budget violations
Implementations§
Source§impl DriftGitOpsHandler
impl DriftGitOpsHandler
Sourcepub fn new(config: DriftGitOpsConfig) -> Result<Self>
pub fn new(config: DriftGitOpsConfig) -> Result<Self>
Create a new drift GitOps handler
Sourcepub async fn generate_pr_from_incidents(
&self,
incidents: &[DriftIncident],
) -> Result<Option<PRResult>>
pub async fn generate_pr_from_incidents( &self, incidents: &[DriftIncident], ) -> Result<Option<PRResult>>
Generate a PR from drift incidents
This method processes drift incidents and generates a PR with:
- Updated OpenAPI specs (if corrections are available)
- Updated fixture files
- Optionally regenerated client SDKs
- Optionally test execution
Auto Trait Implementations§
impl Freeze for DriftGitOpsHandler
impl !RefUnwindSafe for DriftGitOpsHandler
impl Send for DriftGitOpsHandler
impl Sync for DriftGitOpsHandler
impl Unpin for DriftGitOpsHandler
impl !UnwindSafe for DriftGitOpsHandler
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
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 more