# Functions
ActivateLayer will find the layer with the given id and mount it's filesystem.
CreateLayer creates a new, empty, read-only layer on the filesystem based on the parent layer provided.
CreateScratchLayer creates and populates new read-write layer for use by a container.
DeactivateLayer will dismount a layer that was mounted via ActivateLayer.
DestroyLayer will remove the on-disk files representing the layer with the given path, including that layer's containing folder, if any.
ExpandScratchSize expands the size of a layer to at least size bytes.
ExportLayer will create a folder at exportFolderPath and fill that folder with the transport format version of the layer identified by layerId.
GetLayerMountPath will look for a mounted layer with the given path and return the path at which that layer can be accessed.
GetSharedBaseImages will enumerate the images stored in the common central image store and return descriptive info about those images for the purpose of registering them with the graphdriver, graph, and tagstore.
GrantVmAccess adds access to a file for a given VM.
ImportLayer will take the contents of the folder at importFolderPath and import that into a layer with the id layerId.
LayerExists will return true if a layer with the given id exists and is known to the system.
LayerID returns the layer ID of a layer on disk.
NameToGuid converts the given string into a GUID using the algorithm in the Host Compute Service, ensuring GUIDs generated with the same string are common across all clients.
NewLayerReader returns a new layer reader for reading the contents of an on-disk layer.
NewLayerWriter returns a new layer writer for creating a layer on disk.
PrepareLayer finds a mounted read-write layer matching path and enables the the filesystem filter for use on that layer.
ProcessBaseLayer post-processes a base layer that has had its files extracted.
ProcessUtilityVMImage post-processes a utility VM image that has had its files extracted.
UnprepareLayer disables the filesystem filter for the read-write layer with the given id.
# Structs
FilterLayerReader provides an interface for extracting the contents of an on-disk layer.
FilterLayerWriter provides an interface to write the contents of a layer to the file system.
To pass into syscall, we need a struct matching the following:
typedef struct _WC_LAYER_DESCRIPTOR {
//
// The ID of the layer
//
GUID LayerId;
//
// Additional flags
//
union {
struct {
ULONG Reserved : 31;
ULONG Dirty : 1; // Created from sandbox as a result of snapshot
};
ULONG Value;
} Flags;
//
// Path to the layer root directory, null-terminated
//
PCWSTR Path;
} WC_LAYER_DESCRIPTOR, *PWC_LAYER_DESCRIPTOR;
*/.
# Interfaces
No description provided by the author
LayerWriter is an interface that supports writing a new container image layer.