Struct conductor::exec::Target
[−]
[src]
pub struct Target<'a> { /* fields omitted */ }
The pod and service within which to execute a command. The lifetime
'a
needs to be longer than the useful lifetime of this Target
.
Methods
impl<'a> Target<'a>
[src]
fn new(project: &'a Project, ovr: &'a Override, pod_name: &'a str, service_name: &'a str) -> Result<Target<'a>>
Create a new Target
, looking up the underlying pod and service
objects.
fn ovr(&self) -> &Override
The active override for the command we want to run.
fn pod(&self) -> &Pod
The pod for this target.
fn service_name(&self) -> &str
The service name for this target.
fn service(&self) -> &Service
The Service
object for this target.