pub struct DockerTemplateManager { /* private fields */ }Expand description
Manages Docker templates and layer composition
Implementations§
Source§impl DockerTemplateManager
impl DockerTemplateManager
Sourcepub fn new(
asset_manager: Arc<dyn AssetManager>,
xdg_dirs: Arc<XdgDirectories>,
) -> Self
pub fn new( asset_manager: Arc<dyn AssetManager>, xdg_dirs: Arc<XdgDirectories>, ) -> Self
Creates a new DockerTemplateManager
Sourcepub fn get_layer_content(
&self,
layer: &DockerLayer,
project_root: Option<&Path>,
) -> Result<DockerLayerContent>
pub fn get_layer_content( &self, layer: &DockerLayer, project_root: Option<&Path>, ) -> Result<DockerLayerContent>
Get the content of a specific Docker layer
Sourcepub fn compose_dockerfile(
&self,
config: &DockerImageConfig,
project_root: Option<&Path>,
) -> Result<String>
pub fn compose_dockerfile( &self, config: &DockerImageConfig, project_root: Option<&Path>, ) -> Result<String>
Compose a complete Dockerfile from multiple layers
Sourcepub fn list_available_layers(
&self,
layer_type: DockerLayerType,
project_root: Option<&Path>,
) -> Vec<String>
pub fn list_available_layers( &self, layer_type: DockerLayerType, project_root: Option<&Path>, ) -> Vec<String>
List available layers of a specific type
Auto Trait Implementations§
impl Freeze for DockerTemplateManager
impl !RefUnwindSafe for DockerTemplateManager
impl Send for DockerTemplateManager
impl Sync for DockerTemplateManager
impl Unpin for DockerTemplateManager
impl !UnwindSafe for DockerTemplateManager
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