sftp

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ctx context.Context, opts *Options) (blob.Storage, error)

New creates new ssh-backed storage in a specified host.

Types

type Options

type Options struct {
	Path string `json:"path"`

	Host       string `json:"host"`
	Port       int    `json:"port"`
	Username   string `json:"username"`
	Keyfile    string `json:"keyfile,omitempty"`
	KnownHosts string `json:"-"`

	DirectoryShards []int `json:"dirShards"`
}

Options defines options for sftp-backed storage.

Jump to

Keyboard shortcuts

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