Table of Contents

Class HostProfile

Namespace
Valheim.Testing.Game
Assembly
Valheim.Testing.Game.dll

One machine or container. Kind is local, ssh or container.

public sealed class HostProfile
Inheritance
object
HostProfile

Properties

ConnectSeconds

public int ConnectSeconds { get; set; }

Property Value

int

Container

container: its name or id on this machine's Docker daemon.

public string? Container { get; set; }

Property Value

string

Destination

ssh: user@host, ssh://user@host:port or an ssh-config alias.

public string? Destination { get; set; }

Property Value

string

Docker

container: the Docker CLI executable.

public string Docker { get; set; }

Property Value

string

Kind

public string Kind { get; set; }

Property Value

string

Lock

The host lock's directory, an absolute path on the host. Every run takes it before touching the host.

public string Lock { get; set; }

Property Value

string

Platform

windows, linux or macos: the host's own OS (a container's is linux).

public string Platform { get; set; }

Property Value

string

Port

ssh: the port; 0 leaves it to the destination or the ssh config.

public int Port { get; set; }

Property Value

int

Shell

pwsh (PowerShell 7) on a Windows host, bash on a macOS or Linux host.

public string Shell { get; set; }

Property Value

string

Ssh

ssh: the OpenSSH client executable.

public string Ssh { get; set; }

Property Value

string

SshOptions

ssh: extra -o options as Name=value, the value taken literally (spaces, quotes and backslashes are passed quoted for ssh; a ProxyCommand, KnownHostsCommand or LocalCommand as written, since ssh runs it with the user's shell).

public string[] SshOptions { get; set; }

Property Value

string[]

User

container: the user scripts run as.

public string? User { get; set; }

Property Value

string