VolumeMount Class

A named volume mounted into the container.

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

Constructors

NameDescription
VolumeMount(string, string, bool)A named volume mounted into the container.

VolumeMount(string, string, bool)

VolumeMount.cs

A named volume mounted into the container.

public VolumeMount(string Name, string Target, bool ReadOnly = false)

Parameters

Name string
The volume name.
Target string
The path inside the container.
ReadOnly bool
Whether the mount is read-only.

Properties

NameDescription
Meziantou.Framework.TemporaryContainers.IMount.ContainerPath
NameThe volume name.
ReadOnlyWhether the mount is read-only.
TargetThe path inside the container.

Meziantou.Framework.TemporaryContainers.IMount.ContainerPath

VolumeMount.cs
string IMount.ContainerPath { get; }

Property value

string

No documentation is available.

The volume name.

public string Name { get; init; }

Property value

string

Whether the mount is read-only.

public bool ReadOnly { get; init; }

Property value

bool

The path inside the container.

public string Target { get; init; }

Property value

string

Methods

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

Deconstruct(string, string, bool)

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

Parameters

Name string
Target string
ReadOnly bool

No documentation is available.

Equals overloads

Equals(VolumeMount?)

public bool Equals(VolumeMount? other)
Parameters
other VolumeMount?
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 ==(VolumeMount?, VolumeMount?)
operator !=(VolumeMount?, VolumeMount?)

operator ==(VolumeMount?, VolumeMount?)

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

Parameters

left VolumeMount?
right VolumeMount?

Returns

bool

No documentation is available.

operator !=(VolumeMount?, VolumeMount?)

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

Parameters

left VolumeMount?
right VolumeMount?

Returns

bool

No documentation is available.