TmpfsMount Class

A tmpfs (in-memory) mount inside the container.

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

Constructors

NameDescription
TmpfsMount(string)A tmpfs (in-memory) mount inside the container.

TmpfsMount(string)

TmpfsMount.cs

A tmpfs (in-memory) mount inside the container.

public TmpfsMount(string Target)

Parameters

Target string
The path inside the container.

Properties

NameDescription
Meziantou.Framework.TemporaryContainers.IMount.ContainerPath
ModeGets the permissions of the root of the mount. null keeps the default of the runtime (1777).
SizeGets the maximum size of the mount, in bytes. null keeps the default of the runtime, which is half of the memory of the host on Linux.
TargetThe path inside the container.

Meziantou.Framework.TemporaryContainers.IMount.ContainerPath

TmpfsMount.cs
string IMount.ContainerPath { get; }

Property value

string

No documentation is available.

Gets the permissions of the root of the mount. null keeps the default of the runtime (1777).

public UnixFileMode? Mode { get; init; }

Property value

UnixFileMode?

Remarks

Apple's container runtime does not take options for a tmpfs mount.

Gets the maximum size of the mount, in bytes. null keeps the default of the runtime, which is half of the memory of the host on Linux.

public long? Size { get; init; }

Property value

long?

Remarks

Apple's container runtime does not take options for a tmpfs mount.

The path inside the container.

public string Target { get; init; }

Property value

string

Methods

NameDescription
Deconstruct(string)
Equals(TmpfsMount?)
Equals(object?)
GetHashCode()
ToString()

Deconstruct(string)

public void Deconstruct(out string Target)

Parameters

Target string

No documentation is available.

Equals overloads

Equals(TmpfsMount?)

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

operator ==(TmpfsMount?, TmpfsMount?)

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

Parameters

left TmpfsMount?
right TmpfsMount?

Returns

bool

No documentation is available.

operator !=(TmpfsMount?, TmpfsMount?)

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

Parameters

left TmpfsMount?
right TmpfsMount?

Returns

bool

No documentation is available.