pub struct PipelineVersionControl { /* private fields */ }Expand description
Version control system for pipeline states
Implementations§
Source§impl PipelineVersionControl
impl PipelineVersionControl
Sourcepub fn new(state_manager: Arc<StateManager>) -> Self
pub fn new(state_manager: Arc<StateManager>) -> Self
Create a new version control system
Sourcepub fn create_branch(
&self,
branch_name: &str,
from_snapshot: Option<&str>,
) -> SklResult<()>
pub fn create_branch( &self, branch_name: &str, from_snapshot: Option<&str>, ) -> SklResult<()>
Create a new branch
Sourcepub fn checkout_branch(&self, branch_name: &str) -> SklResult<()>
pub fn checkout_branch(&self, branch_name: &str) -> SklResult<()>
Switch to a different branch
Sourcepub fn commit(&self, snapshot_id: &str, message: &str) -> SklResult<()>
pub fn commit(&self, snapshot_id: &str, message: &str) -> SklResult<()>
Commit changes to current branch
Sourcepub fn create_tag(&self, tag_name: &str, snapshot_id: &str) -> SklResult<()>
pub fn create_tag(&self, tag_name: &str, snapshot_id: &str) -> SklResult<()>
Create a tag for a snapshot
Sourcepub fn list_branches(&self) -> Vec<String>
pub fn list_branches(&self) -> Vec<String>
List all branches
List all tags
Sourcepub fn current_branch(&self) -> String
pub fn current_branch(&self) -> String
Get current branch
Auto Trait Implementations§
impl Freeze for PipelineVersionControl
impl RefUnwindSafe for PipelineVersionControl
impl Send for PipelineVersionControl
impl Sync for PipelineVersionControl
impl Unpin for PipelineVersionControl
impl UnwindSafe for PipelineVersionControl
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> 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