pub struct TemplateEngine { /* private fields */ }Expand description
Template resolution engine
Resolves template references in Azure DevOps pipelines by:
- Loading template files relative to the repository root
- Validating and substituting parameters
- Expanding template expressions (${{ each }}, ${{ if }})
- Handling extends (pipeline inheritance)
- Detecting circular references
Implementations§
Source§impl TemplateEngine
impl TemplateEngine
Sourcepub fn with_resource_repo(self, name: String, path: PathBuf) -> Self
pub fn with_resource_repo(self, name: String, path: PathBuf) -> Self
Add a resource repository path for cross-repo template references
Sourcepub fn resolve_pipeline(&mut self, pipeline: Pipeline) -> ParseResult<Pipeline>
pub fn resolve_pipeline(&mut self, pipeline: Pipeline) -> ParseResult<Pipeline>
Resolve all templates in a pipeline, returning a fully expanded pipeline with no template references remaining.
Auto Trait Implementations§
impl Freeze for TemplateEngine
impl RefUnwindSafe for TemplateEngine
impl Send for TemplateEngine
impl Sync for TemplateEngine
impl Unpin for TemplateEngine
impl UnsafeUnpin for TemplateEngine
impl UnwindSafe for TemplateEngine
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