BindMount Class

A bind mount that maps a host path into the container.

public sealed class BindMount : IMount, IEquatable<BindMount>
Implements

Constructors

NameDescription
BindMount(string, string, bool)A bind mount that maps a host path into the container.

BindMount(string, string, bool)

BindMount.cs

A bind mount that maps a host path into the container.

public BindMount(string Source, string Target, bool ReadOnly = false)

Parameters

Source string
The path on the host.
Target string
The path inside the container.
ReadOnly bool
Whether the mount is read-only.

Properties

NameDescription
Meziantou.Framework.TemporaryContainers.IMount.ContainerPath
ReadOnlyWhether the mount is read-only.
SourceThe path on the host.
TargetThe path inside the container.

Meziantou.Framework.TemporaryContainers.IMount.ContainerPath

BindMount.cs
string IMount.ContainerPath { get; }

Property value

string

No documentation is available.

ReadOnly

BindMount.cs

Whether the mount is read-only.

public bool ReadOnly { get; init; }

Property value

bool

The path on the host.

public string Source { get; init; }

Property value

string

The path inside the container.

public string Target { get; init; }

Property value

string

Methods

NameDescription
Deconstruct(string, string, bool)
Equals(BindMount?)
Equals(object?)
GetHashCode()
ToString()

Deconstruct(string, string, bool)

public void Deconstruct(out string Source, out string Target, out bool ReadOnly)

Parameters

Source string
Target string
ReadOnly bool

No documentation is available.

Equals overloads

Equals(BindMount?)

public bool Equals(BindMount? other)
Parameters
other BindMount?
Returns

bool

No documentation is available.

Equals(object?)

public override bool Equals(object? obj)
Parameters
obj object?
Returns

bool

No documentation is available.

GetHashCode()

public override int GetHashCode()

Returns

int

No documentation is available.

ToString()

public override string ToString()

Returns

string

No documentation is available.

Operators

NameDescription
operator ==(BindMount?, BindMount?)
operator !=(BindMount?, BindMount?)

operator ==(BindMount?, BindMount?)

public static bool operator ==(BindMount? left, BindMount? right)

Parameters

left BindMount?
right BindMount?

Returns

bool

No documentation is available.

operator !=(BindMount?, BindMount?)

public static bool operator !=(BindMount? left, BindMount? right)

Parameters

left BindMount?
right BindMount?

Returns

bool

No documentation is available.