sftp

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 11, 2018 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package sftp provides SFTP storage.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Hostname to connect to.
	Hostname string `mapstruct:"hostname"`

	// Socket to connect to (overrides hostname)
	Socket string `mapstruct:"socket"`

	// Port. Defaults to "ssh".
	Port string `mapstruct:"port"`

	// Username. Defaults to the current user's username.
	Username string `mapstruct:"username"`

	// Password.
	Password string `mapstruct:"password"`

	// Key file.
	Key string `mapstruct:"key"`

	// KeyPassword is the password for the key (if any).
	KeyPassword string `mapstruct:"key_password"`

	// Path is our jailed path.
	Path string
}

Config for SFTP storage.

func (*Config) Open

func (config *Config) Open() (storage.Storage, error)

Open a SFTP (SSH) storage.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL