Builder

data class Builder(var deferred: Boolean = Settings.DEFAULT_DEFERRED_READS, var readOnly: Boolean = true, var caseSensitive: Boolean = true, var enableSymlinks: Boolean = false, var root: String = ROOT_SYSTEM_DEFAULT, var workingDirectory: String = DEFAULT_CWD, var policy: GuestVFSPolicy = GuestVFSPolicy.DEFAULTS, var registry: MutableMap<String, EmbeddedGuestVFSImpl.VfsObjectInfo> = mutableMapOf(), var bundleMapping: MutableMap<Int, EmbeddedGuestVFSImpl.BundleInfo> = mutableMapOf(), bundle: Pair<FilesystemInfo, FileSystem>? = null, paths: List<URI> = emptyList(), files: List<File> = emptyList(), zip: URI? = null, file: URI? = null) : AbstractBaseVFS.VFSBuilder<EmbeddedGuestVFSImpl>

Builder to configure and spawn new embedded VFS implementations.

Builders can be filled out property-wise, or via builder methods.

Parameters

deferred

Whether to defer reading of files into the VFS until they are requested.

readOnly

Whether the file-system should be considered read-only (regardless of backing read-only status).

caseSensitive

Whether the file-system should be considered case-sensitive.

enableSymlinks

Whether to enable support for symbolic links.

root

Root directory of the file-system.

workingDirectory

Working directory of the file-system.

policy

Policy to apply to moderate guest I/O access to the file-system in question.

registry

Registry of known file paths which are consulted for deferred reads.

bundleMapping

Mapping of bundle IDs to bundle metadata; consulted for deferred reads.

bundle

Bundle file to load the file-system from.

paths

Paths to the bundle files, as regular host-filesystem paths, or classpath:-prefixed URIs for resources which should be fetched from the host app class-path.

files

Files to load as file-system bundles.

Constructors

Link copied to clipboard
constructor(deferred: Boolean = Settings.DEFAULT_DEFERRED_READS, readOnly: Boolean = true, caseSensitive: Boolean = true, enableSymlinks: Boolean = false, root: String = ROOT_SYSTEM_DEFAULT, workingDirectory: String = DEFAULT_CWD, policy: GuestVFSPolicy = GuestVFSPolicy.DEFAULTS, registry: MutableMap<String, EmbeddedGuestVFSImpl.VfsObjectInfo> = mutableMapOf(), bundleMapping: MutableMap<Int, EmbeddedGuestVFSImpl.BundleInfo> = mutableMapOf(), bundle: Pair<FilesystemInfo, FileSystem>? = null, paths: List<URI> = emptyList(), files: List<File> = emptyList(), zip: URI? = null, file: URI? = null)

Types

Link copied to clipboard

Properties

Link copied to clipboard
Link copied to clipboard
open override var caseSensitive: Boolean
Link copied to clipboard
open override var deferred: Boolean
Link copied to clipboard
open override var enableSymlinks: Boolean
Link copied to clipboard
open override var policy: GuestVFSPolicy
Link copied to clipboard
open override var readOnly: Boolean
Link copied to clipboard
Link copied to clipboard
open override var root: String
Link copied to clipboard
open override var workingDirectory: String

Functions

Link copied to clipboard
open override fun build(): EmbeddedGuestVFSImpl

Collect all the current settings, apply defaults where needed, and construct the requested VFS implementation.

Link copied to clipboard

Set the files to load the bundle data from; expected to be a valid and readable regular file, which is a tarball, a compressed tar-ball, or a bundle in Elide's internal format.

Link copied to clipboard

Set the bundles which should be consulted for deferred reads.

Link copied to clipboard

Set the paths to load the bundle file from; can be a regular file-path, or a classpath:-prefixed path to load a resource from the host app classpath.

Link copied to clipboard

Set the caseSensitive status of the file-system managed by this VFS implementation.

Link copied to clipboard

Set the deferred status of the file-system managed by this VFS implementation.

Link copied to clipboard

Set the enableSymlinks setting of the file-system managed by this VFS implementation.

Link copied to clipboard

Set the target file to load the bundle data from; expected to be a valid and readable/writable regular file, and it will be created if it doesn't exist.

Link copied to clipboard

Set the active policy for guest I/O operations.

Link copied to clipboard

Set the readOnly status of the file-system managed by this VFS implementation.

Link copied to clipboard

Set the registry of known paths, which is used for deferred reads and writes.

Link copied to clipboard

Set the root path of the file-system managed by this VFS implementation.

Link copied to clipboard

Set the initial workingDirectory path of the file-system managed by this VFS implementation.

Link copied to clipboard

Set the zip to load the bundle data from; expected to be a valid and readable regular file, which is Zip compressed.