ContainerFileSystemCallbackContext
Handle
interface ContainerFileSystemCallbackContext { readonly model: IResource; readonly services: IServiceProvider; createCertificateFile( name: string, contents?: string, sourcePath?: string, owner?: number, group?: number, mode?: number, continueOnError?: boolean): ContainerFileSystemItem; createDirectory( name: string, entries: ContainerFileSystemItem[], owner?: number, group?: number, mode?: number): ContainerFileSystemItem; createFile( name: string, contents?: string, sourcePath?: string, owner?: number, group?: number, mode?: number, continueOnError?: boolean): ContainerFileSystemItem;}5 members
Properties
property
modelIResource getThe app model resource the callback is associated with.
property
servicesIServiceProvider getA `IServiceProvider` that can be used to resolve services in the callback.
Methods
method
createCertificateFile Creates a PEM container certificate file entry with the OpenSSL subject-hash symlink.
createCertificateFile( name: string, contents?: string, sourcePath?: string, owner?: number, group?: number, mode?: number, continueOnError?: boolean): ContainerFileSystemItemParameters
namestringThe simple file name (no path separators).contentsstringoptionalThe inline PEM-encoded contents of the certificate. Mutually exclusive with `sourcePath`.sourcePath stringoptionalAn absolute path to a PEM file on the host to copy. Mutually exclusive with `contents`.ownernumberoptionalThe owner UID, or `null` to inherit.groupnumberoptionalThe group GID, or `null` to inherit.modenumberoptionalThe Unix file mode as an integer (for example `0o644`), or `null` to inherit.continueOnError booleanoptionalWhether to ignore errors creating this file.Returns
ContainerFileSystemItem method
createDirectory Creates a container directory entry containing the specified child entries.
createDirectory( name: string, entries: ContainerFileSystemItem[], owner?: number, group?: number, mode?: number): ContainerFileSystemItemParameters
namestringThe simple directory name (no path separators).entriesContainerFileSystemItem[] The child entries (files and/or directories) created via this context.ownernumberoptionalThe owner UID, or `null` to inherit.groupnumberoptionalThe group GID, or `null` to inherit.modenumberoptionalThe Unix file mode as an integer (for example `0o755`), or `null` to inherit.Returns
ContainerFileSystemItem method
createFile Creates a container file entry with inline contents or a host source path.
createFile( name: string, contents?: string, sourcePath?: string, owner?: number, group?: number, mode?: number, continueOnError?: boolean): ContainerFileSystemItemParameters
namestringThe simple file name (no path separators).contentsstringoptionalThe inline UTF-8 contents of the file. Mutually exclusive with `sourcePath`.sourcePath stringoptionalAn absolute path to a file on the host to copy. Mutually exclusive with `contents`.ownernumberoptionalThe owner UID, or `null` to inherit.groupnumberoptionalThe group GID, or `null` to inherit.modenumberoptionalThe Unix file mode as an integer (for example `0o644`), or `null` to inherit.continueOnError booleanoptionalWhether to ignore errors creating this file.Returns
ContainerFileSystemItem