SftpContainerResource
Handle
A resource that represents an SFTP container.
type SftpContainerResource interface { ExpressionValue IComputeResource Resource ResourceWithArgs ResourceWithConnectionString ResourceWithEndpoints ResourceWithEnvironment ResourceWithWaitSupport}7 members
Properties
property
ConnectionStringExpression *ReferenceExpression getConnectionString for the atmoz SFTP server in the form of sftp://host:port.
ConnectionStringExpression() *ReferenceExpressionproperty
HostEndpointReferenceExpression getGets the host endpoint reference for this resource.
Host() EndpointReferenceExpressionproperty
PortEndpointReferenceExpression getGets the port endpoint reference for this resource.
Port() EndpointReferenceExpressionproperty
UriExpression *ReferenceExpression getGets the connection URI expression for the atmoz SFTP endpoint.
UriExpression() *ReferenceExpressionMethods
Adds a bind mount for the specified host key file to an SFTP container resource.
WithHostKeyFile( keyFile string, keyType KeyType,) SftpContainerResourceParameters
keyFile stringThe path to the host key file.keyType KeyType The type of the host key.Returns
SftpContainerResource The I.
Returns a handle; failures surface later via Err().
Adds a bind mount for the public key file of the specified user to an SFTP container resource.
WithUserKeyFile( username string, keyFile string, keyType KeyType,) SftpContainerResourceParameters
usernamestringThe user whose public key is being bind mountedkeyFile stringThe public key file of the specified user (will be bind mounted on the server).keyType KeyType The type of the host key.Returns
SftpContainerResource The I.
Returns a handle; failures surface later via Err().
Adds a bind mount for the users.conf file to an SFTP container resource.
WithUsersFile(usersFile string) SftpContainerResourceParameters
usersFile stringThe path to the users.conf file.Returns
SftpContainerResource The I.
Returns a handle; failures surface later via Err().