Skip to content
Docs Try Aspire
Docs Try

withHostKeyFile

Method
📦 CommunityToolkit.Aspire.Hosting.Sftp v13.4.0
interface SftpContainerResource {
// ... omitted for brevity
withHostKeyFile(
keyFile: string,
keyType: KeyType): SftpContainerResource;
}

Signature

method withHostKeyFile builder
Adds a bind mount for the specified host key file to an SFTP container resource.
withHostKeyFile(
keyFile: string,
keyType: KeyType): SftpContainerResource
keyFile string
keyType KeyType
SftpContainerResource

Applies to

This method applies to the following types: