github.com/telepresenceio/telepresence/v2@v2.20.0-pro.6.0.20240517030216-236ea954e789/pkg/client/remotefs/mounter.go (about)

     1  package remotefs
     2  
     3  import (
     4  	"context"
     5  	"net"
     6  )
     7  
     8  // A Mounter is responsible for mounting a remote filesystem in a local directory or drive letter.
     9  type Mounter interface {
    10  	// Start mounts the remote directory given by mountPoint on the local directory or drive letter
    11  	// given ty clientMountPoint. The podIP and port is the address to the remote FTP or SFTP server.
    12  	// The id is just used for logging purposes.
    13  	Start(ctx context.Context, id, clientMountPoint, mountPoint string, podIP net.IP, port uint16) error
    14  }