sftp

package module
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SFTPComponent

type SFTPComponent struct{}

SFTPComponent represents the SFTP component

func NewSFTPComponent

func NewSFTPComponent() *SFTPComponent

NewSFTPComponent creates a new SFTPComponent

func (*SFTPComponent) CreateEndpoint

func (c *SFTPComponent) CreateEndpoint(uri string) (gocamel.Endpoint, error)

CreateEndpoint creates a new SFTP endpoint

type SFTPConsumer

type SFTPConsumer struct {
	// contains filtered or unexported fields
}

SFTPConsumer represents an SFTP consumer

func (*SFTPConsumer) Start

func (c *SFTPConsumer) Start(ctx context.Context) error

func (*SFTPConsumer) Stop

func (c *SFTPConsumer) Stop() error

type SFTPEndpoint

type SFTPEndpoint struct {
	// contains filtered or unexported fields
}

SFTPEndpoint represents an SFTP endpoint

func (*SFTPEndpoint) CreateConsumer

func (e *SFTPEndpoint) CreateConsumer(processor gocamel.Processor) (gocamel.Consumer, error)

CreateConsumer creates an SFTP consumer

func (*SFTPEndpoint) CreateProducer

func (e *SFTPEndpoint) CreateProducer() (gocamel.Producer, error)

CreateProducer creates an SFTP producer

func (*SFTPEndpoint) URI

func (e *SFTPEndpoint) URI() string

URI returns the endpoint URI

type SFTPProducer

type SFTPProducer struct {
	// contains filtered or unexported fields
}

SFTPProducer represents an SFTP producer

func (*SFTPProducer) Send

func (p *SFTPProducer) Send(exchange *gocamel.Exchange) error

Send sends the exchange content to the SFTP server.

func (*SFTPProducer) Start

func (p *SFTPProducer) Start(ctx context.Context) error

func (*SFTPProducer) Stop

func (p *SFTPProducer) Stop() error

Jump to

Keyboard shortcuts

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