Documentation ¶
Index ¶
- type Config
- type Driver
- func (d *Driver) Capabilities() *volume.CapabilitiesResponse
- func (d *Driver) Create(r *volume.CreateRequest) error
- func (d *Driver) Get(r *volume.GetRequest) (*volume.GetResponse, error)
- func (d *Driver) List() (*volume.ListResponse, error)
- func (d *Driver) Mount(r *volume.MountRequest) (*volume.MountResponse, error)
- func (d *Driver) Path(r *volume.PathRequest) (*volume.PathResponse, error)
- func (d *Driver) Remove(r *volume.RemoveRequest) error
- func (d *Driver) Stop() []error
- func (d *Driver) Unmount(r *volume.UnmountRequest) error
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Root for mount Root string MountPoint string // Address and config for ssh SSHServer string SSHConfig *ssh.ClientConfig }
Config configures the docker volume plugin
type Driver ¶
type Driver struct {
// contains filtered or unexported fields
}
Driver implements the interface for a Docker volume plugin
func (*Driver) Capabilities ¶
func (d *Driver) Capabilities() *volume.CapabilitiesResponse
Capabilities Driver
func (*Driver) Create ¶
func (d *Driver) Create(r *volume.CreateRequest) error
Create handles volume creation calls
func (*Driver) Get ¶
func (d *Driver) Get(r *volume.GetRequest) (*volume.GetResponse, error)
Get retrieves a volume
func (*Driver) Mount ¶
func (d *Driver) Mount(r *volume.MountRequest) (*volume.MountResponse, error)
Mount handles creating and mounting servers
func (*Driver) Path ¶
func (d *Driver) Path(r *volume.PathRequest) (*volume.PathResponse, error)
Path handles calls for mountpoints
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server wraps SSHFS and tracks connection counts
func NewServer ¶
func NewServer(config *ssh.ClientConfig, mountpoint, server, root string) (*Server, error)
NewServer returns a new server with initial state
Click to show internal directories.
Click to hide internal directories.