Documentation
¶
Index ¶
- func Connect(endpoint *url.URL, params map[string]string) (*sftp.Client, error)
- func NewExporter(ctx context.Context, opts *connectors.Options, name string, ...) (exporter.Exporter, error)
- func NewImporter(ctx context.Context, opts *connectors.Options, name string, ...) (importer.Importer, error)
- func NewStore(ctx context.Context, name string, config map[string]string) (storage.Store, error)
- type Sftp
- func (s *Sftp) Close(ctx context.Context) error
- func (s *Sftp) Create(ctx context.Context, config []byte) error
- func (s *Sftp) Delete(ctx context.Context, res storage.StorageResource, mac objects.MAC) error
- func (s *Sftp) Export(ctx context.Context, records <-chan *connectors.Record, ...) (ret error)
- func (s *Sftp) Flags() location.Flags
- func (s *Sftp) Get(ctx context.Context, res storage.StorageResource, mac objects.MAC, ...) (io.ReadCloser, error)
- func (s *Sftp) Import(ctx context.Context, records chan<- *connectors.Record, ...) error
- func (s *Sftp) List(ctx context.Context, res storage.StorageResource) ([]objects.MAC, error)
- func (s *Sftp) Mode(ctx context.Context) (storage.Mode, error)
- func (s *Sftp) Open(ctx context.Context) ([]byte, error)
- func (s *Sftp) Origin() string
- func (s *Sftp) Ping(ctx context.Context) error
- func (s *Sftp) Put(ctx context.Context, res storage.StorageResource, mac objects.MAC, ...) (int64, error)
- func (s *Sftp) Root() string
- func (s *Sftp) Size(ctx context.Context) (int64, error)
- func (s *Sftp) Type() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewExporter ¶
func NewImporter ¶
Types ¶
type Sftp ¶
type Sftp struct {
// contains filtered or unexported fields
}
func (*Sftp) Export ¶
func (s *Sftp) Export(ctx context.Context, records <-chan *connectors.Record, results chan<- *connectors.Result) (ret error)
func (*Sftp) Import ¶
func (s *Sftp) Import(ctx context.Context, records chan<- *connectors.Record, results <-chan *connectors.Result) error
Source Files
¶
Click to show internal directories.
Click to hide internal directories.