Class ProfileFile
- Namespace
- OpenShell
- Assembly
- OpenShell.Sdk.dll
EXPERIMENTAL: non-secret content served at a virtual sandbox path. May change or be removed.
public sealed record ProfileFile : IEquatable<ProfileFile>
- Inheritance
-
ProfileFile
- Implements
- Inherited Members
Constructors
ProfileFile(string, string, string)
EXPERIMENTAL: non-secret content served at a virtual sandbox path. May change or be removed.
public ProfileFile(string Path, string Content, string EnvVar = "")
Parameters
PathstringThe virtual file name below
/run/openshell/providers/<provider>/.ContentstringA UTF-8 template; only
{{config.KEY}}references are supported.EnvVarstringAn optional environment variable that receives the absolute virtual path.
Properties
Content
A UTF-8 template; only {{config.KEY}} references are supported.
public string Content { get; init; }
Property Value
EnvVar
An optional environment variable that receives the absolute virtual path.
public string EnvVar { get; init; }
Property Value
Path
The virtual file name below /run/openshell/providers/<provider>/.
public string Path { get; init; }