Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientImpl ¶
type ClientImpl struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(opts ClientOpts) (*ClientImpl, error)
NewClient creates a new SFTP client
func (*ClientImpl) ListObjects ¶
func (c *ClientImpl) ListObjects(ctx context.Context, opts ListOptions) (*ListOutput, error)
type ClientOpts ¶
type ClientOpts struct { // Endpoint Optional hostname or URI for the S3 service Endpoint string // Region of the S3 service Region string // Bucket name where the files are read/written to Bucket string // AccessKey credential for the S3 service AccessKey string // SecretKey credential for the S3 service SecretKey string // ForcePathStyle set to `true` to force the request to use path-style addressing ForcePathStyle bool }
type ListOptions ¶
type ListOptions struct { // Prefix limits the response to keys that starts with the specified prefix Prefix string // Set the maximum number of keys to be returned. By default, the action // returns up to 1000 keys but never more MaxKeys int64 // ContinuationToken is used to continue the list operation in the bucket ContinuationToken string }
type ListOutput ¶
type MemoryClient ¶
func NewMemoryClient ¶
func NewMemoryClient() *MemoryClient
func (MemoryClient) ListObjects ¶
func (m MemoryClient) ListObjects(_ context.Context, _ ListOptions) (*ListOutput, error)
Click to show internal directories.
Click to hide internal directories.