Class HostFolders
Enumerates the paths of important directories on cluster host servers.
Namespace: Neon.SSH
Assembly: Neon.SSH.dll
Syntax
public static class HostFolders
Remarks
note
Although these constants are referenced by C# code, Linux scripts are likely to hardcode these strings. You should do a search and replace whenever you change any of these values.
note
Changing any of these will likely break [neon-cli] interactions with existing clusters that use the previous folder path. Be ver sure you know what you're doing when you make changes.
Fields
Tmpfs
Root folder on the local tmpfs (shared memory) folder where cluster will persist misc temporary files.
Declaration
public const string Tmpfs = "/dev/shm/neonssh"
Field Value
Type | Description |
---|---|
string |
Methods
Download(string)
Path to the user download directory.
Declaration
public static string Download(string username)
Parameters
Type | Name | Description |
---|---|---|
string | username | The username. |
Returns
Type | Description |
---|---|
string | The directory path. |
Exec(string)
The user folder where cluster tools can upload, unpack, and then execute CommandBundles as well as store temporary command output files.
Declaration
public static string Exec(string username)
Parameters
Type | Name | Description |
---|---|---|
string | username | The username. |
Returns
Type | Description |
---|---|
string | The directory path. |
Home(string)
Path to a user archive directory.
Declaration
public static string Home(string username)
Parameters
Type | Name | Description |
---|---|---|
string | username | The username. |
Returns
Type | Description |
---|---|
string | The directory path. |
NeonHome(string)
Path to a user's neon home directory.
Declaration
public static string NeonHome(string username)
Parameters
Type | Name | Description |
---|---|---|
string | username | The username. |
Returns
Type | Description |
---|---|
string | The directory path. |
Upload(string)
Path to a user upload directory.
Declaration
public static string Upload(string username)
Parameters
Type | Name | Description |
---|---|---|
string | username | The username. |
Returns
Type | Description |
---|---|
string | The directory path. |