• NeonSDK
  • NeonKUBE
Search Results for

    Show / Hide Table of Contents
    • Neon
      • Build
    • Neon.Blazor
      • BlazorHelper
      • BodyOutlet
      • ClientRenderContext
      • DOMRectReadOnly
      • EventHandlers
      • FileDownloader
      • HtmlElement
      • IRenderContext
      • IntersectionChangedEventArgs
      • IntersectionObserver
      • IntersectionObserverContext
      • MobileDetector
      • NeonBlazorExtensions
      • ServerRenderContext
      • SwipeDirection
      • SwipeHandler
    • Neon.Blazor.Analyzers
      • SvgGenerator
      • SvgGenerator.Svg
    • Neon.BuildInfo
      • ThisAssembly
      • ThisAssembly.Git
      • ThisAssembly.Git.BaseVersion
      • ThisAssembly.Git.SemVer
    • Neon.CSharp
      • CSharpHelper
      • CompilerErrorException
      • MetadataReferences
    • Neon.Cassandra
      • KeyspaceStatus
      • RowSetExtensions
      • SchemaManager
      • SchemaManagerException
      • SchemaStatus
      • SessionExtensions
    • Neon.Collections
      • ArgDictionary
      • Bits
      • IObjectDictionary
      • NiceDictionary<TKey, TValue>
      • ObjectDictionary
    • Neon.Common
      • AppDomainExtensions
      • Block
      • BlockArray
      • ByteEncoding
      • ByteUnits
      • CommandLine
      • CommandLine.OptionDefinition
      • CommandLine.Redactor
      • CpuArchitecture
      • Credentials
      • DateTimeExtensions
      • EnumExtensions
      • EnvironmentParser
      • EnvironmentParser.Parser<T>
      • EnvironmentParser.Validator<T>
      • EnvironmentParser.VariableSource
      • ExceptionExtensions
      • ExecuteException
      • ExecuteResponse
      • GlobPattern
      • HexDumpOption
      • HttpClientExtensions
      • HttpResponseMessageExtensions
      • IEnumerableExtensions
      • ILabeled
      • IOExtensions
      • IServiceContainer
      • IStaticDirectoryExtensions
      • LabelSelector
      • LabelSelectorOptions
      • LabelSelector<TItem>
      • NeonAssemblyExtensions
      • NeonExtendedHelper
      • NeonHelper
      • NetFramework
      • NewtonsoftExtensions
      • NotReadyException
      • ProcessExtensions
      • ProgramEntrypoint
      • ProgramEntrypointAsync
      • ProgramExitException
      • ProgramRunner
      • RandomExtensions
      • ReflectionExtensions
      • SemanticVersion
      • ServiceContainer
      • StaticZipOptions
      • StringBuilderExtensions
      • StringExtensions
      • Stub
      • Stub.Value
      • TaskExtensions
      • TimeSpanExtensions
      • ToolException
      • TriState
      • WeakEventController
      • WindowsEdition
      • WindowsFeatureStatus
      • YamlDotNetExtensions
    • Neon.Cryptography
      • AesCipher
      • CryptoExtensions
      • CryptoHelper
      • NeonVault
      • Wildcard
    • Neon.Csv
      • CsvReader
      • CsvTableReader
      • CsvTableWriter
      • CsvWriter
    • Neon.Data
      • DateTimeJsonConverter
      • DateTimeOffsetJsonConverter
      • IEnhancedJsonConverter
      • IGeneratedServiceClient
      • IPersistableType
      • IPersistableType<T>
      • IRoundtripData
      • IntegerEnumConverter<TEnum>
      • NotifyPropertyChanged
      • RoundtripDataFactory
      • RoundtripDataHelper
      • TimeSpanJsonConverter
      • VersionJsonConverter
    • Neon.Deployment
      • AwsCli
      • DeploymentException
      • DeploymentHelper
      • DownloadManifest
      • DownloadPart
      • DownloadProgressDelegate
      • DownloadProgressType
      • GitHub
      • GitHubActionsApi
      • GitHubPackage
      • GitHubPackageApi
      • GitHubPackageType
      • GitHubPackageVersion
      • GitHubPackageVisibility
      • GitHubReleaseApi
      • GitHubRepoPath
      • GitHubTagApi
      • IProfileClient
      • IProfileRequest
      • IProfileResponse
      • MaintainerProfile
      • NotifyClient
      • OnePassword
      • OnePasswordException
      • ProfileException
      • ProfileHandlerResult
      • ProfileRequest
      • ProfileResponse
      • ProfileServer
      • ProfileStatus
      • XenServer
    • Neon.Deployment.CodeSigning
      • AzureProfile
      • CodeSigner
      • UsbTokenProfile
    • Neon.Diagnostics
      • AssertException
      • ConfigExtensions
      • ConsoleJsonLogExporter
      • ConsoleJsonLogExporterOptions
      • ConsoleTextLogExporter
      • ConsoleTextLogExporterOptions
      • ExceptionInfo
      • FileLogExporter
      • FileLogExporterFormat
      • FileLogExporterOptions
      • LogAsTraceProcessor
      • LogAsTraceProcessorOptions
      • LogAttributeNames
      • LogAttributes
      • LogEvent
      • LogEventInterceptor
      • LoggerExtensions
      • NullLogger
      • TelemetryHub
      • TelemetrySpanEventNames
      • TelemetrySpanExtensions
    • Neon.Docker
      • DockerClient
      • DockerNetwork
      • DockerNetworkContainer
      • DockerNetworkIpam
      • DockerNode
      • DockerNodeManagerStatus
      • DockerResponse
      • DockerSettings
      • DockerVolume
      • NetworkCreateResponse
      • ServiceBindOptions
      • ServiceConfig
      • ServiceContainerSpec
      • ServiceCredentialSpec
      • ServiceDetails
      • ServiceDiscreteResourceSpec
      • ServiceDnsConfig
      • ServiceEndpoint
      • ServiceEndpointMode
      • ServiceEndpointPortConfig
      • ServiceEndpointSpec
      • ServiceFile
      • ServiceGenericResources
      • ServiceGlobalSchedulingMode
      • ServiceHealthCheck
      • ServiceIsolationMode
      • ServiceListResponse
      • ServiceLogDriver
      • ServiceMode
      • ServiceMount
      • ServiceMountBindPropagation
      • ServiceMountConsistency
      • ServiceMountType
      • ServiceNamedResourceSpec
      • ServiceNetwork
      • ServicePlacement
      • ServicePlacementPreferences
      • ServicePlacementSpreadSettings
      • ServicePlatform
      • ServicePortMode
      • ServicePortProtocol
      • ServicePrivileges
      • ServiceReplicatedSchedulingMode
      • ServiceResourceSettings
      • ServiceResources
      • ServiceRestartCondition
      • ServiceRestartPolicy
      • ServiceRollbackConfig
      • ServiceRollbackFailureAction
      • ServiceRollbackOrder
      • ServiceSELinuxContext
      • ServiceSchedulingMode
      • ServiceSecret
      • ServiceSpec
      • ServiceTaskTemplate
      • ServiceTmpfsOptions
      • ServiceUpdateConfig
      • ServiceUpdateFailureAction
      • ServiceUpdateOrder
      • ServiceUpdateState
      • ServiceUpdateStatus
      • ServiceVersion
      • ServiceVirtualIP
      • ServiceVolumeDriverConfig
      • ServiceVolumeOptions
      • VolumeListResponse
    • Neon.GitHub
      • GitExtensions
      • GitHubCredentials
      • GitHubRepo
      • LocalRepoApi
      • NoLocalRepositoryException
      • RemoteRepoApi
      • RemoteRepoBranchApi
      • RemoteRepoIssueApi
      • RemoteRepoIssueCommentApi
      • RemoteRepoPath
      • RemoteRepoReleaseApi
      • RemoteRepoTagApi
    • Neon.HyperV
      • HyperVClient
      • HyperVDriverType
      • HyperVException
      • NetAdapter
      • VirtualDrive
      • VirtualIPAddress
      • VirtualMachine
      • VirtualMachineNetworkAdapter
      • VirtualMachineState
      • VirtualNat
      • VirtualSwitch
      • VirtualSwitchType
    • Neon.IO
      • BlockStream
      • FixedLengthStream
      • IStaticDirectory
      • IStaticFile
      • LineEnding
      • LinuxPath
      • LinuxPermissions
      • PreprocessReader
      • RelayStream
      • StaticDirectoryBase
      • StaticFileBase
      • SubStream
      • TempFile
      • TempFolder
    • Neon.JsonConverters
      • JsonDateTimeConverter
      • JsonGenericConverter<T>
      • JsonNullableDateTimeConverter
    • Neon.ModelGen
      • ActionResult<T>
      • ApiVersion
      • ApiVersionAttribute
      • BodyStreamAttribute
      • ControllerValidationAttribute
      • DataModelAttribute
      • EnumMember
      • FromBodyAttribute
      • FromHeaderAttribute
      • FromQueryAttribute
      • FromRouteAttribute
      • GeneratedClientAttribute
      • GeneratedMethodAttribute
      • GeneratedParamAttribute
      • HashSourceAttribute
      • HttpAttribute
      • HttpDeleteAttribute
      • HttpGetAttribute
      • HttpHeadAttribute
      • HttpOptionsAttribute
      • HttpPatchAttribute
      • HttpPostAttribute
      • HttpPutAttribute
      • IActionResult
      • ModelGenerator
      • ModelGeneratorOutput
      • ModelGeneratorSettings
      • NoCodeGenAttribute
      • NoControllerValidationAttribute
      • PassAs
      • PersistableAttribute
      • PersistableKeyAttribute
      • RouteAttribute
      • ServiceModelAttribute
      • TargetAttribute
      • UxFrameworks
    • Neon.Net
      • HttpApiException
      • HttpException
      • JsonClient
      • JsonClientPayload
      • JsonResponse
      • Jwt
      • LocalHostSection
      • NetConst
      • NetHelper
      • NetworkCidr
      • NetworkConfiguration
      • NetworkException
      • NetworkPorts
      • Pinger
      • ReachableHost
      • ReachableHostMode
      • StreamDocument
    • Neon.Postgres
      • ConnectionExtensions
      • DatabaseStatus
      • PreparedCommand
      • ReaderAsyncEnumerator
      • ReaderEnumerator
      • ReaderExtensions
      • SchemaManager
      • SchemaManagerException
      • SchemaStatus
    • Neon.Retry
      • ExponentialRetryPolicy
      • IRetryPolicy
      • LinearRetryPolicy
      • NoRetryPolicy
      • RetryPolicy
      • RetryPolicyBase
      • RetryTransientArgs
      • TransientDetector
      • TransientException
    • Neon.Roslyn
      • DisplayFormat
      • DocumentationComment
      • DocumentationItem
      • MetadataLoadContext
      • RoslynAssembly
      • RoslynConstructorInfo
      • RoslynCustomAttributeData
      • RoslynExtensions
      • RoslynFieldInfo
      • RoslynMethodInfo
      • RoslynParameterInfo
      • RoslynPropertyInfo
      • RoslynType
      • SharedUtilities
    • Neon.Roslyn.Xunit
      • AdditionalSourceText
      • CompilationOptions
      • CompilationOptionsProvider
      • TestCompilation
      • TestCompilationAssertions
      • TestCompilationBuilder
      • TestCompilationBuilderExtensions
      • TestCompilationExtensions
    • Neon.SSH
      • CommandBundle
      • CommandFile
      • CommandResponse
      • HostFolders
      • IBashCommandFormatter
      • ILinuxSshProxy
      • LinuxDiskInfo
      • LinuxDiskPartition
      • LinuxSshProxy
      • LinuxSshProxy<TMetadata>
      • NamespaceDoc
      • RemoteCommandException
      • RunOptions
      • SshCredentials
      • SshExtensions
      • SshProxyException
    • Neon.Service
      • LogMetricsProcessor
      • MetricsMode
      • MetricsOptions
      • NeonService
      • NeonServiceOptions
      • NeonServiceStatus
      • OtelConfigExtensions
      • OtlpCollectorChecker
      • ProcessTerminator
      • ServiceApiContact
      • ServiceApiInfo
      • ServiceApiLicense
      • ServiceDependencies
      • ServiceDescription
      • ServiceEndpoint
      • ServiceEndpointProtocol
      • ServiceEndpoints
      • ServiceMap
    • Neon.SignalR
      • DependencyInjectionExtensions
      • DnsCache
      • GroupAction
      • GroupCommand
      • IDnsCache
      • Invocation
      • NatsHubLifetimeManager<THub>
      • ProxyConfig
      • ServiceCollectionExtensions
      • ServiceDiscovey
      • SignalrProxyMiddleware
      • SignalrProxyMiddlewareExtensions
      • TracerProviderBuilderExtensions
    • Neon.Tailwind
      • ClickOffEventHandler
      • ComponentEventArgs<TSender>
      • ComponentEventArgs<TSender, TEventArgs>
      • DisclosureState
      • EventHandlerComponentBase<TComponent>
      • HeadlessButton
      • HeadlessDialog
      • HeadlessDialogPanel
      • HeadlessDisclosure
      • HeadlessDisclosureButton
      • HeadlessDisclosurePanel
      • HeadlessListboxButton<TValue>
      • HeadlessListboxLabel<TValue>
      • HeadlessListboxOption<TValue>
      • HeadlessListboxOptions<TValue>
      • HeadlessListbox<TValue>
      • HeadlessMenu
      • HeadlessMenuButton
      • HeadlessMenuItem
      • HeadlessMenuItems
      • HeadlessSwitch
      • HeadlessSwitchGroup
      • HeadlessSwitchLabel
      • IPortalBinder
      • KeyDownEventHandler
      • KeyboardKey
      • ListboxFocus
      • ListboxState
      • MenuFocus
      • MenuState
      • Portal
      • PortalBinder
      • PortalContent
      • SearchAssistant
      • TailwindExtensions
      • Transition
      • TransitionGroup
      • TransitionState
    • Neon.Tasks
      • Async
      • AsyncAutoResetEvent
      • AsyncManualResetEvent
      • AsyncMutex
      • AsyncPeriodicTask
      • AsyncReaderWriterLock
      • AsyncReentrantMutex
      • AsyncTimer
      • IAsyncFuture
      • IAsyncFuture<T>
      • NonDisposableTask
      • NonDisposableTask<T>
      • SyncContext
      • SyncContextMode
    • Neon.Temporal
      • ActivityHelper
      • ActivityLogEnricher
      • TemporalEnricherTagNames
      • WorkflowLogEnricher
    • Neon.Time
      • GatedTimer
      • GoDuration
      • PolledTimer
      • RecurringTimer
      • RecurringTimerType
      • SysTime
      • TimeOfDay
    • Neon.WSL
      • Wsl2Proxy
    • Neon.Web
      • AesProtector
      • DataProtectionExtensions
      • NeonController
      • NeonControllerBase
      • RoundTripJsonInputFormatter
      • RoundTripJsonOutputFormatter
      • TracerProviderBuilderExtensions
      • WebHelper
    • Neon.WinTTY
      • ConsoleTTY
    • Neon.Windows
      • MEMORYSTATUSEX
      • PowerShellException
      • Win32
    • Neon.XenServer
      • IXenClient
      • XenClient
      • XenClient.MachineOperations
      • XenClient.StorageOperations
      • XenClient.TemplateOperations
      • XenException
      • XenHostInfo
      • XenObject
      • XenResponse
      • XenStorageRepository
      • XenTempIso
      • XenTemplate
      • XenVirtualDisk
      • XenVirtualMachine
      • XenVmPowerState
    • Neon.Xunit
      • AnsiblePlayResults
      • AnsiblePlayer
      • AnsibleTaskResult
      • AspNetFixture
      • BasicFixture
      • CodeFixture
      • CollectionComparer<T>
      • ComposedFixture
      • ContainerFixture
      • ContainerLimits
      • DockerComposeFixture
      • DockerFixture
      • DockerFixture.ConfigInfo
      • DockerFixture.ContainerInfo
      • DockerFixture.NetworkInfo
      • DockerFixture.SecretInfo
      • DockerFixture.ServiceInfo
      • DockerFixture.StackDefinition
      • DockerFixture.StackInfo
      • DockerFixture.StackService
      • EnvironmentFixture
      • HostsFixture
      • ITestFixture
      • IncompatibleServiceException
      • MaintainerFactAttribute
      • MaintainerTheoryAttribute
      • MockHttpServer
      • MockHttpServerExtensions
      • NatsFixture
      • NatsStreamingFixture
      • NeonServiceFixture<TService>
      • PlatformFactAttribute
      • RepeatAttribute
      • TargetPlatforms
      • TestArea
      • TestCollection
      • TestContext
      • TestFixture
      • TestFixtureStatus
      • TestHelper
      • TestHttpClient
      • TestOutputWriter
      • TestTrait
      • XunitExtensions
    • Neon.Xunit.YugaByte
      • YugaByteFixture
    • Neon.YugaByte
      • YugaByteHelper

    Class LinuxSshProxy

    Uses a SSH/SCP connection to provide access to Linux machines to access files, run commands, etc.

    note

    IMPORTANT: We use this class to manage Ubuntu Linux machines. This will likely work for Debian and other Debian based distros but other distros like Alpine and Red Hat may have problems or may not work at all.

    Inheritance
    object
    LinuxSshProxy
    LinuxSshProxy<TMetadata>
    Namespace: Neon.SSH
    Assembly: Neon.SSH.dll
    Syntax
    public class LinuxSshProxy
    Remarks

    This class includes methods to invoke Linux commands on the node,

    Call Dispose() or Disconnect() to close the connection.

    note

    You can use Clone() to make a copy of a proxy that can be used to perform parallel operations against the same machine.

    Constructors

    LinuxSshProxy(string, IPAddress, SshCredentials, int, TextWriter)

    Constructs a LinuxSshProxy<TMetadata>.

    Declaration
    public LinuxSshProxy(string name, IPAddress address, SshCredentials credentials, int port = 22, TextWriter logWriter = null)
    Parameters
    Type Name Description
    string name

    The display name for the remote machine.

    IPAddress address

    The private cluster IP address for the remote machine.

    SshCredentials credentials

    The credentials to be used for establishing SSH connections.

    int port

    Optionally overrides the standard SSH port (22).

    TextWriter logWriter

    The optional TextWriter where operation logs will be written.

    Exceptions
    Type Condition
    ArgumentNullException

    Thrown if name or if credentials is null.

    Fields

    SshProxyInitPath

    Path to the file whose existence indicates that the proxy has already configured things like disabling SUDO password prompts.

    Declaration
    public const string SshProxyInitPath = "/etc/neon-sshproxy-init"
    Field Value
    Type Description
    string

    credentials

    Declaration
    protected SshCredentials credentials
    Field Value
    Type Description
    SshCredentials

    logWriter

    Declaration
    protected TextWriter logWriter
    Field Value
    Type Description
    TextWriter

    Properties

    Address

    Declaration
    public IPAddress Address { get; set; }
    Property Value
    Type Description
    IPAddress

    ConnectTimeout

    Declaration
    public TimeSpan ConnectTimeout { get; set; }
    Property Value
    Type Description
    TimeSpan

    DefaultRunOptions

    Declaration
    public RunOptions DefaultRunOptions { get; set; }
    Property Value
    Type Description
    RunOptions

    DownloadFolderPath

    Declaration
    public string DownloadFolderPath { get; }
    Property Value
    Type Description
    string

    FileTimeout

    Declaration
    public TimeSpan FileTimeout { get; set; }
    Property Value
    Type Description
    TimeSpan

    HomeFolderPath

    Declaration
    public string HomeFolderPath { get; }
    Property Value
    Type Description
    string

    IsConfiguring

    Declaration
    public bool IsConfiguring { get; set; }
    Property Value
    Type Description
    bool

    IsFaulted

    Declaration
    public bool IsFaulted { get; set; }
    Property Value
    Type Description
    bool

    IsInvolved

    Declaration
    public bool IsInvolved { get; set; }
    Property Value
    Type Description
    bool

    IsReady

    Declaration
    public bool IsReady { get; set; }
    Property Value
    Type Description
    bool

    KernelRelease

    Declaration
    public string KernelRelease { get; }
    Property Value
    Type Description
    string

    KernelVersion

    Declaration
    public Version KernelVersion { get; }
    Property Value
    Type Description
    Version

    Name

    Declaration
    public string Name { get; }
    Property Value
    Type Description
    string

    OsName

    Declaration
    public string OsName { get; }
    Property Value
    Type Description
    string

    OsVersion

    Declaration
    public Version OsVersion { get; }
    Property Value
    Type Description
    Version

    RemotePath

    Declaration
    public string RemotePath { get; set; }
    Property Value
    Type Description
    string

    RetryCount

    Declaration
    public int RetryCount { get; set; }
    Property Value
    Type Description
    int

    SshPort

    Declaration
    public int SshPort { get; set; }
    Property Value
    Type Description
    int

    Status

    Declaration
    public string Status { get; set; }
    Property Value
    Type Description
    string

    UploadFolderPath

    Declaration
    public string UploadFolderPath { get; }
    Property Value
    Type Description
    string

    Username

    Returns the username used to log into the remote node.

    Declaration
    public string Username { get; }
    Property Value
    Type Description
    string

    Methods

    Clean(bool, bool)

    Cleans a node by removing unnecessary package manager metadata, cached DHCP information, journald logs... and then fills unreferenced file system blocks with zeros so the disk image will or trims the file system (when possible) so the image will compress better.

    Declaration
    public void Clean(bool trim = false, bool zero = false)
    Parameters
    Type Name Description
    bool trim

    Optionally trims the file system.

    bool zero

    Optionally zeros unreferenced file system blocks.

    Clone()

    Returns a clone of the SSH proxy. This can be useful for situations where you need to be able to perform multiple SSH/SCP operations against the same machine in parallel.

    note

    This does not clone any attached log writer.

    Declaration
    public LinuxSshProxy Clone()
    Returns
    Type Description
    LinuxSshProxy

    The cloned LinuxSshProxy<TMetadata>.

    CloneScpClient()

    Declaration
    public ScpClient CloneScpClient()
    Returns
    Type Description
    ScpClient

    CloneSshClient()

    Declaration
    public SshClient CloneSshClient()
    Returns
    Type Description
    SshClient

    CloneTo(LinuxSshProxy)

    Used by derived classes to copy the base class state to a new instance as well as configure the new connection's SSH and SCP clients.

    Declaration
    protected void CloneTo(LinuxSshProxy target)
    Parameters
    Type Name Description
    LinuxSshProxy target

    The target proxy.

    Connect(TimeSpan)

    Declaration
    public void Connect(TimeSpan timeout = default)
    Parameters
    Type Name Description
    TimeSpan timeout

    CreateShell()

    Declaration
    public ShellStream CreateShell()
    Returns
    Type Description
    ShellStream

    CreateSudoShell()

    Declaration
    public ShellStream CreateSudoShell()
    Returns
    Type Description
    ShellStream

    DeleteDirectory(string)

    Declaration
    public void DeleteDirectory(string path)
    Parameters
    Type Name Description
    string path

    DeleteFile(string)

    Declaration
    public void DeleteFile(string path)
    Parameters
    Type Name Description
    string path

    DirectoryExists(string)

    Declaration
    public bool DirectoryExists(string path)
    Parameters
    Type Name Description
    string path
    Returns
    Type Description
    bool

    DisableSudoPrompt(string)

    Declaration
    public void DisableSudoPrompt(string password)
    Parameters
    Type Name Description
    string password

    Disconnect()

    Declaration
    public void Disconnect()

    Dispose()

    Releases all associated resources (e.g. any open remote machine connections).

    Declaration
    public void Dispose()

    Dispose(bool)

    Releases all associated resources (e.g. any open remote machine connections).

    Declaration
    protected virtual void Dispose(bool disposing)
    Parameters
    Type Name Description
    bool disposing

    Pass true if we're disposing, false if we're finalizing.

    Download(string, Stream)

    Declaration
    public void Download(string source, Stream output)
    Parameters
    Type Name Description
    string source
    Stream output

    Download(string, string)

    Declaration
    public void Download(string source, string target)
    Parameters
    Type Name Description
    string source
    string target

    DownloadBytes(string)

    Declaration
    public byte[] DownloadBytes(string source)
    Parameters
    Type Name Description
    string source
    Returns
    Type Description
    byte[]

    DownloadText(string)

    Declaration
    public string DownloadText(string source)
    Parameters
    Type Name Description
    string source
    Returns
    Type Description
    string

    Fault(string)

    Declaration
    public void Fault(string message = null)
    Parameters
    Type Name Description
    string message

    FileExists(string)

    Declaration
    public bool FileExists(string path)
    Parameters
    Type Name Description
    string path
    Returns
    Type Description
    bool

    ~LinuxSshProxy()

    Finalizer.

    Declaration
    protected ~LinuxSshProxy()

    GetAuthenticationMethod(SshCredentials)

    Extracts the authentication method from SSH credentials.

    Declaration
    protected AuthenticationMethod GetAuthenticationMethod(SshCredentials credentials)
    Parameters
    Type Name Description
    SshCredentials credentials

    The credentials.

    Returns
    Type Description
    AuthenticationMethod

    The AuthenticationMethod.

    GetNeonInitStatus()

    Declaration
    public bool GetNeonInitStatus()
    Returns
    Type Description
    bool

    GetNetworkInterface(IPAddress)

    Declaration
    public string GetNetworkInterface(IPAddress address)
    Parameters
    Type Name Description
    IPAddress address
    Returns
    Type Description
    string

    GetTimeUtc()

    Declaration
    public DateTime GetTimeUtc()
    Returns
    Type Description
    DateTime

    KubeCtlApply(StringBuilder, RunOptions)

    Declaration
    public CommandResponse KubeCtlApply(StringBuilder sbYaml, RunOptions runOptions = RunOptions.Defaults)
    Parameters
    Type Name Description
    StringBuilder sbYaml
    RunOptions runOptions
    Returns
    Type Description
    CommandResponse

    KubectlApply(string, RunOptions)

    Declaration
    public CommandResponse KubectlApply(string yaml, RunOptions runOptions = RunOptions.Defaults)
    Parameters
    Type Name Description
    string yaml
    RunOptions runOptions
    Returns
    Type Description
    CommandResponse

    ListDisks(bool)

    Declaration
    public Dictionary<string, LinuxDiskInfo> ListDisks(bool fixedDisksOnly = true)
    Parameters
    Type Name Description
    bool fixedDisksOnly
    Returns
    Type Description
    Dictionary<string, LinuxDiskInfo>

    ListPartitionedDisks()

    Declaration
    public List<string> ListPartitionedDisks()
    Returns
    Type Description
    List<string>

    ListUnpartitionedDisks()

    Declaration
    public List<string> ListUnpartitionedDisks()
    Returns
    Type Description
    List<string>

    Log(string)

    Declaration
    public virtual void Log(string text)
    Parameters
    Type Name Description
    string text

    LogException(Exception)

    Declaration
    public void LogException(Exception e)
    Parameters
    Type Name Description
    Exception e

    LogException(string, Exception)

    Declaration
    public void LogException(string message, Exception e)
    Parameters
    Type Name Description
    string message
    Exception e

    LogFlush()

    Declaration
    public virtual void LogFlush()

    LogLine(string)

    Declaration
    public virtual void LogLine(string text)
    Parameters
    Type Name Description
    string text

    PatchLinux()

    Patches Linux on the node applying all outstanding security patches but without upgrading the Linux distribution.

    Declaration
    public bool PatchLinux()
    Returns
    Type Description
    bool

    true when a reboot is required.

    Reboot(bool)

    Declaration
    public void Reboot(bool wait = true)
    Parameters
    Type Name Description
    bool wait

    RemoveFile(string)

    Declaration
    public void RemoveFile(string target)
    Parameters
    Type Name Description
    string target

    RunCommand(CommandBundle, RunOptions)

    Declaration
    public CommandResponse RunCommand(CommandBundle bundle, RunOptions runOptions = RunOptions.Defaults)
    Parameters
    Type Name Description
    CommandBundle bundle
    RunOptions runOptions
    Returns
    Type Description
    CommandResponse

    RunCommand(string, RunOptions, params object[])

    Declaration
    public CommandResponse RunCommand(string command, RunOptions runOptions, params object[] args)
    Parameters
    Type Name Description
    string command
    RunOptions runOptions
    object[] args
    Returns
    Type Description
    CommandResponse

    RunCommand(string, params object[])

    Declaration
    public CommandResponse RunCommand(string command, params object[] args)
    Parameters
    Type Name Description
    string command
    object[] args
    Returns
    Type Description
    CommandResponse

    SetNeonInitStatus(bool, bool)

    Declaration
    public void SetNeonInitStatus(bool initialized, bool keepNetworkSettings = false)
    Parameters
    Type Name Description
    bool initialized
    bool keepNetworkSettings

    SetPassword(string, string)

    Changes a user password.

    Declaration
    public void SetPassword(string username, string password)
    Parameters
    Type Name Description
    string username

    The username.

    string password

    The new password.

    Shutdown()

    Declaration
    public void Shutdown()

    SudoCommand(CommandBundle, RunOptions)

    Declaration
    public CommandResponse SudoCommand(CommandBundle bundle, RunOptions runOptions = RunOptions.Defaults)
    Parameters
    Type Name Description
    CommandBundle bundle
    RunOptions runOptions
    Returns
    Type Description
    CommandResponse

    SudoCommand(string, RunOptions, params object[])

    Declaration
    public CommandResponse SudoCommand(string command, RunOptions runOptions, params object[] args)
    Parameters
    Type Name Description
    string command
    RunOptions runOptions
    object[] args
    Returns
    Type Description
    CommandResponse

    SudoCommand(string, params object[])

    Declaration
    public CommandResponse SudoCommand(string command, params object[] args)
    Parameters
    Type Name Description
    string command
    object[] args
    Returns
    Type Description
    CommandResponse

    SudoCommandAsUser(string, string, RunOptions, params object[])

    Declaration
    public CommandResponse SudoCommandAsUser(string user, string command, RunOptions runOptions, params object[] args)
    Parameters
    Type Name Description
    string user
    string command
    RunOptions runOptions
    object[] args
    Returns
    Type Description
    CommandResponse

    SudoCommandAsUser(string, string, params object[])

    Declaration
    public CommandResponse SudoCommandAsUser(string user, string command, params object[] args)
    Parameters
    Type Name Description
    string user
    string command
    object[] args
    Returns
    Type Description
    CommandResponse

    ToString()

    Returns a string that represents the current object.

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    A string that represents the current object.

    Overrides
    object.ToString()

    UpdateCredentials(SshCredentials)

    Declaration
    public void UpdateCredentials(SshCredentials newCredentials)
    Parameters
    Type Name Description
    SshCredentials newCredentials

    UpdateRootCertificates()

    Checks for and installs any new root certificates.

    Declaration
    public void UpdateRootCertificates()

    UpgradeLinuxDistribution()

    Upgrades the Linux distribution on the node.

    Declaration
    public bool UpgradeLinuxDistribution()
    Returns
    Type Description
    bool

    true when a reboot is required.

    Upload(string, Stream, string, string, bool)

    Declaration
    public void Upload(string target, Stream input, string permissions = null, string owner = null, bool userPermissions = false)
    Parameters
    Type Name Description
    string target
    Stream input
    string permissions
    string owner
    bool userPermissions

    UploadBytes(string, byte[])

    Declaration
    public void UploadBytes(string target, byte[] bytes)
    Parameters
    Type Name Description
    string target
    byte[] bytes

    UploadText(string, Stream, int, Encoding, Encoding, string, string)

    Declaration
    public void UploadText(string target, Stream textStream, int tabStop = 0, Encoding inputEncoding = null, Encoding outputEncoding = null, string permissions = null, string owner = null)
    Parameters
    Type Name Description
    string target
    Stream textStream
    int tabStop
    Encoding inputEncoding
    Encoding outputEncoding
    string permissions
    string owner

    UploadText(string, string, int, Encoding, string, string)

    Declaration
    public void UploadText(string target, string text, int tabStop = 0, Encoding outputEncoding = null, string permissions = null, string owner = null)
    Parameters
    Type Name Description
    string target
    string text
    int tabStop
    Encoding outputEncoding
    string permissions
    string owner

    UploadText(string, StringBuilder, int, Encoding, string, string)

    Declaration
    public void UploadText(string target, StringBuilder text, int tabStop = 0, Encoding outputEncoding = null, string permissions = null, string owner = null)
    Parameters
    Type Name Description
    string target
    StringBuilder text
    int tabStop
    Encoding outputEncoding
    string permissions
    string owner

    WaitForBoot(TimeSpan?)

    Declaration
    public void WaitForBoot(TimeSpan? timeout = null)
    Parameters
    Type Name Description
    TimeSpan? timeout
    In this article
    Back to top © Copyright 2005-2023 by NEONFORGE LLC