Struct docker_compose::v2::File
[−]
[src]
pub struct File { pub services: BTreeMap<String, Service>, pub networks: BTreeMap<String, Network>, // some fields omitted }
A docker-compose.yml
file.
Fields
services: BTreeMap<String, Service>
The individual services which make up this app.
networks: BTreeMap<String, Network>
The networks used by this app.
Methods
impl File
[src]
fn read<R>(r: R) -> Result<Self, Error> where R: Read
Read a file from an input stream containing YAML.
fn write<W>(&self, w: &mut W) -> Result<(), Error> where W: Write
Write a file to an output stream as YAML.
fn read_from_path<P>(path: P) -> Result<Self, Error> where P: AsRef<Path>
Read a file from the specified path.
fn write_to_path<P>(&self, path: P) -> Result<(), Error> where P: AsRef<Path>
Write a file to the specified path.
fn inline_all(&mut self, base: &Path) -> Result<(), Error>
Inline all our external resources, such as env_files
, looking up
paths relative to base
.
fn make_standalone(&mut self, base: &Path) -> Result<(), Error>
Convert this file to a standalone file, with no dependencies on the current environment or any external files. This does not lock down the image versions used in this file.
Trait Implementations
impl Eq for File
[src]
impl PartialEq for File
[src]
fn eq(&self, __arg_0: &File) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &File) -> bool
This method tests for !=
.
impl Clone for File
[src]
fn clone(&self) -> File
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for File
[src]
impl InterpolateAll for File
[src]
Recursive merge all fields in the structure.
fn interpolate_all(&mut self) -> Result<(), InterpolationError>
Recursively walk over this type, interpolating all RawOr
values containing references to the environment. The default implementation leaves a value unchanged. Read more
impl MergeOverride for File
[src]
Recursive merge all fields in the structure.
fn merge_override(&self, ovr: &Self) -> Self
Given this value and an override value, merge the override value into this one, producing a new value. Read more