pub struct ComposeBackend(pub Target);Expand description
The Compose backend of the docker and hosted targets (a hosting service runs the same
Compose file): the target it renders for.
Tuple Fields§
§0: TargetTrait Implementations§
Source§impl Backend for ComposeBackend
impl Backend for ComposeBackend
Source§fn run_manifest(
&self,
env: &Environment,
) -> Result<Option<Manifest>, RenderError>
fn run_manifest( &self, env: &Environment, ) -> Result<Option<Manifest>, RenderError>
The docker target’s manifest; a hosting service runs the file its own way.
Source§fn capabilities(&self) -> Capabilities
fn capabilities(&self) -> Capabilities
What it can render.
Source§fn render(&self, env: &Environment) -> Result<Files, RenderError>
fn render(&self, env: &Environment) -> Result<Files, RenderError>
The environment’s files. Read more
Source§fn refusal(&self, env: &Environment) -> Option<String>
fn refusal(&self, env: &Environment) -> Option<String>
Why it would refuse
env, if it would: the plan’s requirements against its
capabilities, without rendering.Source§fn run_manifests(&self, env: &Environment) -> Result<Vec<Placed>, Error>
fn run_manifests(&self, env: &Environment) -> Result<Vec<Placed>, Error>
Every run manifest of the target, each with the folder it goes in under the target’s own:
docker-vm has two, one per way it makes its VM (docker-vm/run.json with Vagrant,
docker-vm/proxmox/run.json with Terraform). By default, Backend::run_manifest’s, in
the target’s folder. Read moreSource§impl Clone for ComposeBackend
impl Clone for ComposeBackend
impl Copy for ComposeBackend
Source§impl Debug for ComposeBackend
impl Debug for ComposeBackend
impl Eq for ComposeBackend
Source§impl Hash for ComposeBackend
impl Hash for ComposeBackend
Source§impl PartialEq for ComposeBackend
impl PartialEq for ComposeBackend
impl StructuralPartialEq for ComposeBackend
Auto Trait Implementations§
impl Freeze for ComposeBackend
impl RefUnwindSafe for ComposeBackend
impl Send for ComposeBackend
impl Sync for ComposeBackend
impl Unpin for ComposeBackend
impl UnsafeUnpin for ComposeBackend
impl UnwindSafe for ComposeBackend
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.