Struct cage::Pod [] [src]

pub struct Pod { /* fields omitted */ }

A pod, specified by pods/$NAME.yml and zero or more pods/targets/*/*.yml targets that we can apply to it.

Methods

impl Pod
[src]

Get the name of this pod.

Get the type of this pod.

Get the names of the services declared in this pod.

Is this pod enabled in the specified target?

The base directory for our relative paths.

The path to the top-level file defining this pod, relative to the base_dir specified at creation time.

The top-level file defining this pod. This is normalized to include the appropriate env_file entries, but if you want to do more complicated transformations, you'll need to clone it with to_owned() first.

The path to the specificied target file for this pod.

The dc::File for this target.

Return the base file and the target file merged into a single docker-compose.yml file.

All the targets associated with this pod.

Iterate over all dc::File objects associated with this pod, including both the main file() and all the files in target_files().

Look up a service by name.

Like service, but returns an error if the service can't be found.

Command-line -p and -f arguments that we'll pass to docker-compose to describe this file.

Trait Implementations

impl Debug for Pod
[src]

Formats the value using the given formatter.