SftpContainerResource.WithHostKeyFile

Method
📦 CommunityToolkit.Aspire.Hosting.Sftp v13.6.1
type SftpContainerResource interface {
// ... omitted for brevity
WithHostKeyFile(
keyFile string,
keyType KeyType,
) SftpContainerResource
}

Signature

methodWithHostKeyFilebuilder
Adds a bind mount for the specified host key file to an SFTP container resource.
WithHostKeyFile(
keyFile string,
keyType KeyType,
) SftpContainerResource
keyFilestringThe path to the host key file.
keyTypeKeyTypeThe type of the host key.
SftpContainerResource

The IResourceBuilder.

Returns a handle; failures surface later via Err().

Defined on

This method is defined on the following type: