MCPcopy
hub / github.com/firecracker-microvm/firecracker-containerd / MountableStubDrive

Interface MountableStubDrive

runtime/drive_handler.go:244–250  ·  view source on GitHub ↗

A MountableStubDrive represents a stub drive that is ready to be patched and mounted once PatchAndMount is called.

Source from the content-addressed store, hash-verified

242// A MountableStubDrive represents a stub drive that is ready to be patched and mounted
243// once PatchAndMount is called.
244type MountableStubDrive interface {
245 PatchAndMount(
246 requestCtx context.Context,
247 machine firecracker.MachineIface,
248 driveMounter drivemount.DriveMounterService,
249 ) error
250}
251
252func stubPathToDriveID(stubPath string) string {
253 // Firecracker resource ids "can only contain alphanumeric characters and underscores", so

Callers 3

mountDrivesMethod · 0.65
ReserveMethod · 0.65
TestDriveMountStubsFunction · 0.65

Implementers 1

stubDriveruntime/drive_handler.go

Calls

no outgoing calls

Tested by

no test coverage detected