Table of Contents

Class RootfsDriverConfig

Namespace
OpenShell
Assembly
OpenShell.Sdk.dll

Builds the template.driver_config JSON that references a staged rootfs archive.

public static class RootfsDriverConfig
Inheritance
RootfsDriverConfig
Inherited Members

Fields

TokenField

The driver-config field naming the staging slot.

public const string TokenField = "rootfs_tar_staging_token"

Field Value

string

VmDriver

The driver key that receives the token. Only template.driver_config.<driver> reaches the driver.

public const string VmDriver = "vm"

Field Value

string

Methods

WithStagingToken(string, string?, string)

Merges the token into driver_config.<driver>, keeping any settings already in baseJson. Throws when the caller already set a token, so a stolen or stale one is never silently replaced.

public static string WithStagingToken(string stagingToken, string? baseJson = null, string driver = "vm")

Parameters

stagingToken string
baseJson string
driver string

Returns

string