create

abstract fun create(): VFS

Create a VFS implementation with no backing data, and configured with defaults.

Return

Empty and default-configured VFS implementation.


abstract fun create(configurator: Builder.() -> Unit): VFS

Create a VFS implementation configured with the provided configurator.

After configurator runs, the resulting builder is built and returned.

Return

Build implementation of type VFS.

Parameters

configurator

Function to execute, in the context of Builder, which prepares the VFS implementation.


abstract fun create(config: EffectiveGuestVFSConfig): VFS

Create a VFS implementation configured with the provided effective config.

Return

VFS implementation built with the provided config.

Parameters

config

Configuration to provide to the VFS implementation.


abstract fun create(builder: AbstractBaseVFS.VFSBuilder<VFS>): VFS

Create a VFS implementation from the provided builder.

Return

VFS implementation built with the provided builder.

Parameters

builder

Builder to create the VFS implementation from.